ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

create a new entry in the main contextual menu : a new txt file

<< < (7/9) > >>

Contro:
Ok.  Let me get it straight.  You right click an empty space on desktop or folder and the command is in the menu?  Or you right click on a file and the command is there?  It would seem more logical to do the former if making new files.
-MilesAhead (February 23, 2014, 08:49 AM)
--- End quote ---

Yes, the former Miles.
Create a new txt file just clicking right in an empty space of the desktop or any windows explorer folder .
 :-*

MilesAhead:
Ok.  After the text file is created do you want to open it in an editor or just double click to open?

Contro:
Ok.  After the text file is created do you want to open it in an editor or just double click to open?
-MilesAhead (February 23, 2014, 09:00 AM)
--- End quote ---

Just double click to open. the same behaviour like in the "new" secondary contextual menu.

MilesAhead:
This ahk should do it.


--- ---Sendmode,input
Click,Right
Send,w
Sleep,200
Send,t

Compile it to exe.. maybe NewTextFile.exe.
In RegEdit go to
HKEY_CLASSES_ROOT\Directory\shell
create a key
New Text File
under that create a key
command

for default value put path to NewTextFile.exe
example C:\Utils\NewTextFile.exe

Since there is no window it should not block the mouse.  It's just a macro to right click to open menu, then sends 'w' and then 't'  the system does the rest.  It's just opening the New submenu.

Contro:
This ahk should do it.


--- ---Sendmode,input
Click,Right
Send,w
Sleep,200
Send,t

Compile it to exe.. maybe NewTextFile.exe.
In RegEdit go to
HKEY_CLASSES_ROOT\Directory\shell
create a key
New Text File
under that create a key
command

for default value put path to NewTextFile.exe
example C:\Utils\NewTextFile.exe

Since there is no window it should not block the mouse.  It's just a macro to right click to open menu, then sends 'w' and then 't'  the system does the rest.  It's just opening the New submenu.
-MilesAhead (February 23, 2014, 11:36 AM)
--- End quote ---

I don't understand all the concept, but I will try and comment.
Best Regards
 :-*

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version