Hacker4All Posted March 25, 2009 Share Posted March 25, 2009 Okay, since my last idea was shot down, i am being forced to get create on this machine i call a computer. Now, i know that there is a pixelsearch command thing on AutoIt. I am trying to figure out how to get the mouse to move to the pixel's location, left click, and push some numbers, and do that again and again. Also, is there a way to figure out what color is what pixel? Im kind of new to this, thanx for all the replies that i know will come flooding in. Link to comment Share on other sites More sharing options...
jvanegmond Posted March 25, 2009 Share Posted March 25, 2009 Or you could just read the help file github.com/jvanegmond Link to comment Share on other sites More sharing options...
Mat Posted March 25, 2009 Share Posted March 25, 2009 run this script: And run it whenever you have a problem, it's one of the best scripts I've ever written! AutoIt Project Listing Link to comment Share on other sites More sharing options...
jvanegmond Posted March 25, 2009 Share Posted March 25, 2009 run this script: And run it whenever you have a problem, it's one of the best scripts I've ever written!C:\Program Files\Dexpot\AutoIt3\Beta\AutoIt.chm Dexpot? github.com/jvanegmond Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted March 25, 2009 Share Posted March 25, 2009 C:\Program Files\Dexpot\AutoIt3\Beta\AutoIt.chmDexpot? Lol, I didn't even see that first time I read it .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
TerarinK Posted March 25, 2009 Share Posted March 25, 2009 Hehehe, MDiesel that is a good script 0x576520616C6C206469652C206C697665206C69666520617320696620796F75207765726520696E20746865206C617374207365636F6E642E Link to comment Share on other sites More sharing options...
Mat Posted March 25, 2009 Share Posted March 25, 2009 (edited) Hehehe, MDiesel that is a good script sorry, I wrote it in a hurry, didn't realise I'd written it for my computer... woops... Its the idea that counts any way... revised script, is being made into a UDF called _SolveAllProblems now: Shellexecute ("C:\Program Files\AutoIt3\Beta\AutoIt.chm") MsgBox (48, "Fact of the day, month and year", "helpfile is clever") try that should probably use a macro.... Finished! New UDF: Some very difficult scripting in there, but it worked out OK! Hasn't been fully tested, so PM me with any problems! (Not really..) Edited March 25, 2009 by mdiesel AutoIt Project Listing Link to comment Share on other sites More sharing options...
TerarinK Posted March 25, 2009 Share Posted March 25, 2009 You do have a problem with that one should be: $sAutoIt = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt", "InstallDir") ShellExecute ($sAutoIt & "\AutoIt3.chm") MsgBox (48, "Fact of the day, month and year", "Helpfile is clever") See the reason yours is wrong is that you are inputting a fix path 0x576520616C6C206469652C206C697665206C69666520617320696620796F75207765726520696E20746865206C617374207365636F6E642E Link to comment Share on other sites More sharing options...
Mat Posted March 25, 2009 Share Posted March 25, 2009 (edited) should probably use a macro.... guilty as charged TerarinK. updated if anyone wants it, It might come in useful... wow... a download!!!!!!!!!!!!!!!!!!!!!! Edited March 25, 2009 by mdiesel AutoIt Project Listing Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted March 25, 2009 Share Posted March 25, 2009 Your last one is still using \Program Files\ which many people doesn't have, you should look at TerarinK's code .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
TerarinK Posted March 25, 2009 Share Posted March 25, 2009 expandcollapse popup#include-once #Region Header ; #INDEX# ======================================================================================================================= ; Title .........: Miracle Solver ; AutoIt Version: 3.2.3++ ; Language: English ; Description: The solver of most problems. ; ; #CURRENT# ===================================================================================================================== ; _SolveAllProblems ; _SolveProblemThatCantBeSolvedUsingMiracleSolverThing ; =============================================================================================================================== #EndRegion Header #Region Core ; #FUNCTION# ==================================================================================================================== ; Name...........: _SolveAllProblems ; Description ...: Miracle solver Thing!! ; Syntax.........: _SolveAllProblems() ; Parameters ....: $AutoitDir - The directory for autoit ; Return values .: None ; Author ........: MDiesel ; Modified.......: ; Remarks .......: ; Related .......: _SolveProblemThatCantBeSolvedUsingMiracleSolverThing ; Link ..........; http://www.autoitscript.com/forum/index.php?showtopic=91878&st=0&gopid=661036&#entry661036 ; Example .......; No ; =============================================================================================================================== Func _SolveAllProblems() $sAutoIt = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt", "InstallDir") ShellExecute($sAutoIt & "\AutoIt.chm") MsgBox(48, "Fact of the day, month and year (possibly century)", "Helpfile is clever") EndFunc ;==>_SolveAllProblems ; #FUNCTION# ==================================================================================================================== ; Name...........: _SolveProblemThatCantBeSolvedUsingMiracleSolverThing ; Description ...: Miracle solver Thing extended ; Syntax.........: _SolveProblemThatCantBeSolvedUsingMiracleSolverThing() ; Parameters ....: None ; Return values .: None ; Author ........: MDiesel ; Modified.......: ; Remarks .......: ; Related .......: _SolveAllProblems ; Link ..........; http://www.autoitscript.com/forum/index.php?showtopic=91878&st=0&gopid=661036&#entry661036 ; Example .......; No ; =============================================================================================================================== Func _SolveProblemThatCantBeSolvedUsingMiracleSolverThing() $iMsg = MsgBox(52, "Just Checking", "Are you sure you've searched the helpfile?") If $iMsg = 6 Then ShellExecute("http://www.autoitscript.com/forum/index.php?showforum=2") Else _SolveAllProblems() EndIf EndFunc ;==>_SolveProblemThatCantBeSolvedUsingMiracleSolverThing #EndRegion Core 0x576520616C6C206469652C206C697665206C69666520617320696620796F75207765726520696E20746865206C617374207365636F6E642E Link to comment Share on other sites More sharing options...
muzle6074 Posted March 26, 2009 Share Posted March 26, 2009 expandcollapse popup#include-once #Region Header ; #INDEX# ======================================================================================================================= ; Title .........: Miracle Solver ; AutoIt Version: 3.2.3++ ; Language: English ; Description: The solver of most problems. ; ; #CURRENT# ===================================================================================================================== ; _SolveAllProblems ; _SolveProblemThatCantBeSolvedUsingMiracleSolverThing ; =============================================================================================================================== #EndRegion Header #Region Core ; #FUNCTION# ==================================================================================================================== ; Name...........: _SolveAllProblems ; Description ...: Miracle solver Thing!! ; Syntax.........: _SolveAllProblems() ; Parameters ....: $AutoitDir - The directory for autoit ; Return values .: None ; Author ........: MDiesel ; Modified.......: ; Remarks .......: ; Related .......: _SolveProblemThatCantBeSolvedUsingMiracleSolverThing ; Link ..........; http://www.autoitscript.com/forum/index.php?showtopic=91878&st=0&gopid=661036&#entry661036 ; Example .......; No ; =============================================================================================================================== Func _SolveAllProblems() $sAutoIt = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt", "InstallDir") ShellExecute($sAutoIt & "\AutoIt.chm") MsgBox(48, "Fact of the day, month and year (possibly century)", "Helpfile is clever") EndFunc ;==>_SolveAllProblems ; #FUNCTION# ==================================================================================================================== ; Name...........: _SolveProblemThatCantBeSolvedUsingMiracleSolverThing ; Description ...: Miracle solver Thing extended ; Syntax.........: _SolveProblemThatCantBeSolvedUsingMiracleSolverThing() ; Parameters ....: None ; Return values .: None ; Author ........: MDiesel ; Modified.......: ; Remarks .......: ; Related .......: _SolveAllProblems ; Link ..........; http://www.autoitscript.com/forum/index.php?showtopic=91878&st=0&gopid=661036&#entry661036 ; Example .......; No ; =============================================================================================================================== Func _SolveProblemThatCantBeSolvedUsingMiracleSolverThing() $iMsg = MsgBox(52, "Just Checking", "Are you sure you've searched the helpfile?") If $iMsg = 6 Then ShellExecute("http://www.autoitscript.com/forum/index.php?showforum=2") Else _SolveAllProblems() EndIf EndFunc ;==>_SolveProblemThatCantBeSolvedUsingMiracleSolverThing #EndRegion Core LOL! Nice script. 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