Post
by support » Wed Oct 05, 2005 2:17 pm
You could do it like this:
Dialog>Dialog1
Caption=Dialog1
Width=118
Height=142
Top=114
Left=16
Button=Script 1,16,8,75,25,10
Button=Script 2,16,40,75,25,20
Button=Script 3,16,72,75,25,30
EndDialog>Dialog1
Show>Dialog1
Label>ActionLoop
GetDialogAction>Dialog1,r
If>r=10
Macro>%SCRIPT_DIR%\Script1.scp
ResetDialogAction>Dialog1
EndIf
If>r=20
Macro>%SCRIPT_DIR%\Script2.scp
ResetDialogAction>Dialog1
EndIf
If>r=30
Macro>%SCRIPT_DIR%\Script3.scp
ResetDialogAction>Dialog1
EndIf
If>r=2,exit
Goto>ActionLoop
Label>exit