Jump to content

Color help


Pharon
 Share

Recommended Posts

ok I want to make a script that will hit D when a color is at a certain point, so far I have tried

HotKeySet("=", "MyExit")

$i = 10

Do

$coord = PixelSearch( 324, 246, 324, 246, 0xFF0000 )

If @error Then

Sleep (1)

EndIf

If Not @error Then

Send ("{D down}")

Sleep (500)

Send ("{D up}")

EndIf

Until $i = 174

Func MyExit()

Exit

EndFunc

That just makes D go every half second.

So if anyone can help me thanks.

Link to comment
Share on other sites

I also don't know if the coordinates are right I just tried using the mouse coordinates in the script to see if it worked, but I'm not sure if thats how you do it.

>>>>>>>>>>> Window Dimensions <<<<<<<<<<<

left: 316 top: 258 width: 648 height: 507

>>>>>>>>>>> Mouse Position <<<<<<<<<<<

On Desktop: x: 640 y: 504

In Window: x: 324 y: 246

so in the window I need x: 324 and y: 246, this does need to be in the window not desktop

Link to comment
Share on other sites

I'm a real noob to this program, don't know how to change options or anything like that. If you could put into more detail how to do that?

never mind I think I misread your post

Edited by Pharon
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...