Contents | Index | < Browse | Browse >


    LAUNCH LaunchID CommandLine

This is a command that allows multitasking to take place within
Gui4Cli itself. Thanks to Michael Van Elst for the help.

Some programs (like c:search for example) take a long time to
finish their work. You need however to know when they are finished, 
so that you can display their results, or go on to another command.

In this case you can not use RUN, because Gui4Cli would run the
program and return to whatever it was doing and you wouldn't know 
when the program you ran had finished it's work.

If you use the CLI command, then Gui4Cli would start the command
and sit around waiting for it to finish, thereby blocking all other 
operations.

   In these cases, you can use LAUNCH.

LAUNCH will create a new process which will run the command, thereby
freeing Gui4Cli to do something else..

When the command finishes executing, it will return to a  xONRETURN  
event with the same LaunchID and do the commands declared there.
(unless the ESCAPE key has meanwhile been pressed by the user) 

example :

xButton 10 10 100 15 "Click Me!"
Launch  1  'c:search dh0:PlanetEarth IntelligentLife'
; now Gui4Cli is free to continue with other commands etc

xOnReturn 1
Say 'The Search has finishednNo Intelligent Life found..'
; just kidding...