Help - Search - Members - Calendar
Full Version: Pointer coordinate macro
AC Tools Everything Macro > AC Tool Macros > Asheron's Call Macros
umutcan15
How can i make this macro easily ?
pointer goes (1, 1) then Leftclick, delay 100,
pointer goes (1,2) then Leftclick, delay 100,
pointer goes (1,3) then leftclick, delay 100,
pointer goes (1,4) then leftclick, delay 100
.............
.........
.....
Pointer goes (1,1000) then left click delay 100
end


Is there a command to make my pointer go between 1,1 and 1,1000 step by step ?
It's very hard to make this macro by using standart commands.
Please help me.
Dog_Welder
QUOTE(umutcan15 @ May 27 2007, 12:48 PM) *
How can i make this macro easily ?
pointer goes (1, 1) then Leftclick, delay 100,
pointer goes (1,2) then Leftclick, delay 100,
pointer goes (1,3) then leftclick, delay 100,
pointer goes (1,4) then leftclick, delay 100
.............
.........
.....
Pointer goes (1,1000) then left click delay 100
end


Is there a command to make my pointer go between 1,1 and 1,1000 step by step ?
It's very hard to make this macro by using standart commands.
Please help me.



You need to make a loop
code might be a bit off but it should look something like this.


constants
y=0
end


while y < 1001

pointer goes (1, y) then Leftclick, delay 100,
compute y = $y+1




end
Ahk
It would be more efficient to skip a couple of pixels if at all possible.

1,1 to 1,1000 is a 1000 different clicks...and at .1 delay, that's about a minute and a half. Add a second loop (ie. 1,1, 1,2... 2, 1, 2,2... 3, 1, 3,2 3,1000...I *think* is 27 hours.

Dog_Welder's example is good, you need to insert a $ sign in front of y when it is used in the while loop however, otherwise the macro won't run.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.