Sign in to follow this  
Followers 0
Terrified

pixel search :)

5 posts in this topic

i want to make func with hotkey key that will search for 222*980 and if its 0x0b0b0b then its will send "q" and return :P

how can i do it?

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

i made this and its doesnt work

#include <GUIConstants.au3>
HotKeySet( "{NUMPAD1}" , "pixel")
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 633, 447, 193, 125)

GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

Func pixel()
    $pixel = PixelGetColor ( 222 , 9280 )
    if GUICtrlRead($pixel) = 0x0b0b0b Then MouseClick("right") 
    sleep ("600")
    Return
Endfunc
    

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
    EndSwitch
    
WEnd
Edited by Terrified

Share this post


Link to post
Share on other sites

HotKeySet("{TAB}", "_Go")

While 1
    Sleep(30)
Wend

Func _Go()
    $var = PixelGetColor(222,980)
    If $var = 0x0b0b0b Then Send("q")
EndFunc

All the functions zedna pointed out :P


There is always a butthead in the crowd, no matter how hard one tries to keep them out.......Volly

Share this post


Link to post
Share on other sites

thank you (:

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