View unanswered posts | View active topics It is currently Thu Oct 01, 2020 7:24 am

Reply to topic  [ 1 post ] 
 Basic TWX help 
Author Message
Gunnery Sergeant

Joined: Thu Apr 19, 2001 2:00 am
Posts: 27
Location: USA
Unread post 
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"

send "i"
setTextLineTrigger 1 :getScanner "LongRange Scan :"
waitFor "Credits "
clientMessage "No long range scanner detected!"

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:
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?


"All your planet are belong to us!"

Tue Jul 10, 2001 5:48 pm
Profile ICQ WWW
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 2 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware.