Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: dialog editor dialog boxes
To have two WinBatch scripts running simultaneously, you can create the dialog in the second script and launch it with the RUN function just before your dialog editor code begins in your script.
Your second script could also be used to send keys to the first (for example, the second one could be used to select an item or push a button) and could be used to close the first dialogue when you're finished with the selection.
;mainscript run("c:\seconddialog.wbt","") MyDialog1Format=`WWWDLGED,5.0` MyDialog1Caption=`dialog 1` MyDialog1X=117 MyDialog1Y=161 MyDialog1Width=236 MyDialog1Height=75 MyDialog1NumControls=4 MyDialog101=`49,46,51,DEFAULT,PUSHBUTTON,DEFAULT,"OK",1` MyDialog102=`107,46,51,DEFAULT,PUSHBUTTON,DEFAULT,"CANCEL",0` MyDialog103=`24,3,200,DEFAULT,STATICTEXT,DEFAULT,"This is an example that shows how to have multiple dialogs."` MyDialog104=`80,25,51,DEFAULT,PUSHBUTTON,DEFAULT,"Do stuff",3` ButtonPushed=Dialog("MyDialog1") ;**************************************************************** ;seconddialog.wbt timedelay(1) MyDialog2Format=`WWWDLGED,5.0` MyDialog2Caption=`dialog 2` MyDialog2X=32 MyDialog2Y=52 MyDialog2Width=144 MyDialog2Height=58 MyDialog2NumControls=3 MyDialog201=`6,35,51,DEFAULT,PUSHBUTTON,DEFAULT,"ok",1` MyDialog202=`68,35,51,DEFAULT,PUSHBUTTON,DEFAULT,"Cancel",0` MyDialog203=`43,11,51,DEFAULT,RADIOBUTTON,dostuff,"Do stuff here",4` ButtonPushed=Dialog("MyDialog2")
Article ID: W12852
Filename: Multiple Dialog Boxes.txt
File Created: 1999:04:15:16:50:04
Last Updated: 1999:04:15:16:50:04