
if ( bcheck > 0 )
set button to GetButtonPressed
if ( button == -1 )
return
endif
set button to ( button + 1 )
if ( button > bcheck )
;stop the script
else
;do stuff, like setting nextstate to 1 or whatever
endif
set bcheck to 0
endif
ifx ( nextstate )
;set to anotherstate, etc
whilex ( button )
;do other stuff (reading files mostly)
xLogMessage "the value of button is %d" button
set button to ( button - 1 )
endwhile
endif
xLogMessage "the value of button is %d" button
the value of button is
the value of button is
the value of button is
the value of button is
the value of button is
the value of button is
the value of button is
melian wrote:Sorry, haven't done any proper testing yet - been trying to get LAL figured outI'll get to it soon.
Users browsing this forum: No registered users and 1 guest