How to remap 'New text file' command ?

English support forum

Moderators: white, Hacker, petermad, Stefan2

Vigk2
Junior Member
Junior Member
Posts: 4
Joined: 2007-10-17, 08:21 UTC

How to remap 'New text file' command ?

Post by *Vigk2 »

Hi, I'm trying to remap some function keys (e.g. F9=cm_RenMov), but I can't find the command name for 'New text file' function which has the default hotkey S+F4. Is there a code that I can add into TOTALCMD.INC file ?

Btw, I'm also looking for the code of swap cursor (Tab) command.

please excuse my bad English :) , thanks alot.
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

There are no such commands.

If you want to change these shortcuts, you have to use AutoHotkey:
http://www.ghisler.ch/wiki/index.php/AutoHotkey

In this example code Alt+Z sends Tab and F12 sends Shift+F4:

Code: Select all

#IfWinActive, ahk_class TTOTAL_CMD
!z::SendInput, {Tab}
F12::SendInput, +{F4}
Return
Icfu
This account is for sale
KucingLapar
Member
Member
Posts: 134
Joined: 2007-06-25, 11:54 UTC

Post by *KucingLapar »

You can create a text file or other format by pressing alt+f4 and enter a filename with extension.
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Vigk2 knows about Shift+F4, he wants to REMAP it.
Alt+F4 will close TC, not create a file.

Icfu
This account is for sale
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Re: How to remap 'New text file' command ?

Post by *m^2 »

Vigk2 wrote:I can't find the command name for 'New text file' function which has the default hotkey S+F4.
As Icfu wrote there's no such command. But some time ago I wrote a tool that allows you to remap it. It's better than the ahk approach above because allows you to assign a different command for S+F.
putfile.exe. As name suggests, it puts an empty file. How to use it?
Create a command like this in usercmd.ini and assign it a hotkey.

Code: Select all

[em_putfile]
Cmd=%COMANDER_PATH%\Tools\putfile
Param=?
Last edited by m^2 on 2007-10-17, 12:51 UTC, edited 1 time in total.
Vigk2
Junior Member
Junior Member
Posts: 4
Joined: 2007-10-17, 08:21 UTC

Post by *Vigk2 »

Thanks icfu, I hope those commands will present in a future version.
In the meantime, my big ahk script will get bigger :) .

edit:
m^2, nice tool, but it'd be great if putfile open the file with notepad.
User avatar
Stefan2
Power Member
Power Member
Posts: 4159
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

Thanks m^2, nice tool.

No problems with blanks: putfile.exe My new text file.txt
No problem with existent files, putfile just skip

Let's see if i replace my
[em_NewFile]
cmd=%comspec% /c copy nul
Param=?%%Date:~-2,2%%%%Date:~-7,2%%.txt
for my Ctrl+Shift+F4 to create new files without the automatically opening notepad

with your cool tool 8)
[em_NewFilePUTFILE]
cmd=%commander_path%\putfile.exe
Param=?%O

(yes i know about touch.exe and NewFile.exe and NewFileWizard.exe :lol: )


- - -

To assign an keyboard shortcut key (hotkey) to an command,
utilize "Configuration > Options > Misc. >>> Redefine hotkeys (Keyboard remapping)".

* Open "Configuration > Options > Misc."
* by "()Hotkey" choose a free key combo as keyboard shortcut
--or--
* by "()Alias" enter a few digits-or-letters for to use in TCs command line box
* For Command: click on the magnifying glass
* Choose the wanted command by double clicking on it. >>>> here em_NewFilePUTFILE
(To filter type em_ or cm_ and maybe more letters or just an keyword like 'copy')
* Apply with the green check mark button!!!
* Close the options dialog with [OK]
* Click on OK


-------------------------------------------------------------

Vigk2 wrote: m^2, nice tool, but it'd be great if putfile open the file with notepad.
One could also use notepad itself:       (or see m^2 answer and solution below)


Button bar:

* Copy the following code to the clip board.
* Right mouse click on the TC button bar. (Press 'F1' in TC and see at 3. Operation > a. User interface)
* Choose 'Paste' (Paste is only available if there is such code in the clip board)
TOTALCMD#BAR#DATA
notepad.exe
?%P%O
notepad.exe
Notepad with file <selected name>
%P

-1
- - - -

Or userCMD.ini:
[em_NewFile]
Cmd=notepad
Param=?&P%O
Then assign the hot key you want.
Last edited by Stefan2 on 2007-10-21, 13:07 UTC, edited 1 time in total.
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

Vigk2 wrote:m^2, nice tool, but it'd be great if putfile open the file with notepad.
Stefan2 showed how to do it... it's good as long as you are using notepad, not all editors support it.
putfile has a feature that I forgot about, which lets you use any editor.
In putfile directory create a file "editor" [w/out extension] and write a path to your editor in it. Example:

Code: Select all

c:\EditPad\EditPad.exe
bibi_50
Junior Member
Junior Member
Posts: 12
Joined: 2003-04-25, 13:58 UTC

Re: How to remap 'New text file' command ?

Post by *bibi_50 »

m^2 wrote:But some time ago I wrote a tool that allows you to remap it. It's better than the ahk approach above because allows you to assign a different command for S+F.
putfile.exe. As name suggests, it puts an empty file. How to use it?
Create a command like this in usercmd.ini and assign it a hotkey.

Code: Select all

[em_putfile]
Cmd=%COMANDER_PATH%\Tools\putfile
Param=?
Hello m^2

This utility doesn't exist anymore on this link.

Where can I find it?

Thanks.
+-+ TC Licence # 434 +-+
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

The link is correct and the file still exists.

Icfu
This account is for sale
bibi_50
Junior Member
Junior Member
Posts: 12
Joined: 2003-04-25, 13:58 UTC

Post by *bibi_50 »

sorry to say NO:

this link http://www.ii.uj.edu.pl/~adamczym/putfile.exe is NOT valid

Internet Explorer cannot display the webpage

Most likely causes:
You are not connected to the Internet.
The website is encountering problems.
There might be a typing error in the address.

What you can try:
Diagnose Connection Problems

More information

This problem can be caused by a variety of issues, including:

Internet connectivity has been lost.
The website is temporarily unavailable.
The Domain Name Server (DNS) is not reachable.
The Domain Name Server (DNS) does not have a listing for the website's domain.
If this is an HTTPS (secure) address, click Tools, click Internet Options, click Advanced, and check to be sure the SSL and TLS protocols are enabled under the security section.
+-+ TC Licence # 434 +-+
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

It seems that my server has some problems, yesterday it was OK. Temporary place:
http://rapidshare.com/files/130850764/putfile.exe.html
BlueSorrow
Junior Member
Junior Member
Posts: 7
Joined: 2020-06-21, 00:45 UTC

Re: How to remap 'New text file' command ?

Post by *BlueSorrow »

someone could pass me the putfile, the links they mention don't work

Thanks in advance, and excuse my bad english
User avatar
Stefan2
Power Member
Power Member
Posts: 4159
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: How to remap 'New text file' command ?

Post by *Stefan2 »

m^2 wrote: 2007-10-17, 12:41 UTC by m^2 » Wed Oct 17, 2007 14:41

... some time ago I wrote a tool that allows you to remap it.
It's better than the ahk approach above because allows you to assign a different command for S+F.
putfile.exe. As name suggests, it puts an empty file. How to use it?
Create a command like this in usercmd.ini and assign it a hotkey.

Code: Select all

[em_putfile]
Cmd=%COMANDER_PATH%\Tools\putfile
Param=?


2m^2, OK?

Base64 encoded "adamczym-PutFile_(2007-10-17).zip"

Code: Select all

MIME-Version: 1.0
Content-Type: application/octet-stream; name="adamczym-PutFile_(2007-10-17).zip"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="adamczym-PutFile_(2007-10-17).zip"

UEsDBBQAAwBjADhKUjcAAAAAHgAAAAAAAAAGAAsAZWRpdG9yAZkHAAIAQUUDCABJvO7lOly2frer
SyHByTLvNQxfLLCwW3nMhhBFXkFQSwMEFAADAGMA14ZRNwAAAACHCgAAvAoAAAsACwBwdXRmaWxl
LmV4ZQGZBwACAEFFAwgA5QwqZzMzcamYhhBeFmemSnH0Al7k8RQZYMxYsfhhPjXhZDBpGo9rmrk2
+Yk78RMoEkCaMmo6vN89uiA6emHvqRHXndyYoCcDuJAnjsPO4jVJQ#QcLadBTS87wIMmPLXq48/Gd
3GFGud1ZLzvxgep26TFBf+w79U8ZEwWesfSPPVh/dJSSCRbxxGtzfvD8E4q2uQKXrPaFovC/SihT
eJmf9CaIddhtly0R+onM0zdev1PVGJpoTg9Wf5JXpoXbRbQIeNZUdyvXZGmqMmN3RwN52kO1i/Zo
xQLBKp/3jVZH7eHJy3fKeJwu5qnqIHJVxGcrA5YnY9CHwvok3IzPgRNY1CbnfHQgIcEr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QBmQcAAgBBRQMIAFBLBQYAAAAABQAFAIcBAACN
DwAAAAA=
- paste the text from the spoiler to a new plain text file.txt
- search and remove all #-signs from the file (5 pcs)(*)
- save the file
- in TC select that file
- utilize menu "Files>Decode File" to get an ZIP
- unpack the ZIP (PW: Poland)




* EDIT the above because of:
MVV wrote: 2020-07-23, 12:20 UTC Much easier instruction is to just remove all #s from file BTW.
Good idea, thx.
Since a # is not an valid sign in an b64 code, we can assume every existing # can just be removed.







 
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: How to remap 'New text file' command ?

Post by *Usher »

Stefan2 wrote: 2020-07-23, 10:20 UTC spoiler title= Base64 encoded "adamczym-PutFile_(2007-10-17).zip"
MIME-Version: 1.0
Content-Type: application/octet-stream; name="adamczym-PutFile_(2007-10-17).zip"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="adamczym-PutFile_(2007-10-17).zip"
There are no code tags around the code there. You can't use "Select all" feature for that code.
Stefan2 wrote: 2020-07-23, 10:20 UTC - Open the b64 file in Text editor
- Replace case-sensitive all following by itself, but without that #-sing
q#Q
Q#q
q#q
Q#Q
>or RegEx search for (\w)#(\w) and replace with $1$2 (or \1\2)<
- Save
- In TC select that file
- Utilize menu "Files>Decode File"
- unpack the ZIP (PW: Poland)
Could you explain your cryptic operations for a dumb Pole, please? Are they really needed? What is wrong with that Q? Does PW mean Password?
Could you provide hash/checksum for the attached file?
Andrzej P. Wozniak
Polish subforum moderator
Post Reply