Garrett19212 Posted March 19, 2005 Share Posted March 19, 2005 i want it to search for a pixel on the screen and if it finds it i want it to move the mouse to where the pixel is and left click 2 times on the pixel. Is that possible? Link to comment Share on other sites More sharing options...
Blue_Drache Posted March 19, 2005 Share Posted March 19, 2005 i want it to search for a pixel on the screen and if it finds it i want it to move the mouse to where the pixel is and left click 2 times on the pixel.Is that possible?<{POST_SNAPBACK}>Pixelsearch()Mouseclick()Happy researching Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
Garrett19212 Posted March 19, 2005 Author Share Posted March 19, 2005 i searched and i couldnt find anything that would work... can i have an example on how to search for a pixel on the whole screen and if it find its it clicks on the pixel twice, and if it doesn't find it it loops the search over and over, and if it does find it it still searches for it over and over Link to comment Share on other sites More sharing options...
therks Posted March 19, 2005 Share Posted March 19, 2005 How about I clarify what Blue Drache said:PixelSearch()MouseClick()Reading is good for you. My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
Garrett19212 Posted March 19, 2005 Author Share Posted March 19, 2005 thx i was wondering how to get to that page Link to comment Share on other sites More sharing options...
Garrett19212 Posted March 19, 2005 Author Share Posted March 19, 2005 While 1 $coord = PixelSearch( 0, 0, 20, 300, 0x170F0B, 10 ) If Not @error Then MouseClick ( "left" [, $coord[0], $coord[1] [, 2 [, 10 ]]] ) EndIf WEnd Ok thats my script now how do i make it search the whole screen? Link to comment Share on other sites More sharing options...
therks Posted March 22, 2005 Share Posted March 22, 2005 Supply the size of your screen (Look at the @Desktop macros) to PixelSearch of course. Also, your MouseClick function is messy. You don't need all those [ and ] in there, only the ones after the $coord variables. My AutoIt Stuff | My Github 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