Jump to content
Sign in to follow this  
xJAMESx

Need Help with Script

Recommended Posts

xJAMESx

Hello

I search a code that adds coords on that code, that the mouse click under the foundet pixel:

$coord = PixelSearch( 100, 100, 1280, 950, FARBE, 1, 2)
If Not @error Then
   MouseMove($coord[0],$coord[1],0)
   MouseClick("right",$coord[0],$coord[1])
   Sleep (50)
EndIf

A Exampel:

PIXEL

MOUSECLICK

Please Help me

Share this post


Link to post
Share on other sites
Jos

mmm ... don't think I understand what you want ...

.. and what is the intend of FARBE in the first statement ? is that supposed to be a variable containing the color ?

Variables always start with an $ .

:whistle:

Edited by JdeB

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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  

×