Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.5
10.0
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
Statistic
FMM
Blog
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
Created 28th November 2016, last changed 11st February 2019
WIA.ListItems - WIA.SelectDeviceDialog
Feedback: Report problem or ask question.