![Smile :)](./images/smilies/icon_e_smile.gif)
Click:: bla bla
It "eats" the left click itself. If I add
Click::
Click
bla bla
Then it does left click, but I can't drag a bog anymore for example. I don't want AHK to interact with the click, only react to it.
I also tried to get around this with OnMessage instead of using hotkeys. On the help page there's an example of a left click triggering a tooltip whenver you click anywhere in a GUI, but I don't know how to get it to work without the GUI.
Gui, Add, Text,, Click anywhere in this window.
Gui, Add, Edit, w200 vMyEdit
Gui, Show
OnMessage(0x201, "WM_LBUTTONDOWN")
return
WM_LBUTTONDOWN(wParam, lParam)
{
X := lParam & 0xFFFF
Y := lParam >> 16
if A_GuiControl
Control := "`n(in control " . A_GuiControl . ")"
ToolTip You left-clicked in Gui window #%A_Gui% at client coordinates %X%x%Y%.%Control%
}
GuiClose:
ExitApp
If I make any sort of alteration to the code simply nothing happens. The way I understand this example, the 0x201 message is the windows system message for the mouse being left clicked, and it's triggering the WM_LBUTTONDOWN function. So in this function I could put my own code. But as soon as I remove the GUI part from the code it stops triggering. I simply want it to work all the time instead of only in the GUI
![Smile :)](./images/smilies/icon_e_smile.gif)
Thanks!