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
Requests the scanner device to select a functional unit.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
ImageCapture | 6.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |
Parameter | Description | Example | Flags |
---|---|---|---|
Unit | The functional unit to request. Can be Flatbed, PositiveTransparency, NegativeTransparency or DocumentFeeder. |
"Flatbed" | |
Wait | Pass 1 to wait till complete. Or pass 0 to return immediately. Default is 1 to wait. |
0 | Optional |
Returns OK or error.
Request flatbed unit:
Set Variable [$r; Value:MBS("ImageCapture.RequestSelectFunctionalUnit"; "Flatbed")]
If [MBS("iserror")]
Show Custom Dialog ["Failed to get flatbed?"; MBS("Text.RemovePrefix"; $r; "[MBS] ")]
Exit Script []
End If
Request document feeder:
MBS("ImageCapture.RequestSelectFunctionalUnit"; "DocumentFeeder")
Open device and request document feeder:
Set Variable [ $r ; Value: MBS("ImageCapture.OpenDevice"; Images::Device) ]
If [ MBS("iserror") ]
Show Custom Dialog [ "Failed to open" ; MBS("Text.RemovePrefix"; $r; "[MBS] ") ]
Exit Script [ Text Result: ]
End If
Pause/Resume Script [ Duration (seconds): ,1 ]
Set Variable [ $r ; Value: MBS("ImageCapture.GetParameter"; "availableFunctionalUnitTypes") ]
If [ Length ( $r ) > 0 ]
# if we have more than one, pick one
Set Variable [ $r ; Value: MBS("ImageCapture.RequestSelectFunctionalUnit"; "DocumentFeeder") ]
If [ MBS("iserror") ]
Show Custom Dialog [ "Failed to get flatbed?" ; MBS("Text.RemovePrefix"; $r; "[MBS] ") ]
Exit Script [ Text Result: ]
End If
End If
Created 11st September 2016, last changed 19th November 2018
ImageCapture.RequestScan - ImageCapture.RequestSyncClock
Feedback: Report problem or ask question.