Twain.SetAutofeed
-----------------

Whether to enable auto feed when next scan starts.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Twain](component_Twain.md) | [3.1](newinversion31.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "Twain.SetAutofeed"; Value ) 

**MBS**( **"Twain.SetAutofeed";** /\* Whether to enable auto feed when next scan starts. \*/  
**$Value**) /\* The new settings. Can be 1 to enable auto feeder or 0 to disable.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Value | The new settings. Can be 1 to enable auto feeder or 0 to disable. | 0 |

### Result

Returns OK.

### Description

Whether to enable auto feed when next scan starts.  
This value is stored and next time you call Acquire the plugin will ask the scanner to enable/disable auto feed. If the scanner does not support auto feeding, the scanner will ignore this setting.  
### Examples

Set options and acquire:

 $r = MBS ( "[Twain.SetCloseAfterTransfer](TwainSetCloseAfterTransfer.md)"; 1 )  
$r = MBS ( "[Twain.SetFeededEnabled](TwainSetFeededEnabled.md)"; 1 )  
$r = MBS ( "Twain.SetAutofeed"; 1 )  
$r = MBS ( "[Twain.Acquire](TwainAcquire.md)" )  
### See also

- [Twain.Acquire](TwainAcquire.md)
- [Twain.GetAutofeed](TwainGetAutofeed.md)
- [Twain.SetCloseAfterTransfer](TwainSetCloseAfterTransfer.md)
- [Twain.SetFeededEnabled](TwainSetFeededEnabled.md)

### Example Databases

- [Mac and iOS/PDFKit/Pictures to PDF](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/PDFKit/Pictures%20to%20PDF.shtml#4ScriptAnchor_)
- [Win Only/Scanning/Twain](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Win%20Only/Scanning/Twain.shtml#8ScriptAnchor_)

This function is free to use.

Created 18th August 2014 , last changed 18th August 2014

  
[Twain.SelectDSIdentity](TwainSelectDSIdentity.md) - [Twain.SetAutomaticBorderDetection](TwainSetAutomaticBorderDetection.md)

[HTML Version](TwainSetAutofeed.shtml)