SomeRandomUsername

How to shorten a repetitve mouse movement?

3 posts in this topic

(New user, any suggestions/advice would be greatly appreciated!)

The script I'm writing needs to move the mouse and click on various parts on the screen, but each button location would be clicked multiple times. Is there any way to create a "method" (I think) of sorts so that I could define button1 to move/click cursor on location and also write something to the console?

Share this post


Link to post
Share on other sites



First thought that comes to mind is to use the ControlID of the button to set the location of where your mouse should be located at. To write something to the console you use ConsoleWrite("Your message here").

Also welcome to the forums btw.

Share this post


Link to post
Share on other sites

Yes, you write a function like this...

Func _MyFuncName()
    ; write what you want to do in here
EndFunc

And to call that function, you just write...

_MyFuncName()

And anything in the body of _MyFuncName() with be ran.


AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites

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