dragonheard Posted March 16, 2011 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.
Moderators Melba23 Posted March 16, 2011 Moderators 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
dragonheard Posted March 16, 2011 Author 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
dragonheard Posted March 16, 2011 Author 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....
JohnOne Posted March 16, 2011 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.
gerwim Posted March 16, 2011 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
dragonheard Posted March 17, 2011 Author 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?
gerwim Posted March 17, 2011 Posted March 17, 2011 So what? You don't need the coords yourself, it will look for them. What else do you want?
JohnOne Posted March 17, 2011 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.
dragonheard Posted March 18, 2011 Author 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!
dragonheard Posted March 18, 2011 Author 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?
BigDod Posted March 18, 2011 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
AppTux Posted March 18, 2011 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.
dragonheard Posted March 18, 2011 Author 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....
JohnOne Posted March 19, 2011 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.
dragonheard Posted March 20, 2011 Author Posted March 20, 2011 The Endroflol well i think i got how to fix it.. xD
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