Below is a simple bit of code that will add an additional Menu option to the Twx-Main, with the letter "O" as the hot key. I've also added a few super simple Menu 'commands' to help complete the picture.
My problem is, when I'm in any TWX Sub Menu (Ports, Data, etc), and I Press the "$" key to close the Menu nothing special happens.. but. when I'm in 'My Menu', and I press "$", to close the Menu, the script terminates. Is there anything I'm doing wrong?
Code:
systemScript
addMenu "TWX_MAIN" "My_Menu" (ANSI_14 & "Menu Options") "O" "" "Mine" FALSE
addMenu "My_Menu" "My_Menu_Whois" "Who's Online" "W" :Whois "" TRUE
addMenu "My_Menu" "My_Menu_Interval" "Interval Lag" "L" :iLag "" TRUE
:AGAIN
setEventTrigger DISCOD :DISCOD "CONNECTION LOST"
pause
:Whois
send "#"
OpenMenu "My_Menu"
:iLag
send "@"
OpenMenu "My_Menu"
:DISCOD
goto :AGAIN