Example for TCScript Editor

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Funny. After removing the '~' the script works with [Alt]+[Ctrl[+[M] like a charm.
The ~ means that the original function of a hotkey is still left thru, this is to make sure that the hotkey can still be used in other applications, but this is a problem here.
Can you tell me please what the 1075means?
I have explained that above. It's a window message that has to be sent to Total Commander so it listens for commands, see here:
http://www.ghisler.ch/board/viewtopic.php?t=271#1969

1075 is that WM_USER+051.

Icfu
This account is for sale
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

icfu wrote:The ~ means that the original function of a hotkey is still left thru, this is to make sure that the hotkey can still be used in other applications, but this is a problem here.
I will memorize that.
I have explained that above. It's a windows message that has to be sent to Total Commander so it listens for commands, see here:
http://www.ghisler.ch/board/viewtopic.php?t=271#1969

1075 is that WM_USER+051.
Sorry, I have overseen it (it's been late )

Thanks

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Of course you can also add an else command and send the original hotkey action when TC is not active so you can still paint the µ in Notepad for example. ;)

Code: Select all

^!m::
IfWinActive ahk_class TTOTAL_CMD
{
PostMessage, 1075, 499, , , ahk_class TTOTAL_CMD
Send, {TAB}
SendRaw, Stefan englisch
}
Else
{
Hotkey, ^!m, Off
Send, ^!m
Hotkey, ^!m, On
}
return
Icfu
This account is for sale
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Very interesting. Autohotkey seems to be very versatile.

BTW: Did I mention that I use [F11/F12] for my script? ;) :lol: :P

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

BTW: Did I mention that I use [F11/F12] for my script?
You did, but as F11 and F12 have no special meaning like painting a µ in all applications there is not really a need to use that workaround.... ;)
Very interesting. Autohotkey seems to be very versatile.
It is, just have a look here:
http://www.ghisler.ch/wiki/index.php/AutoHotkey

Icfu
This account is for sale
Post Reply