Jump to content
Sign in to follow this  
Engineer

Mouse Move problems

Recommended Posts

Engineer

I'm playing around with the mousemove function and it won't seem to work. I'm not sure how you put the code inside the forum page so heres a copy paste:

#cs ----------------------------------------------------------------------------

AutoIt Version: 3.3.6.1

Author: myName

Script Function:

Template AutoIt script.

#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here

MouseMove(20, 35[,20] )

MouseMove(90, 70[,20] )

MouseMove( 5, 10[,20] )

I don't know what I'm doing wrong. I just keep getting:

AU3Check errors

C:\Users\Jolly Pack Rat\Desktop\Mouse Test 1.au3(12,17) : ERROR: syntax error

MouseMove(20, 35[

~~~~~~~~~~~~~~~~^

C:\Users\Jolly Pack Rat\Desktop\Mouse Test 1.au3(13,17) : ERROR: syntax error

MouseMove(90, 70[

~~~~~~~~~~~~~~~~^

C:\Users\Jolly Pack Rat\Desktop\Mouse Test 1.au3(14,17) : ERROR: syntax error

MouseMove( 5, 10[

~~~~~~~~~~~~~~~~^

C:\Users\Jolly Pack Rat\Desktop\Mouse Test 1.au3 - 3 error(s), 0 warning(s)

I'm just not a natural with programing so any advice on this would be helpful. and could you tell me how to but in codes inside the questions? thanks.

Share this post


Link to post
Share on other sites
smartee

hi Engineer,

I'm not sure how you put the code inside the forum page

:mellow:

As for your script, the problem is the square brackets. It is there in the call-tip to show you that the third parameter is optional, but you don't type it in your code. Try this instead

MouseMove(5, 10, 20)

Hope this helps, :)

-smartee

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
Sign in to follow this  

×