Prevent/enable focus ro be restored to previous application when program exits (sys.RestoreFocus)ΒΆ

sys.RestoreFocus,,u1

Restore focus to previous application

By default, when a Sculptor program exits, Sculptor restores focus to the previous application. Set this variable to OFF to prevent this from happening. This may be desirable after a new program has been started by means of the exec or chain command.

The default value for this variable is ON.


EXAMPLE

if (activate_app(wintask->winclass, NULL) == OKAY) {
     sys.RestoreFocus = OFF
     exit
}