SomeRandomUsername Posted December 12, 2015 Posted December 12, 2015 (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?
xxaviarxx Posted December 12, 2015 Posted December 12, 2015 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.
JohnOne Posted December 12, 2015 Posted December 12, 2015 Yes, you write a function like this...Func _MyFuncName() ; write what you want to do in here EndFuncAnd 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now