Jump to content

Running Desktop File


Recommended Posts

Guest BlackDiablo110
Posted

What's your code? And no, it didn't work.

Guest BlackDiablo110
Posted

OMG TY!!! YOURS WORKSSSSS

Posted (edited)

OMG TY!!! YOURS WORKSSSSS

<{POST_SNAPBACK}>

Well, g, my existance is now validated, at least in someone's eyes :(:ph34r:

You're welcome.

Edited by emmanuel

"I'm not even supposed to be here today!" -Dante (Hicks)

Guest BlackDiablo110
Posted

Ok here's my new, (and first) working script.

StarcraftFunc()

Func StarcraftFunc()

Run('"C:\Program Files\Starcraft\starcraft.exe"','C:\Program Files\Starcraft')

WinWaitActive("Brood War")

Sleep (5000)

Send ("!TAB")

Sleep (5000)

Run('"C:\Documents and Settings\Randall Degges\Desktop\Multihack\Damnation.exe"',"C:\Documents and Settings\Randall Degges\Desktop\MultiHack")

Sleep (5000)

WinKill("Damnation", "")

Sleep (5000)

WinActivate("Brood War", "")

EndFunc

BUT: 1 thing doesn't work. After I kill the Damnation window, it doesn't activate the Brood War window =(. Can someone tell me why? It should work... Hmm... Ideas?

Guest BlackDiablo110
Posted

Actually, I just editied it a little, here's what it looks like now:

StarcraftFunc()

Func StarcraftFunc()

Run('"C:\Program Files\Starcraft\starcraft.exe"','C:\Program Files\Starcraft')

WinWaitActive("Brood War")

Sleep (5000)

Run('"C:\Documents and Settings\Randall Degges\Desktop\Multihack\Damnation.exe"',"C:\Documents and Settings\Randall Degges\Desktop\MultiHack")

Sleep (5000)

WinKill("Damnation", "")

Sleep (5000)

WinActivate("Brood War", "")

EndFunc

But it still won't bring up the Brood War window again..

Posted

Send ("!TAB")

<{POST_SNAPBACK}>

is sending Alt-Shift-t (then) AB

I'm guessing this has little to no effect on anything.

you mean:

Send ("!{TAB}")

right?

You also might want to try winsetstate instead of or along with winactivate.

don't have or care about starcraft (actually did like it when I played it way back when) but figure helping is good karma, that and someday you may help me :ph34r:

"I'm not even supposed to be here today!" -Dante (Hicks)

Guest BlackDiablo110
Posted

Thanks emmanuel. I owe you one. =). WinSetState works.

Posted

Thanks emmanuel. I owe you one. =). WinSetState works.

<{POST_SNAPBACK}>

no problem... got any bright ideas about comparing date arrays? (see my recent post here) :ph34r:

"I'm not even supposed to be here today!" -Dante (Hicks)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...