Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Requests to open a session on the device.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
ImageCapture | 6.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |
Parameter | Description | Example | Flags |
---|---|---|---|
Device | The device ID. Can be zero based index in device list. Or UUID, Name or persitent ID string. |
0 | |
Wait | Pass 1 to wait till complete. Or pass 0 to return immediately. Default is 1 to wait. |
0 | Optional |
Returns OK or error.
Open device:
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 []
End If
This function checks for a license.
Created 11st September 2016, last changed 4th February 2020