Alright first you need to get AutoIt (autoitscript.com) Look for the downloads etc. Once downloaded right click on your desktop and go to New (like where you can create a new folder etc) And it will say new Autoit script and have the little picture, click it for the name, name it like test.au3. Ill explain a little program first the concept of Mouse clicking.
Alright this will left click many times in VERY rapid succession. Now lets make it a little bit more complicated.
Try to figure this out...
************
*******************
************
*******************
Got it? Probably not because you dont know the functions totally yet :D
Ok first function is left, that means it will use left clicks, 2nd function is the coordinates on your computer screen that it will click on, 3rd one (the 5) is how many times it will click at those coordinates. (After the 5 you may add this ', 500')
that will click the coordinates every 500 ms (milliseconds)
Ok lets go on to a more harder script for people who do autoit but not are very good.
Tell me what this will do:
Alright that script is probably really messy because im trying to spacebar to indent since i cant use Tab in here lol. But when you have them lined up it works :P
Alright a pixelsearch is a function that pretty much... searches for the pixels 0xB50400 (which is a red color of a monsters health bar) throughtout the whole desktop
after that you will see a comma then a 1 that means it can only differ between 1 pixel (like its pretty much the same but a 0 would be that exact color) then the comma 38 means that it searches EVERY 38 pixels on the desktop to speed up the process. the arrays pixelsearch[0] pixel search[1] are too complicated for many people and ive jsut learned them like a month ago so not much to teach yet :)
For now thats all for todays lesson, if people actually get interested in this post ill post more later but before i go i need to explain the While 1 WEnd
Alright any code thats between While 1 and WEnd will loop (continue the script over and over thats between the while 1 and wend until something else comes up)
Also i cant teach everything you need to work for yourself as i did using the autoit help document in the autoit folder.
Code:
MouseClick("left")
Code:
MouseClick("left", 500, 200, 5)
************
*******************
************
*******************
Got it? Probably not because you dont know the functions totally yet :D
Ok first function is left, that means it will use left clicks, 2nd function is the coordinates on your computer screen that it will click on, 3rd one (the 5) is how many times it will click at those coordinates. (After the 5 you may add this ', 500')
that will click the coordinates every 500 ms (milliseconds)
Ok lets go on to a more harder script for people who do autoit but not are very good.
Tell me what this will do:
Code:
While 1
$pixelsearch = Pixelsearch(0, 0, @Desktopwidth, @DesktopHeight, "0xB50400", 1, 38)
If @error <> 1 then
MouseClick("right", $pixelsearch[0], $pixelsearch[1] )
Endif
Wend
Alright a pixelsearch is a function that pretty much... searches for the pixels 0xB50400 (which is a red color of a monsters health bar) throughtout the whole desktop
after that you will see a comma then a 1 that means it can only differ between 1 pixel (like its pretty much the same but a 0 would be that exact color) then the comma 38 means that it searches EVERY 38 pixels on the desktop to speed up the process. the arrays pixelsearch[0] pixel search[1] are too complicated for many people and ive jsut learned them like a month ago so not much to teach yet :)
For now thats all for todays lesson, if people actually get interested in this post ill post more later but before i go i need to explain the While 1 WEnd
Alright any code thats between While 1 and WEnd will loop (continue the script over and over thats between the while 1 and wend until something else comes up)
Also i cant teach everything you need to work for yourself as i did using the autoit help document in the autoit folder.