View unanswered posts | View active topics It is currently Thu Jan 01, 2026 8:09 pm



Reply to topic  [ 3 posts ] 
 TWX AddMenu Question 
Author Message
Commander
User avatar

Joined: Fri Jun 09, 2006 2:00 am
Posts: 1400
Location: Canada
Unread post 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

_________________
----------------------------
-= QUANTUM Computing 101: 15 = 3 x 5 ... 48% of the time.
-= There are 10 types of people in the world: Those that understand Binary and those who do not
-= If Oil is made from Dinosaurs, and Plastic is made from Oil... are plastic Dinosaurs made from real Dinosaurs?
-= I like to keep my friends and my enemies rich, and wait to see which is which - Tony Stark (R.I.P.)


Tue Apr 28, 2009 8:19 pm
Profile ICQ YIM
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1133
Location: Augusta, GA
Unread post Re: TWX AddMenu Question
No, that is by design, and I don't think it can be circumvented.

_________________
Claim to Fame: only guy to ever crack the TW haggle algorithm, and fig/shield/hold price formula, twice.


Tue Apr 28, 2009 8:34 pm
Profile WWW
Commander
User avatar

Joined: Fri Jun 09, 2006 2:00 am
Posts: 1400
Location: Canada
Unread post Re: TWX AddMenu Question
Darn... so much for that idea

_________________
----------------------------
-= QUANTUM Computing 101: 15 = 3 x 5 ... 48% of the time.
-= There are 10 types of people in the world: Those that understand Binary and those who do not
-= If Oil is made from Dinosaurs, and Plastic is made from Oil... are plastic Dinosaurs made from real Dinosaurs?
-= I like to keep my friends and my enemies rich, and wait to see which is which - Tony Stark (R.I.P.)


Tue Apr 28, 2009 9:33 pm
Profile ICQ YIM
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 27 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by wSTSoftware.