Hi,
is it possible to have an internal command cm_xxx for "Create new text file" (SHIFT+F4)?
Then I can create a button for it and also assign new key.
Thanks,
Daniel
Internal command for "Create new text file" (SHIFT
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50873
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
No, unfortunately not - F4 is cm_edit, and the same command handles Shift+F4 (it checks for the pressed Shift key)...
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Hello, Daniel.
Let me give you the translated workaround which HolgerK posted in the German forum just a few weeks ago:
Karl
Let me give you the translated workaround which HolgerK posted in the German forum just a few weeks ago:
HTH,HolgerK wrote:Save this as "TCShiftF4.vbs" and drag it onto the T.C. buttonbar.Code: Select all
Set WshShell = WScript.CreateObject( "WScript.Shell" ) WshShell.SendKeys("+{F4}")
Assuming that on most Windows machines, the Windows Scripting Host will be present, this is a pretty portable solution which uses only 83 bytes.
Karl
But even Shift + F4 is pretty cool.
Just enter a filename which doesn't exist and this file will be created and opened by your default editor.
That's what I was looking for. Thank you.
(I didn't know that Shift + F4 exist).
By the way: I didn't find a command like "Create new file" which I could use with another shortcut.
P.S.: Yes, it's an old topic, but maybe my answers helps to push this in some search engines
Just enter a filename which doesn't exist and this file will be created and opened by your default editor.
That's what I was looking for. Thank you.
(I didn't know that Shift + F4 exist).
By the way: I didn't find a command like "Create new file" which I could use with another shortcut.
P.S.: Yes, it's an old topic, but maybe my answers helps to push this in some search engines
