version-lasting key mapping problem
Moderators: white, Hacker, petermad, Stefan2
i don't C it working. 6.54aicfu wrote:This script sends TC message cm_SelectAll when + is pressed and left or right panel is active.
Code: Select all
#IfWinActive, ahk_class TTOTAL_CMD ~+:: ControlGetFocus, ActivePanel If (ActivePanel="TMyListBox1" or ActivePanel="TMyListBox2") PostMessage, 1075, 523 Return
The script is made for pressing +, not Numpad+.
If you need Numpad+ use this script:
If you need Numpad+ use this script:
Code: Select all
#IfWinActive, ahk_class TTOTAL_CMD
~NumpadAdd::
ControlGetFocus, ActivePanel
If (ActivePanel="TMyListBox1" or ActivePanel="TMyListBox2")
PostMessage, 1075, 523
Return
This account is for sale
Last lesson in AHK scripting, Numpad+ selects all, Numpad- unselects all, internal keymapping is ignored:yeah. this works though it cannot stop TC's built-in keymapping, i.e., selection expansion dialog box.
Anyway it's still a bug 2 me not being able 2 set + to selectall, while - may be set to unselectall.
Code: Select all
#IfWinActive, ahk_class TTOTAL_CMD
$NumpadAdd::
ControlGetFocus, ActivePanel
If (ActivePanel="TMyListBox1" or ActivePanel="TMyListBox2")
PostMessage, 1075, 523
Else
Send, {NumpadAdd}
Return
$NumpadSub::
ControlGetFocus, ActivePanel
If (ActivePanel="TMyListBox1" or ActivePanel="TMyListBox2")
PostMessage, 1075, 524
Else
Send, {NumpadSub}
Return
This account is for sale