Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Transfers data from the given item to the application.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
WIA | 6.5 | ❌ No | ✅ Yes | ❌ No | ❌ No | ❌ No |
Parameter | Description | Example |
---|---|---|
Item | The item of current device to query. For a scanner this is typical Flatbed or Feeder. see WIA.ListItems |
"Flatbed" |
Returns OK or error.
Scan via flatbed:
MBS( "WIA.Scan"; "Flatbed" )
Scan via feeder:
MBS( "WIA.Scan"; "Feeder" )
Scan duplex from document feeder:
# switch on duplex mode
Set Variable [ $r ; Value: MBS( "WIA.SetItemPropertyValue"; "Feeder"; "Document Handling Select"; 4 ) /* 1 = feeder 2 = flatbed 4 = duplex 8 = front first 16 = back first 32 = front only 64 = back only 128 = next page 256 = preferred 512 = auto advance see https://docs.microsoft.… ]
#
# Scan via document Feeder
Set Variable [ $r ; Value: MBS( "WIA.Scan"; "Feeder") ]
#
# Result can be OK or Cancel and in both cases some images may be there
If [ $r ≠ "OK" ]
Show Custom Dialog [ "Scan Result" ; $r ]
Else
Perform Script [ Specified: From list ; “Import Images” ; Parameter: ]
End If
This function is free to use.
Created 28th November 2016, last changed 11st February 2019