How to: put "Shift+F4"-command in button bar?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
KevinMo
Member
Member
Posts: 104
Joined: 2005-03-27, 01:37 UTC

How to: put "Shift+F4"-command in button bar?

Post by *KevinMo »

How to make a button for commands like shift+del or shift+f4, etc.?
I've searched the wiki and forum but cannot find anything useful -_-; The nearest topic is here, which I don't quite understand

PS: Does TC internal commands support parameters?

Thanks in advance
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

How to make a button for commands like shift+del or shift+f4, etc.?
You cannot unfortunately, because TC senses the shift when the command is executed. You could use a simple AutoHotkey script and bind it to a button:

Code: Select all

Send +F4
I switched to Linux, bye and thanks for all the fish!
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

Does TC internal commands support parameters?
No.
I switched to Linux, bye and thanks for all the fish!
KevinMo
Member
Member
Posts: 104
Joined: 2005-03-27, 01:37 UTC

Post by *KevinMo »

Thanks for your definitive reply :)
cdg
Junior Member
Junior Member
Posts: 2
Joined: 2016-05-24, 17:28 UTC

Autokey script for Shift+F4

Post by *cdg »

Hi SanskritFritz,

Can you please help me in creating the said script? I created: ::Edit/::shif+f4 in autokey and then inserted this in send Edit/ in the command line of "Change single button" panel. Obviously this is not correct as it does not work.

Many thanks.
hi5
Power Member
Power Member
Posts: 642
Joined: 2012-11-03, 11:35 UTC
Contact:

Post by *hi5 »

Save this as your script.ahk file:

Code: Select all

Send +{F4}
Now right click on the TC button bar and 'change' to add a button, in the command field put "full-path-to-your\script.ahk" - assign an icon and you're done.

If you click the button the autohotkey script will run and send the shift+f4 combination.

Hope it helps.
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

<irony>
Thanks, cdg and hi5, for undigging a super dead thread which had not had any new post since January 2006, for 10.5 years! :roll:
</irony>
User avatar
Hacker
Moderator
Moderator
Posts: 13144
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

karlchen,
I see no problem in users finding and posting to the appropriate threads.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
cdg
Junior Member
Junior Member
Posts: 2
Joined: 2016-05-24, 17:28 UTC

Post by *cdg »

hi5 wrote:Save this as your script.ahk file:

Code: Select all

Send +{F4}
Now right click on the TC button bar and 'change' to add a button, in the command field put "full-path-to-your\script.ahk" - assign an icon and you're done.

If you click the button the autohotkey script will run and send the shift+f4 combination.

Hope it helps.
Yes indeed it works like charm! Many thanks
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

Yes, better re-use old but fitting threads than creating new one, to keep things together.

There is no such thing as 'dust' or 'dead' for forums :D

If an user dig out an interesting ten year old thread, there should be no harm :wink:



 
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hi, Hacker, Stefan2.
Yes, yes, yes, I see the difference between the T.C. forum and some other IT related forum which I visit regularly.
Total Commander is a product that is vastly downwards compatible even after more than 20 years. So even 10 year old advice may still apply.
The same is rarely true e.g. in Linux environments. Therefore reviving threads that have been dead for a long time is frowned upon in such environments.
But I see the difference.
Cheers,
Karl
Post Reply