how to disable (erase) a default hotkey?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
neverthelesshello
Member
Member
Posts: 136
Joined: 2010-02-26, 11:52 UTC

how to disable (erase) a default hotkey?

Post by *neverthelesshello »

There are SO MANY hot keys set up as default with TC - 80% or them I never use and some of them interfere with some of my system or autohotkey scripts so I would like to turn a few off like
Ctrl Z
Ctrl F
Alt M

when I go to key remmapping within the gui it just says
"default command no remmapping" as though it is not possible to remap or disable - is this true?
If there is a way to remove or disable how?
What you dont see is what you get!
User avatar
MVV
Power Member
Power Member
Posts: 8713
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

You may define some em_nothing command that does nothing (or calls some little tool that does nothing, e.g. it executes TCFS2.exe "") and use it for remapping unwanted keys:)
neverthelesshello
Member
Member
Posts: 136
Joined: 2010-02-26, 11:52 UTC

Post by *neverthelesshello »

hmm define does nothing!
If I dont define a proper action I get a "function not implemented" message everytime that hotkey combo is pressed
hmm, well I tried just using cd as a command and that seems to work

I wonder if I could just define a command to send the hotkey that I want to use - in other words my script wants to send Ctrl F but TC interferes with that as Ctrl F is set as default for FTP so I could try setting my command so that Ctrl F sends Ctrl F
What you dont see is what you get!
User avatar
MVV
Power Member
Power Member
Posts: 8713
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Why do you need to send Ctrl+F to TC window if you don't want to execute command associated with shortcut? I don't see any reason to send Ctrl+F except this one.
neverthelesshello
Member
Member
Posts: 136
Joined: 2010-02-26, 11:52 UTC

Post by *neverthelesshello »

I just thought it would be another way of stopping it form launching FTP
at the moment Ctrl F launches FTP dialogue so it stops the action I want which is run script a which also uses the hotkey Ctrl F
so setting TC to send Ctrl F when I press CTrl F would be another way to stop it launching FTP
however what you suggested works - I have just made it so Ctrl F does nothing by using an empty cd command.
What you dont see is what you get!
User avatar
MVV
Power Member
Power Member
Posts: 8713
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

If you set Ctrl+F to send Ctrl+F to TC window, you will get recursion:) TC will receive Ctrl+F and execute action that will send another Ctrl+F :D
neverthelesshello
Member
Member
Posts: 136
Joined: 2010-02-26, 11:52 UTC

Post by *neverthelesshello »

:lol: wont even try then! I didnt know if Tc could even send keys anyway.
What you dont see is what you get!
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

I do the Find/Search on Ctrl+F ... since that's what every single Windows editor does.

TC's default Shortcuts do not interfere with AHK shortcuts though.

E.g.
^t::MsgBox, Ctrl+T
or
^t::Return

Will prevent TC from duplicating the existing tab (it's default action for Ctrl+T).
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.
User avatar
MVV
Power Member
Power Member
Posts: 8713
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Balderstrom, it seems that AHK just intercepts and eats shortcuts that it processes so TC doesn't receive them at all.
tcebob
Member
Member
Posts: 178
Joined: 2003-03-23, 22:11 UTC
Location: Sunrise FL, USA

Post by *tcebob »

I had no trouble changing the somewhat awkward Alt-F7 Find shortcut to Ctl-F. Go to Options-Configuration-Misc. Redefine Hotkeys, enter ctl and pick F and enter the command "cm_SearchFor."

Ctl-F is almost universally accepted as the search hotkey.

tcebob
Post Reply