Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3    Statistic  

Twain.Acquire

Acquires a picture.

Component: Twain
Version: 3.1
Mac OS X: Yes
Windows: Yes
Server: No
FileMaker Cloud: No

MBS( "Twain.Acquire" { ; Modal; ShowUI; BringWindowToFront } )

Parameters

Parameter Description Example value
Modal Optional
Whether to run the process modal. Default is 0 for running non modal.
Ignored in most cases.
0
ShowUI Optional
Whether to show the dialog. Pass 1 to show dialog or 0 to not show it. Default is 1.
1
BringWindowToFront Optional
For Windows only a flag.
Pass 1 to have the plugin watch for new windows and bring them to front and avoid them showing behind FileMaker’s windows.
Default 0.
1

Result

Returns OK or the Twain error code.

Description

Acquires a picture.
The acquire process will go asynchronously. You can define a script with Twain.SetNotificationScript to be called when transfers are done. If you acquire without UI, you can make script pause to let the acquire work and check with Twain.GetImageCount function whether images have been received.
Even when using no UI, you can pass Modal = 1 to have the plugin transfer the image right after acquire without waiting for an event from twain driver.

Examples

Acquire with UI, window to front and modal:

MBS( "Twain.Acquire"; 1; 1; 1)

See also

Example Databases


Trace.Off   -   Twain.ClearCancelScript

Feedback: Report problem or ask question.




Links
MBS Xojo Chart Plugins