🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.games.starcraft
Article #293124

my first script

#293124
From: John Doe
Date: Tue, 19 Jul 2011 01:25
21 lines
1576 bytes
Perhaps my first useful script.

  "worker":#grab a worker
    Key("c-f2")+#save location
    Key("f1")+#select idle worker if any
    Key("f2")+#recall location
    Key("c-7")+#assign to throwaway group
    Mouse("left")+#select worker under pointer
    Key("c-7")+#assign to throwaway group
    Key("7")+#select throwaway group
    PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),

As far as I can tell, Starcraft always moves the view if the idle 
worker being selected is not on the current screen. That is a 
hassle, but at least it allows saving camera locations. So that is 
how the above script operates. If a worker is under the pointer, 
that worker will be selected. If nothing is under the pointer, an
the idle worker will be selected. 

That script (or similar) will be used at the beginning of lots of
other scripts that do something with a worker. 
Technical Details
Message-ID: <4e24dd0d$0$4616$c3e8da3$460562f1@news.astraweb.com>
Path: mbox-mo1.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.astraweb.com!border6.newsrouter.astraweb.com!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.astraweb.com!border6.newsrouter.astraweb.com!not-for-mail
Newsgroups: alt.games.starcraft
Subject: my first script
From: John Doe <jdoe@usenetlove.invalid>
User-Agent: Xnews/2006.08.05
Date: 19 Jul 2011 01:25:33 GMT
Lines: 21
Message-ID: <4e24dd0d$0$4616$c3e8da3$460562f1@news.astraweb.com>
Organization: Unlimited download news at news.astraweb.com
NNTP-Posting-Host: 7d3fbcf2.news.astraweb.com
X-Trace: DXC=2Bae0:bWQPNDIol_\Lk[aFL?0kYOcDh@J?i7;_^2R3kKE3=kG9hhb7BX]J^06@\k1@NDS`UdXXd@ECifRP]YX4PAXZ=n^`i[JiEB6=\>Y\ISCH
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit