Windows 2000 bug cant repeat commands

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
CeiVar

Windows 2000 bug cant repeat commands

Post by CeiVar » Sun Jun 01, 2003 3:53 am

Hi, I'm new to this program and I've encountered a problem which I would be very grateful for some solutions.
I'm running on a Windows 2000 pro client. I use this macro as copied from a website for a game.
It's supposed to let me do fishing in the game by moving mouse and clicking and such, but I can't seem to get it to repeat. I wait for ages and the macro just stops there entirely after executing once...

This is my script:

remark>Assume that first time rod is already a bit used
let>a=50
label>start
Remark>DBLCLICK BEGINS:
LDown
Wait>0.05
LUp
wait>0.05
LDown
Wait>0.05
LUp
Wait>0.1
Remark>END OF DBLCLICK
MouseMove>-70,-70
wait>0.3
LDown
Wait>0.05
LUp
wait>0.3
MouseMove>+70,+70
remark> 8.5 usual, 10 sec if lag
wait>8.5

wait>0.2
let>a=a+1
if>aa=0
wait>0.2

remark>Dragging used fishing rod away
wait>0.3
LDown
Wait>0.5
MouseMove>0,+40
wait>0.5
LUp
wait>1
MouseMove>0,-40
wait>0.3
Goto>start
label>end

If there is anything I should do please inform me.
I also noted from the site that it said this-
(Here is known problem: some computers with win2k makes delay about 5 minutes before repeating macro, still no solution for this case.)

Lumumba

Post by Lumumba » Fri Jun 06, 2003 10:09 am

Worked slightly on your code,

Code: Select all

//Assume that first time rod is already a bit used
let>a=50

label>start 

//DBLCLICK BEGINS: 
LDblClick
//END OF DBLCLICK 

MouseMove>-70,-70 
LClick
MouseMove>+70,+70 
Add>a,1 
if>a<200,start 
let>a=0

//Dragging used fishing rod away 
LDown 
MouseMove>0,+40 
LUp 

MouseMove>0,-40 
Goto>start 
label>end
Timing is an issue, especially if you've to work with a dynamic system (like a game). The timing (Wait>x,x) often varies based on the used system.

Try to identify the "behaviour" of that game.
Any changes on the screen (color, movement, etc.)

Check the command ref. for : GetPixelColor>; WaitPixelColor>; GetRectCheckSum>; WaitRectChanged> to identify an alternative command to trigger the game.

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