Sign in to follow this  
Followers 0
E1M1

How to modify this code to show control Handle received click?

3 posts in this topic

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

Share this post


Link to post
Share on other sites



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 connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
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.

 

Share this post


Link to post
Share on other sites

Thank you bogQ


edited

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