08-12-2007, 08:24 PM
A beginners question:
Assume I have a text file selected in Windows Explorer (or in any other file manager or file open dialog). Now I'd like to assign a parameter to a program (i.c. Notepad2) that points to that file in order to open it. Currently I have a hotkey assigned to a simple run command:
macro Notepad2:
The new macro should open the selected file:
where parm is the selected file.
If nothing is selected it should just run the program (as it currently does).
I don't want to use the standard Windows shell (e.g. linking notepad2.exe to .txt via the registry) or use anything that needs a mouse pointer action. Just one stroke with the hot key should open the selected file.
Now, this is just an example but it should be easy to extend to other file types/programs.
Does anyone knows how I can accomplish this?
Thanks!
Assume I have a text file selected in Windows Explorer (or in any other file manager or file open dialog). Now I'd like to assign a parameter to a program (i.c. Notepad2) that points to that file in order to open it. Currently I have a hotkey assigned to a simple run command:
macro Notepad2:
The new macro should open the selected file:
where parm is the selected file.
If nothing is selected it should just run the program (as it currently does).
I don't want to use the standard Windows shell (e.g. linking notepad2.exe to .txt via the registry) or use anything that needs a mouse pointer action. Just one stroke with the hot key should open the selected file.
Now, this is just an example but it should be easy to extend to other file types/programs.
Does anyone knows how I can accomplish this?
Thanks!