Sign in to follow this  
Followers 0
Pharon

Color help

5 posts in this topic

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.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

Ah, thank you larry it works perfectly :)

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

NM, Larry beat me to it

Edited by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

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