Code: Select all
#ifWinActive ahk_class TTOTAL_CMD
{
MouseGetPos, ,,,aControl
if( RegExMatch(aControl, "^TButtonBar") )
{
/* HotKeyDefinitions here */
#r::msgbox,abc
}
}
return
The only way to nest hotkeys is the compiler directive "#ifWinActive" - I used this already but it gave problems.
You are not right on this one too. Your script doesn't use the MiddleMouseButtonUp event. So it cant prove my statement wrong.Balderstrom wrote:And this is incorrect too, here's my AHK script for MButton:Samuel wrote:This is strange.
But AutoHotkey apparently can't replace a MiddleMouseButtonUp event, if it doesn't know of the according MiddleMouseButtonDown event. Instead both events (the one from the user and the one created by MouseTool) are seen by Total Commander.
...
But your script shows a nice solution (KeyWait) for my problem. Using something like:
Code: Select all
#IfWinActive ahk_class TTOTAL_CMD
$Mbutton::
Click, Down Middle
KeyWait, Mbutton
Click, Up Middle
return
#IfWinActive
PS: Hopefully this does not have other side effects.