It won't work for my game but it works (o_0)

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
TehLeetSillyGoose

It won't work for my game but it works (o_0)

Post by TehLeetSillyGoose » Mon Jul 07, 2003 6:50 am

I think macro scheduler is on crack. Check this. I got this script to macro shapeshift in my game. I'm sure it's written correct because it other people use the script in the same program. However, I click run, and it works fine, but when I bring back up my game, it's still running in the background (on desktop), and not in the game. :shock: Even if I use hotkeys to run it while ingame, it still doesn't run in the game.
The game is called Endless Ages. I'm running a Pentium 4, 1.3 GHz, 384 RDRAM, Direct X 9.0a (required for game), 64MB Geforece4 Ti4200 Maddog Gold Edition, and.. Windowns Me... here's the script if it means anything to yall.

Label>Start
MouseMove>0, 0
MDown
Wait>1
MUp
Wait>1
MouseMove>140,0
MouseMove>0,0
Wait>1
lDown
Wait>1.5
lUp
Wait>1
MouseMove>-140,0
MouseMove>0,0
lDown
Wait>1
lUp
Goto>Start

Lumumba

Post by Lumumba » Mon Jul 07, 2003 8:30 am

Have you ever used the GetActiveWindow>command, to catch the (game internal) title of the relevant window? Afterwards a SetFocus> shouldn't be a problem.

Code: Select all

Wait>3
GetActiveWindow>window,x,y
MessageModal>Title: %window%%CRLF%XCoord: %x%%CRLF%YCoord: %y%

TehLeetSillyGoose

Post by TehLeetSillyGoose » Mon Jul 07, 2003 7:32 pm

sorry im illiterate with this.. The game is "Endlessages.exe"... but it shows as "INTERN" on the task bar... how i get it to open it and focus and stuff? im sorry lol im teh leet sillygoose n00b :oops:

Lumumba

Post by Lumumba » Mon Jul 07, 2003 8:19 pm

Check MScheds command reference.
Keywords:
GetActiveWindow
WindowAction
SetFocus

Code: Select all

Label>WinDetect
GetActiveWindow>window,x,y
If>window=Program Manager,Exit
Ask>Detected: %window%%CRLF%Wanna close this window?,Answer
If>Answer=YES,Close
SetFocus>%window%
WindowAction>3,%window%
Wait>3
WindowAction>2,%window%

Label>Close
CloseWindow>%window%
Goto>WinDetect

Label>Exit
MessageModal>Ooops, it's the desktop!%CRLF%Bye ...

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts