| www.ClassicTW.com https://mail.black-squirrel.com/ |
|
| Basic TWX help https://mail.black-squirrel.com/viewtopic.php?f=15&t=12856 |
Page 1 of 1 |
| Author: | smthng [ Tue Jul 10, 2001 5:48 pm ] |
| Post subject: | |
Hey all, I'm working on some scripting stuff for TWX to handle some basic but repetitive tasks and am having some issues. I generally put a lot of debug stuff in when I'm writing from scratch so I can easily tell where things are messing up. However, I'm having problems with SIMPLE stuff that doesn't make sense to me. Help! WTF is wrong with the following code? cutText CURRENTLINE $location 1 7 if ($location <> "Command") clientMessage "This script must be run from a sector prompt" halt end send "i" setTextLineTrigger 1 :getScanner "LongRange Scan :" waitFor "Credits " clientMessage "No long range scanner detected!" halt :getScanner getWord CURRENTLINE $scanType 4 echo "*" ANSI_15 "Press a key or smthng" getConsoleInput $goob SINGLEKEY echo "*Result as follows: *Location:" $location "*Scanner:" $scanType "*Goobres:" $goob getInput $blah "Enter to quit" The problem is with the getConsoleInput in the bottom block... it doesn't wait for input. I've tried a getInput as well and it doesn't wait either. It just blasts right through it. Here's the output that I see when I run the above: Press a key or smthng Result as follows: Location:Command Scanner:Holographic Goobres:0 Enter to quit > At this point it's waiting for me to enter something for the last line in my code (the getInput $blah). So, why is it working on the second getInput, but not the first getConsoleInput? --smthng "All your planet are belong to us!" |
|
| Page 1 of 1 | All times are UTC - 5 hours |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|