Pharon Posted October 21, 2004 Share Posted October 21, 2004 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 More sharing options...
Pharon Posted October 21, 2004 Author Share Posted October 21, 2004 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 More sharing options...
Pharon Posted October 21, 2004 Author Share Posted October 21, 2004 (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 October 21, 2004 by Pharon Link to comment Share on other sites More sharing options...
Pharon Posted October 21, 2004 Author Share Posted October 21, 2004 Ah, thank you larry it works perfectly Link to comment Share on other sites More sharing options...
scriptkitty Posted October 21, 2004 Share Posted October 21, 2004 (edited) NM, Larry beat me to it Edited October 21, 2004 by scriptkitty AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now