🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.games.starcraft
Article #293125

Re: my first script

#293125
From: Qinsi L.
Date: Wed, 20 Jul 2011 10:16
24 lines
2064 bytes
On Jul 19, 9:25 am, John Doe <j...@usenetlove.invalid> wrote:
> 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.

Good
Technical Details
Message-ID: <38d7be0c-6b85-4717-96ca-fc4eddadf8f6@g3g2000prf.googlegroups.com>
Path: mbox-mo1.pugleaf.net!g2news2.google.com!postnews.google.com!g3g2000prf.googlegroups.com!not-for-mail
References: <4e24dd0d$0$4616$c3e8da3$460562f1@news.astraweb.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!g2news2.google.com!postnews.google.com!g3g2000prf.googlegroups.com!not-for-mail
From: "Qinsi L." <liang...@gmail.com>
Newsgroups: alt.games.starcraft
Subject: Re: my first script
Date: Wed, 20 Jul 2011 03:16:21 -0700 (PDT)
Organization: http://groups.google.com
Lines: 24
Message-ID: <38d7be0c-6b85-4717-96ca-fc4eddadf8f6@g3g2000prf.googlegroups.com>
References: <4e24dd0d$0$4616$c3e8da3$460562f1@news.astraweb.com>
NNTP-Posting-Host: 116.6.21.98
Mime-Version: 1.0
X-Trace: posting.google.com 1311157106 21061 127.0.0.1 (20 Jul 2011 10:18:26 GMT)
X-Complaints-To: groups...@google.com
NNTP-Posting-Date: Wed, 20 Jul 2011 10:18:26 +0000 (UTC)
Complaints-To: groups...@google.com
Injection-Info: g3g2000prf.googlegroups.com; posting-host=116.6.21.98; posting-account=Ih4NvwoAAAD0u_zbtAz_JEOfApAE0g5A
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.122 Safari/534.30,gzip(gfe)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit