hwISession PerformBatchOperation
Runs a Tcl/Tk script in a protected manner according to the specified execution mode.
Syntax
hwISession_handle PerformBatchOperation script, exec_mode
Application
Tcl Modify
Inputs
- script
- PerformBatchOperation runs the specified script in a way that ignores user mouse clicks or keyboard input while the script is running. This provides operational protection for the caller and is accomplished by running the script within a ‘UI lock’.
- exec_mode (optional)
- By specifying the exec_mode option, you can specify a variety of conditions, or ‘execution modes’, under which the specified script is run.
Examples
To run the Tcl/Tk script myScript at the current Tcl call stack scope within a Render
Lock:
[::hw::GetSessionHandle] PerformBatchOperation myScript "currentscope renderlock" –
To run myScript at the current scope and with no render
lock:
[::hw::GetSessionHandle] PerformBatchOperation myScript "current scope, renderunlock"
To run myScript at the global Tcl scope under a Render Lock.
"globalscope” and “renderlock” are the default execution
modes.
[::hw::GetSessionHandle] PerformBatchOperation myScript
Error
HWInvalidArg - Specifying invalid modal combinations such as "currentscope globalscope" results in this error.
Keywords
Tcl
Tk
script
commands