dragonheard 0 Posted March 16, 2011 hello people of the autoit forums, i downloaded autoit and im amazed of what i can do with it, i allready have made a pixel searcher but now i'd like to know how to make it click the color? i allready looked at the help files but it only shows me how to click/drag a coordinate not a color... so like when i see a color it auto detects and clicks it so i dont have to put the coordinates inside somebody has allready made something like it but id like to make my own..... ill put an attachment with the script he made in au3 format....... thanks in advance, dragonheard. Share this post Link to post Share on other sites
Melba23 3,455 Posted March 16, 2011 dragonheard,Welcome to the AutoIt forum. i allready have made a pixel searcherHow does your pixel searcher know it has found the right pixel? Can it not tell you where it is? M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Share this post Link to post Share on other sites
dragonheard 0 Posted March 16, 2011 dragonheard,Welcome to the AutoIt forum. How does your pixel searcher know it has found the right pixel? Can it not tell you where it is? M23yeah it tells me the x/y of the color but i dont want it to say it but auto click it while scanningso it auto detects the spot and automatically clicks on the spot so i dont need the coords Share this post Link to post Share on other sites
dragonheard 0 Posted March 16, 2011 dragonheard,Welcome to the AutoIt forum. How does your pixel searcher know it has found the right pixel? Can it not tell you where it is? M23thanks =Dbut i want it to auto click it when seen so when detecting it clicks the color i dont want it to tell the coordinates as colors can move.... Share this post Link to post Share on other sites
JohnOne 1,603 Posted March 16, 2011 Look at the function MouseClick(), specifically the paramaters it takes. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Share this post Link to post Share on other sites
gerwim 0 Posted March 16, 2011 Simple: $PixelLoc = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, $vHexColor) ;MsgBox(0, "", $PixelLoc[0] & ":" & $PixelLoc[1]) If Not @error Then MouseClick("primary", $PixelLoc[0], $PixelLoc[1]) EndIf Share this post Link to post Share on other sites
dragonheard 0 Posted March 17, 2011 Simple: $PixelLoc = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, $vHexColor) ;MsgBox(0, "", $PixelLoc[0] & ":" & $PixelLoc[1]) If Not @error Then MouseClick("primary", $PixelLoc[0], $PixelLoc[1]) EndIf but than ill still need the coords? Share this post Link to post Share on other sites
gerwim 0 Posted March 17, 2011 So what? You don't need the coords yourself, it will look for them. What else do you want? Share this post Link to post Share on other sites
JohnOne 1,603 Posted March 17, 2011 $PixelLoc = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, $vHexColor);MsgBox(0, "", $PixelLoc[0] & ":" & $PixelLoc[1])If Not @error Then MouseClick("primary", $PixelLoc[0], $PixelLoc[1])EndIfWhat is it exactly, that you think they are? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Share this post Link to post Share on other sites
dragonheard 0 Posted March 18, 2011 $PixelLoc = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, $vHexColor) ;MsgBox(0, "", $PixelLoc[0] & ":" & $PixelLoc[1]) If Not @error Then MouseClick("primary", $PixelLoc[0], $PixelLoc[1]) EndIf What is it exactly, that you think they are? im very very sorry.. i thought i still needed to put in the coords. THANKS anyway! Share this post Link to post Share on other sites
dragonheard 0 Posted March 18, 2011 COOL IT NOW WORKS WELL but now i have to reboot my comp to stop it.. could someone please tell me the easy way to add a hotkey? Share this post Link to post Share on other sites
BigDod 518 Posted March 18, 2011 COOL IT NOW WORKS WELLbut now i have to reboot my comp to stop it..could someone please tell me the easy way to add a hotkey?Try looking in the help file at HotKeySet you might even find an example there Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Share this post Link to post Share on other sites
AppTux 0 Posted March 18, 2011 (edited) Just put it in a function and use HotKeySet() edit: lol, posting same time Edited March 18, 2011 by AppTux PowerSlide2UnlockiPhone look-a-like program you can use to lock your pc, you can't access your desktop again until the password is entered and the slider slided to the right. (really proud of it)-- After a time AutoIt and Windows, I switched to Mac. Don't expect me to answer anymore. Share this post Link to post Share on other sites
dragonheard 0 Posted March 18, 2011 Just put it in a function and use HotKeySet() edit: lol, posting same time thanks it works but in games it makes me die.....and the "togglepause" doesnt work,,if i say he has to click blue he gets all colors of my screen so i keep dieing.... Share this post Link to post Share on other sites
JohnOne 1,603 Posted March 19, 2011 thanks it works but in games it makes me die.....and the "togglepause" doesnt work,,if i say he has to click blue he gets all colors of my screen so i keep dieing....The End AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Share this post Link to post Share on other sites
dragonheard 0 Posted March 20, 2011 The Endroflol well i think i got how to fix it.. xD Share this post Link to post Share on other sites