www.ClassicTW.com
https://mail.black-squirrel.com/

TWX AddMenu Question
https://mail.black-squirrel.com/viewtopic.php?f=15&t=21992
Page 1 of 1

Author:  LoneStar [ Tue Apr 28, 2009 8:19 pm ]
Post subject:  TWX AddMenu Question

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

Author:  ElderProphet [ Tue Apr 28, 2009 8:34 pm ]
Post subject:  Re: TWX AddMenu Question

No, that is by design, and I don't think it can be circumvented.

Author:  LoneStar [ Tue Apr 28, 2009 9:33 pm ]
Post subject:  Re: TWX AddMenu Question

Darn... so much for that idea

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/