Support [Windows key] for Shortcut function...
Moderators: Hacker, petermad, Stefan2, white
Was that a rhetorical question? 
This script sends \ when # is pressed, only when focus is in command line:
Icfu

This script sends \ when # is pressed, only when focus is in command line:
Code: Select all
#IfWinActive, ahk_class TTOTAL_CMD
#::
ControlGetFocus, v_Focus
If (v_Focus = "Edit1")
SendInput, \
Else
SendInput, {Raw}#
Return
This account is for sale
What if cm_EditPath is invoked - isn't that also an edit box?
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
TInEdit.UnicodeClass1What if cm_EditPath is invoked - isn't that also an edit box?
Editbox will have different instance number and it will be child of different control, in this case TFKon1.And what if there will be loaded some sophisticated plugin like TotalConsole? Such plugin can create its own editbox that not belong to TC?
You can also check the dimensions and/or location of editbox, etc...
Icfu
This account is for sale
You check with AHK window spy, or AutoIt Window Info tool or use this script:
http://www.autohotkey.com/forum/topic8976.html
Just in case...
Icfu
http://www.autohotkey.com/forum/topic8976.html
Just in case...

Icfu
This account is for sale
- SanskritFritz
- Power Member
- Posts: 3693
- Joined: 2003-07-24, 09:25 UTC
- Location: Budapest, Hungary
I actually had that problem in my Popup the splitter menu script
The only solution I found was to check the dimensions of TPanel, because funny enough, the splitter and the ftp panel have the same classes, and they vary the instance number!

I switched to Linux, bye and thanks for all the fish!
I have tried to reproduce that:the splitter and the ftp panel have the same classes, and they vary the instance number!
"Success" with TC 6.57, splitter instance number changes from 1 to 2 when FTP panel appears.
But, in TC 7 this is not reproducable anymore, the instance number does not change, so the problem seems to be fixed.
Icfu
This account is for sale
- SanskritFritz
- Power Member
- Posts: 3693
- Joined: 2003-07-24, 09:25 UTC
- Location: Budapest, Hungary