Hot key file creation in Windows 7 Explorer

Hi all.
Actually, the question in the title. Is it possible to create a shortcut to create a file (with a txt extension, but not necessarily) in the current Windows Explorer window 7? By default, as I understand it, there is no such combination, or I badly searched in Google. Know the key combination Alt+f And Etc But she's not as "fast" only works on the Russian layout and is no longer valid, if some program has replaced the menu "Create" paragraph "Text file" to something different (for example, did Notepad++). Run by the arrows in the context menu of a folder is not very a quick job. In General, I want to like Ctrl+Shift+N, but for the file.
October 3rd 19 at 03:10
2 answers
October 3rd 19 at 03:12
Solution
Met while searching for this program, but the deal was not time. This script somehow does not work, although a hot key intercepts (checked by adding the display MessageBox'and in the beginning). But thanks anyway, maybe tomorrow morning will understand it. - Amos89 commented on October 3rd 19 at 03:15
A solution is found. Had to line # 17, replace "Address" with "Address:" as I have Windows in Russian. In addition, you need to change the hotkey at line # 5 (if the default layout is Russian, the program will issue a warning that this hotkey is unattainable in this layout), it is better to put something independent from the layout. For example, ^!F5:: (Ctrl+Alt+F5). Also it is possible to remove a file by deleting line №38. - Amos89 commented on October 3rd 19 at 03:18
: To make the script work regardless of the OS language should be in line # 17 is "Address" (instead of "Address") write ".+?". Thus the whole line will look like this: FullPath := RegExReplace(FullPath, "(^.+?: )", "").
Peeped here: https://github.com/syon/ahk/blob/master/NewFile/Ne... - pearl_Web commented on October 3rd 19 at 03:21
October 3rd 19 at 03:14
Add to the heap a couple of problems and nnCron:

#( Задача_131602112013
WatchHotKey: "@F" \ Alt+F
\ NoActive
SingleInstance
: GET-WTEXT \ ( hwnd -- a u ) \ Get the text window in his handle. Works for child Windows
 PAD 256 ROT 13 SendMessageA PAD SWAP SWAP 
;
Action:
 ACTIVE-WINDOW WIN-EXIST? DROP
 FOR-CHILD-WINDOWS: "ToolbarWindow32"
 WIN-CHILD-HWND GET-WTEXT S" :\" SEARCH IF
 1+ SWAP 1 - SWAP \ Return the missing drive letter
 GET-CUR-TIME \ Updated time
 WIN-INPUT-TEXT: "Create a file" "Enter file name:" "New_file_%hh%_%mm%_%ss%" 0
 IF 2DROP ELSE
 S" \" 2SWAP S+ S+ FCREATE
THEN
 ELSE 2DROP THEN
;FOR-CHILD-WINDOWS
)#


And without query window, for example, to create a file with some template filename:

#( Задача_131502112013
WatchHotKey: "@F" \ Alt+F
\ NoActive
SingleInstance
: GET-WTEXT \ ( hwnd -- a u ) \ Get the text window in his handle. Works for child Windows
 PAD 256 ROT 13 SendMessageA PAD SWAP SWAP 
;
Action:
 ACTIVE-WINDOW WIN-EXIST? DROP
 FOR-CHILD-WINDOWS: "ToolbarWindow32"
 WIN-CHILD-HWND GET-WTEXT S" :\" SEARCH IF
 1+ SWAP 1 - SWAP \ Return the missing drive letter
 GET-CUR-TIME \ Updated time
 FILE-CREATE: "%1 esPICKS%\Newfile_%hh%_%mm%_%ss%"
 ELSE 2DROP THEN
;FOR-CHILD-WINDOWS
)#

Find more questions by tags Other