0re0 Posted May 27, 2011 Share Posted May 27, 2011 Hey Guys I hope you can help if IsArray ($pixel1) = True Then MouseMove ($pixel1 [0], $pixel1 [1], 1) Move mouse 20 pixel down. MouseClick ('left') Now how u see i need help, how i can move the mouse 20 pixel under the variable $pixel1. Thank YOU 0re0 Link to comment Share on other sites More sharing options...
sleepydvdr Posted May 27, 2011 Share Posted May 27, 2011 A newbie asking about question like this. I wonder what this might be for? #include <ByteMe.au3> Link to comment Share on other sites More sharing options...
0re0 Posted May 27, 2011 Author Share Posted May 27, 2011 I want to know it cause I made one project with/about Autoit in school. Link to comment Share on other sites More sharing options...
smartee Posted May 27, 2011 Share Posted May 27, 2011 hi 0re0, Welcome to the forum Try thisMouseMove($pixel1[0], $pixel1[1] + 20, 1) Hope this helps, -smartee Link to comment Share on other sites More sharing options...
0re0 Posted May 27, 2011 Author Share Posted May 27, 2011 $pixel1 = PixelSearch (125, 70, 916, 615, 0xFFFFA0) While 1 if IsArray ($pixel1) = True Then MouseMove($pixel1[0], $pixel1[1] + 20 , 1) MouseClick ('left') sleep (1000) EndIf WEnd Now the programm should use press with left-click on yellow letters, but in presses always (if I move my mouse, too) to the same position with the color 0xF0F4F9 (standart white). What did I wrong? Link to comment Share on other sites More sharing options...
monoscout999 Posted May 27, 2011 Share Posted May 27, 2011 Now the programm should use press with left-click on yellow letters, but in presses always (if I move my mouse, too) to the same position with the color0xF0F4F9 (standart white). What did I wrong?try mouseclick() only... read the help about it, it can move the mouse too Link to comment Share on other sites More sharing options...
brandonms Posted May 28, 2011 Share Posted May 28, 2011 $pixel1 = PixelSearch (125, 70, 916, 615, 0xFFFFA0) While 1 If IsArray ($pixel1) Then MouseClick ("PRIMARY", $pixel1[0], $pixel1[1], 1, 0) Sleep (1000) EndIf WEnd Link to comment Share on other sites More sharing options...
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