Jump to content

Recommended Posts

Posted

So, i'm totally new to autoit. There are several macros i want to make that use only the mouse. If i can get help on making 1 macro i should be able to make the rest of the macros i need, since they will all be so similar. Here is what i need. It's a series of clicks on certain coordinates and the time to wait after each before the next click. this is it;

882, 337 left click then wait 0.3 seconds

924, 488 left click then wait 0.3 seconds

repeat above 2 lines 14 times

508, 192 right click then wait 0.3 seconds

517, 227 left click then wait 1 second

643, 289 right click then wait 0.3 seconds

633, 356 left click then wait 0.3seconds

882, 337 right click then wait 0.3 seconds

882, 413 left click then wait 0.3 seconds

686, 284 right click then wait 0.3 seconds

674, 358 left click then wait 0.3 seconds

739, 122 left click then wait 0.4 seconds

repeat entire process endlessly or until there is a keyboard input (or even a specific button, whatever works)

if you could help me i would be forever grateful!!!

thx in advance

Posted

So, i got the script to do most of what i want, just had to adjust some coordinates but now it works. There are 3 things left for me to figure out, and the help file doesn't seem to have what i need.

First thing, i'd like to speed it up. When i run the script i was hoping to get the times mentioned in the first post to be the time between clicks. But autoit moves the mouse kinda slow. I increased my mouse speed and took out the 'sleep' command and it still takes over a second instead of 0.3 seconds. Is there a way to speed that up?

I also would like a hotkey that i can push at any time to stop the macro from running.

The last thing is could i get the command to repeat the whole process endlessly? (or at least till i hit the hotkey)

Here's the program so far.

For $x = 1 To 14
    
    MouseClick("Left", 880, 414)
    
    
    MouseClick("Left", 967, 520)
    

Next

Sleep(1000)

MouseClick("Right", 508, 192)
    Sleep(300)

MouseClick("Left", 517, 227)
    Sleep(1000)

MouseClick("Right", 643, 289)
    Sleep(300)

MouseClick("Left", 633, 356)
    Sleep(300)

MouseClick("Right", 882, 337)
    Sleep(300)

MouseClick("Left", 882, 413)
    Sleep(300)

MouseClick("Right", 686, 284)
    Sleep(300)

MouseClick("Left", 674, 358)
    Sleep(300)

MouseClick("Left", 739, 122)
    Sleep(400)

thank you very much

Posted

An update on my progress. I just ran it again and it went fast. Dunno what changed, but now it goes quickly, maybe it was the P2P i had running in the backround??!!!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...