| www.ClassicTW.com https://mail.black-squirrel.com/ |
|
| TWXProxy Script- passing the Asterics key https://mail.black-squirrel.com/viewtopic.php?f=15&t=26100 |
Page 1 of 1 |
| Author: | Thrawn [ Fri Jun 04, 2010 3:01 pm ] |
| Post subject: | 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 |
|
| Author: | ElderProphet [ Fri Jun 04, 2010 6:28 pm ] |
| Post subject: | 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/ |
|
| Author: | Thrawn [ Fri Jun 04, 2010 6:47 pm ] |
| Post subject: | 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/ 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 |
|
| Author: | ElderProphet [ Fri Jun 04, 2010 9:39 pm ] |
| Post subject: | 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. |
|
| Author: | Thrawn [ Fri Jun 04, 2010 10:29 pm ] |
| Post subject: | 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. |
|
| Page 1 of 1 | All times are UTC - 5 hours |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|