E1M1 Posted February 19, 2011 Share Posted February 19, 2011 This code detects click, but how do Modify it to display control handle that received click? $WM_MOUSEFIRST = 0x0200 $WM_SETCURSOR = 0x0020 $hGui = GUICreate("click on input", 75, 20) $input = GUICtrlCreateInput("click me", 0, 0, 75, 20) GUIRegisterMsg($WM_SETCURSOR, "WM_MOUSEFIRST") GUISetState() While True if GUIGetMsg() = -3 Then Exit WEnd Func WM_MOUSEFIRST($hWnd, $iMsg, $iWparam, $iLparam) #forceref $hWnd, $iMsg, $iWparam If BitAND($iLparam, 0x00010000) Then MsgBox(0, 0, "clicked") Return EndFunc edited Link to comment Share on other sites More sharing options...
bogQ Posted February 19, 2011 Share Posted February 19, 2011 if im not wrong Func WM_MOUSEFIRST($hWnd, $iMsg, $iWparam, $iLparam) #forceref $hWnd, $iMsg, $iWparam If BitAND($iLparam, 0x00010000) Then $test = GUIGetCursorInfo() MsgBox(0, GUICtrlGetHandle($test[4]), "clicked") EndIf Return EndFunc TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
E1M1 Posted February 19, 2011 Author Share Posted February 19, 2011 Thank you bogQ edited 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