Sign in to follow this  
Followers 0
Hacker4All

Pixel And Click

12 posts in this topic

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.

Share this post


Link to post
Share on other sites



run this script:

And run it whenever you have a problem, it's one of the best scripts I've ever written!

Share this post


Link to post
Share on other sites

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? :D

Share this post


Link to post
Share on other sites

Hehehe, MDiesel that is a good script


0x576520616C6C206469652C206C697665206C69666520617320696620796F75207765726520696E20746865206C617374207365636F6E642E

Share this post


Link to post
Share on other sites

#7 ·  Posted (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 by mdiesel

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

should probably use a macro....

guilty as charged TerarinK.

updated if anyone wants it, It might come in useful...

wow... a download!!!!!!!!!!!!!!!!!!!!!!

Edited by mdiesel

Share this post


Link to post
Share on other sites

#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

Share this post


Link to post
Share on other sites

#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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0