View unanswered posts | View active topics It is currently Sun Apr 19, 2026 11:57 pm



Reply to topic  [ 5 posts ] 
 TWXProxy Script- passing the Asterics key 
Author Message
Commander
User avatar

Joined: Fri Aug 20, 2004 2:00 am
Posts: 1801
Location: Outer Rims
Unread post TWXProxy Script- passing the Asterics key
I know in TWX scripting when you have this:

send "*"

That will result a line as if you pressed Enter. What I would like to know is how to tell a script to use the * key and not think it is to simulate Enter. For example, in TW you can press * to view the Game Globals. That's what I need to do is tell the script to use the * key to access that menu associated with the * key. I can't find the notes I had on various keys, and could use some help.

[EDIT]

It's okay, I found my code sheet. My answer was

send #42

_________________
-Thrawn

But risk has always been an inescapable part of warfare.

--

Knight to Queen's Bishop 3


Fri Jun 04, 2010 3:01 pm
Profile
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1134
Location: Augusta, GA
Unread post Re: TWXProxy Script- passing the Asterics key
send #42
Here is a good list of ANSI codes. You can send any character from TWX by using the decimal char code.
http://www.asciitable.com/

:P

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


Fri Jun 04, 2010 6:28 pm
Profile WWW
Commander
User avatar

Joined: Fri Aug 20, 2004 2:00 am
Posts: 1801
Location: Outer Rims
Unread post Re: TWXProxy Script- passing the Asterics key
ElderProphet wrote:
send #42
Here is a good list of ANSI codes. You can send any character from TWX by using the decimal char code.
http://www.asciitable.com/

:P


That's what I was trying to locate. Could not remember where it was- drew a blank on it, so i figured I would post. Then as I hit submit, it came to me.

I was out of coffee at that time. That's my excuse :) Thanks for the link EP. I have it saved to file now so I know where it is. Need it for expanding my scripts and such.

_________________
-Thrawn

But risk has always been an inescapable part of warfare.

--

Knight to Queen's Bishop 3


Fri Jun 04, 2010 6:47 pm
Profile
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1134
Location: Augusta, GA
Unread post Re: TWXProxy Script- passing the Asterics key
Code:
echo "*Press any key (except $) and the char code(s) will be displayed.*"
while TRUE
   getConsoleInput $key SINGLEKEY
   getCharCode $key $code
   clientMessage $code
end

This is a handy routine when you are hunting a char code. Especially useful to determine multi-code keyboard keystrokes, like the down arrow key (#27 #91 #66) or the End key (#27 #91 #52 #126). Of course, #27 #91 is "ESC[", the beginning of an Escape code. Swath and other helpers will block most of those, but the Windows telnet client will pass them on to TWX.

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


Fri Jun 04, 2010 9:39 pm
Profile WWW
Commander
User avatar

Joined: Fri Aug 20, 2004 2:00 am
Posts: 1801
Location: Outer Rims
Unread post Re: TWXProxy Script- passing the Asterics key
ElderProphet wrote:
Code:
echo "*Press any key (except $) and the char code(s) will be displayed.*"
while TRUE
   getConsoleInput $key SINGLEKEY
   getCharCode $key $code
   clientMessage $code
end

This is a handy routine when you are hunting a char code. Especially useful to determine multi-code keyboard keystrokes, like the down arrow key (#27 #91 #66) or the End key (#27 #91 #52 #126). Of course, #27 #91 is "ESC[", the beginning of an Escape code. Swath and other helpers will block most of those, but the Windows telnet client will pass them on to TWX.



Thank you. I will have good use for this.

_________________
-Thrawn

But risk has always been an inescapable part of warfare.

--

Knight to Queen's Bishop 3


Fri Jun 04, 2010 10:29 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 13 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.