help...

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
franklint

help...

Post by franklint » Thu Aug 26, 2004 2:57 am

I am trying to do something in a game that requires me to press and hold on to ctrl and click continuously. I am new to this so I came up with this script.

label>start
press ctrl
Wait>1.00
lclick
Goto>start
label>end

When I tested it, for some reason instead of staying in the same place and clicking, the mouse keeps flying around even tho I put in no mouse move commands. Another problem is that i can't use shift+esc to stop the macro because ctrl shift and esc will make task manager pop out.

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Thu Aug 26, 2004 5:02 am

You probably need to SetFocus>WindowName* before you do your mouse activities. And you need to move your Start after pressing the Control Key.
Note there will be no way to get out of this macro unless you do Shift-Esc to break the macro.

Results could look something like this:
SetFocus>WindowName*
Press CTRL
Label>Start
Wait>1.00
Lclick
Goto>Start
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

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