Terrified Posted November 26, 2007 Posted November 26, 2007 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 how can i do it?
Zedna Posted November 26, 2007 Posted November 26, 2007 Look at these AutoIt functions in HelpFile: HotKeySet While ... WEnd PixelGetColor Sleep Send Resources UDF ResourcesEx UDF AutoIt Forum Search
Terrified Posted November 26, 2007 Author Posted November 26, 2007 (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 November 26, 2007 by Terrified
ofLight Posted November 26, 2007 Posted November 26, 2007 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 There is always a butthead in the crowd, no matter how hard one tries to keep them out.......Volly
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