View unanswered posts | View active topics It is currently Fri Dec 26, 2025 12:15 am



Reply to topic  [ 3 posts ] 
 Simple "I Spy" 
Author Message
Ambassador
User avatar

Joined: Mon Feb 09, 2004 3:00 am
Posts: 3141
Location: Kansas
Unread post Simple "I Spy"
The script below is a simple - read kludge - I Spy script that uses a second TWX connection to monitor a game that you wish to watch. I use a telnet/TWX connection to monitor unlim steal progression and keep an eye on the ships that others are in. It is simple and could be developed more if you wish to.

Code:
# I_Spy.ts - Monitor player scores from second TWX session
# --> I typically use MS telnet/TWX to connect and run as a 2nd connection
# 1 second on delaytrigger = 1000 ms

Clientmessage "Enter Game to Check"
getconsoleinput $gameCheck singlekey
uppercase $gameCheck
Window ISpy 500 300 "I Spy 1 "  ONTOP
Window ISpy2 500 300 "I Spy 2 "  ONTOP
setVar $line2 "*"

:begin
killtrigger crs
connect
setTextTrigger pleaseEnter :pleaseEnter "Please enter"
setTextTrigger tw2002 :pleaseEnter "Trade Wars"
pause
:pleaseEnter
killalltriggers
send "I_Spy*"
getTime $time "'The time is :' hh:mm:ss AM/PM'"
setVar $line "*" & $time & "**"

:mediumD
  setVar $i 1
  setTextTrigger select :select "Selection"
  pause
  :select
  send $gameCheck
  waitfor "[Pause]"
  send " "
  waitfor "[Pause]"
  send " "
  send "h*"
  waitfor "---------"
  setTextTrigger pause :pause "Pause"
  setTextTrigger line :line "     "
  setTextTrigger done :done "==-- Trade Wars 2002"
  pause
  :pause
  setTextTrigger pause :pause "Pause"
  send " "
   pause
  :line
   setVar $line $line & currentline & "*"
   setTextTrigger line :line "   "
   pause
   :done
   killalltriggers
  send "x*"
  setDelayTrigger miniD :miniD 2000
  pause
  :miniD
  send "q"
  disconnect
  setWindowContents ISpy2 $line2
  setWindowContents ISpy $line
  setVar $line2 $line
  setDelayTrigger longD :begin 180000
  setTextTrigger crs :crs "Please enter"
  pause

:crs
# can't remember sh*t and tried to log in manually with the script running
halt


_________________
               / Promethius / Enigma / Wolfen /

"A man who has no skills can be taught, a man who has no honor has nothing."


Fri May 21, 2010 1:26 am
Profile ICQ
Commander
User avatar

Joined: Fri Jun 09, 2006 2:00 am
Posts: 1400
Location: Canada
Unread post Re: Simple "I Spy"
Nice. Reminds me of my PoundIT Script. I'll have to give this a try!

_________________
----------------------------
-= 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.)


Thu Mar 28, 2013 6:43 am
Profile ICQ YIM
Ambassador
User avatar

Joined: Wed Nov 12, 2008 8:57 am
Posts: 3554
Location: Long Beach, CA
Unread post Re: Simple "I Spy"
It a swell way to monitor a game as a sysop too

Thanks

_________________
Helix
Do I really look like a guy with a plan? You know what I am? I'm a dog chasing cars.
Lest we forget
I had to ask myself WWSGD?


Thu Mar 28, 2013 1:53 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

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