Waits for any button in any box to be pressed.
BoxButtonWait( )
(i) always 1.
This function will stay in a loop while all buttons are false. If any of the buttons are true when this command is issued, the command will not wait.
;; sample script for BoxButtonWait bDraw1=1 bDraw2=2 bWho=0 BoxesUp("200,200,700,700", @NORMAL) BoxDrawText(1, "0,310,1000,1000", "WinBatch Box Example - BoxButtonWait%@crlf% Pick a Button", @FALSE, 1) BoxButtonDraw(1, bDraw1, "Button 1", "200,464,450,558") BoxButtonDraw(1, bDraw2, "Button 2", "550,464,800,558") BoxButtonWait() For x =1 To 2 If BoxButtonStat(1,x) Then bWho=x Next Switch bWho Case 1 Display(3,"Button Example", "You pushed Button 1") Break Case 2 Display(3,"Button Example", "You pushed Button 2") Break EndSwitch
BoxButtonDraw, BoxButtonKill, BoxButtonStat, BoxesUp, BoxNew