Path: blob/master/payloads/examples/Button/Button-example9.txt
2968 views
REM The ENABLE_BUTTON command allows pressing the button to call the BUTTON_DEF.12BUTTON_DEF3STRINGLN The button was pressed!4STRINGLN Continuing the payload...5END_BUTTON67WHILE TRUE8DISABLE_BUTTON9STRING The button is disabled for the next10STRINGLN 5 seconds...11STRINGLN Pressing the button will do nothing...12DELAY 50001314ENABLE_BUTTON15STRING The button is enabled for the next16STRINGLN 5 seconds...17STRING Pressing the button will execute18STRINGLN the button definition...19DELAY 500020END_WHILE2122REM The payload will alternate between the button being enabled and disabled.23REM If the button is pressed within the 5 second disabled window, nothing will happen.24REM If the button is pressed within the 5 second enabled window, the button definition will be executed and "The button was pressed!" will be typed.25REM The payload will loop forever.2627