Sign in to follow this  
Followers 0
0re0

MoveMouse

7 posts in this topic

Hey Guys :huh2:

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 :alien:

0re0

Share this post


Link to post
Share on other sites



A newbie asking about question like this. I wonder what this might be for? :huh2:


#include <ByteMe.au3>

Share this post


Link to post
Share on other sites

I want to know it cause I made one project with/about Autoit in school.

Share this post


Link to post
Share on other sites

hi 0re0,

Welcome to the forum :huh2:

Try this

MouseMove($pixel1[0], $pixel1[1] + 20, 1)

Hope this helps,

-smartee

Share this post


Link to post
Share on other sites

$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?

Share this post


Link to post
Share on other sites

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?

try mouseclick() only... read the help about it, it can move the mouse too :huh2:

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  
Followers 0