Terrified Posted November 26, 2007 Share 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? Link to comment Share on other sites More sharing options...
Zedna Posted November 26, 2007 Share Posted November 26, 2007 Look at these AutoIt functions in HelpFile: HotKeySet While ... WEnd PixelGetColor Sleep Send Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Terrified Posted November 26, 2007 Author Share 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 Link to comment Share on other sites More sharing options...
ofLight Posted November 26, 2007 Share 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 Link to comment Share on other sites More sharing options...
Terrified Posted November 26, 2007 Author Share Posted November 26, 2007 thank you (: 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