Jump to content



Photo

MoveMouse


  • Please log in to reply
6 replies to this topic

#1 0re0

0re0

    Seeker

  • New Members
  • 3 posts

Posted 27 May 2011 - 07:41 PM

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





#2 sleepydvdr

sleepydvdr

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 572 posts

Posted 27 May 2011 - 07:49 PM

A newbie asking about question like this. I wonder what this might be for? :huh2:
#include <ByteMe.au3>

#3 0re0

0re0

    Seeker

  • New Members
  • 3 posts

Posted 27 May 2011 - 07:53 PM

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

#4 smartee

smartee

    Hippies.They're everywhere.

  • Active Members
  • PipPipPipPipPipPip
  • 653 posts

Posted 27 May 2011 - 07:55 PM

hi 0re0,

Welcome to the forum :huh2:

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


Hope this helps,
-smartee

#5 0re0

0re0

    Seeker

  • New Members
  • 3 posts

Posted 27 May 2011 - 08:35 PM

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

#6 monoscout999

monoscout999

    a member

  • Active Members
  • PipPipPipPipPipPip
  • 1,064 posts

Posted 27 May 2011 - 09:54 PM

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:

#7 brandonms

brandonms

    Seeker

  • Active Members
  • 6 posts

Posted 28 May 2011 - 02:18 AM

$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





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users