Right Click On A File?
#1
Posted 26 February 2007 - 02:35 PM
Alternatively I wouldn't mind simply highlighting a file and then run a hotkey macro that would somehow gather the file name so I can do something with it.
Fallbrook, California
Bluepoint Design
Macro writer for hire! Need help with a macro fast? Just contact me.
#2
Posted 26 February 2007 - 07:53 PM
In the example below, we're going to add a context menu item called "Me Macro" to ALL files!
- Run regedit.exe
- Navigate to HKEY_CLASSES_ROOT\*
(HKEY_CLASSES_ROOT is the first main branch in your registry)
- If the key called "shell" doesn't exist, add it (exclude the double quotes) by right-clicking on *, choosing New / Key.
- Right-click on "shell", and choose New / Key
- Type "Me Macro", then press ENTER (without the quotes)
- Right-click on "Me Macro", and choose New / Key
- Type "command", then press ENTER (without the quotes)
- Left-click on "command", then, in the right-hand pane, double-click on "Default"
- Type in the following, including the quotes:
"C:\Program Files\Macro Express3\MeProc.exe" /AContextMacro /VT1%1
Close Regedit.
Here's my ContextMacro macro:
Variable Restore All Variables Text Box Display: (ContextMenu is now running! Parameter is %T1%)
#3
Posted 26 February 2007 - 09:28 PM
Any thoughts?
Fallbrook, California
Bluepoint Design
Macro writer for hire! Need help with a macro fast? Just contact me.
#4
Posted 26 February 2007 - 09:31 PM
Fallbrook, California
Bluepoint Design
Macro writer for hire! Need help with a macro fast? Just contact me.
#5
Posted 26 February 2007 - 09:35 PM
Fallbrook, California
Bluepoint Design
Macro writer for hire! Need help with a macro fast? Just contact me.
#6
Posted 26 February 2007 - 09:35 PM
Vista permissions are rather different to its predecessors, and I have not yet got any practical experience of how to avoid or resolve this type of problem. I think the real problem is that Vista, by default, does not grant you admin permissions - and I imagine that's what you need to change registry settings.
#7
Posted 26 February 2007 - 09:43 PM
"C:\\Program Files\\Macro Express3\\MeProc.exe\" /AContextMacro /VT1%1"
whereas it should contain this:
"C:\Program Files\Macro Express3\Meproc.exe" /AContextMacro /VT1:%T1
(sorry, I omitted the colon before after /VT1)
#8
Posted 27 February 2007 - 11:16 AM
"C:\Program Files\Macro Express3\MeProc.exe" /AContextMacro /VT1:%T1
Is what I have in the key now per your instruction. It still returns blank. In the case that Vista was tossing in a greasy monkey wrench I tried it on a Server 2003 machine and got the same result. Are you sure about that syntax? The "%T1" seems an awkward way to end it. I tried "%T1%" and "%1" but still no luck. Any other ideas?
Also where can I find a list of command line switches? I see no reference to them in help or o the ME website. I'll keep cracking at it.
Fallbrook, California
Bluepoint Design
Macro writer for hire! Need help with a macro fast? Just contact me.
#9
Posted 27 February 2007 - 11:42 AM
The syntax SB /VT:%1, not /VT:%T1
It works so cool now! My mind is boggling at the possabilities.
My problem was when it did not work initially I started changing things. One of the first things I tried was to remove the variable restore and like an idiot never put it back. Once I read the help file on the syntax I saw the need for it and put it back but was getting "T1" as the result. So I went back and tried the %1 trick and it worked perfectly. Still don't understand te restore variables thing but that's a subject for a seperate post.
Thank you very much Paul!
Fallbrook, California
Bluepoint Design
Macro writer for hire! Need help with a macro fast? Just contact me.
#10
Posted 27 February 2007 - 05:03 PM
"C:\Program Files\Macro Express3\MeProc.exe" /AContextMacro /VT1%1
The only thing wrong was the missing colon immediately before the %1.
Then we got this:
C:\Program Files\Macro Express3\Meproc.exe" /AContextMacro /VT1:%T1
Here we have the mysterious appearance of an unwanted T in %T1.
I doesn't seem to matter how many times I checked my script (and I took a great deal of care) - I'm not perfect after all <g>!.
Paul you're my golden god for a day.
So I can't be God, because God, by definition, is perfect <g>!
#11
Posted 28 February 2007 - 11:56 AM
Quote
It works so cool now! My mind is boggling at the possabilities.
Is that now actually correct? Shouldn't the full line be
"C:\Program Files\Macro Express3\Meproc.exe" /AContextMacro /VT1:%1
not
"C:\Program Files\Macro Express3\Meproc.exe" /AContextMacro /VT:%1
as you are saying?
However, I've not got it working with either! Maybe I'll try rebooting...
--
Terry, West Sussex, UK
#12
Posted 28 February 2007 - 01:04 PM
"C:\Program Files\Macro Express3\Meproc.exe" /AContextMacro /VT1:%1
This is highly cool. I't killing me becasue I have other things to work on now and I can't play with it yet...
Fallbrook, California
Bluepoint Design
Macro writer for hire! Need help with a macro fast? Just contact me.
#13
Posted 01 March 2007 - 02:57 AM
I'm running XP Home (SP1)
The registry key is:
HKEY_CLASSES_ROOT\Shell\Me Macro\command
Its contents under '(Default)':
"C:\Program Files\Macro Express3\MeProc.exe" /AContextMacro /VT1:%1
Location of MeProc on my HD:
C:\Program Files\Macro Express3\MeProc.exe
But nothing has been added to the r-click context menu of any file in a Windows folder.
--
Terry, West Sussex, UK
#14
Posted 01 March 2007 - 03:13 AM
HKEY_CLASSES_ROOT\Shell\Me Macro\command
Its contents under '(Default)':
"C:\Program Files\Macro Express3\MeProc.exe" /AContextMacro /VT1:%1
I didn't make any mention of that registry key! Please take a fresh look at my message of 27th February, especially to the lines between Run regedit.exe and Close Regedit
Let us know how you get on.
#18
Posted 06 March 2007 - 08:50 PM
What OS are you running?
Fallbrook, California
Bluepoint Design
Macro writer for hire! Need help with a macro fast? Just contact me.
#20
Posted 06 March 2007 - 09:44 PM
Not at all. I composed it using XP Professional, but it should work as is under Windows 2000. Earlier than that I cannot guarantee <g>!
Have your macro simply display a dialogue box to show that it's running. If it still doesn't work, please do as follows:
- tell us what operating system you're using
- run regedit.exe
- export the contents of the registry key HKEY_CLASSES_ROOT\* to a file
- edit that file and copy its contents to the clipboard
- paste the clipboard text into your message

Sign In
Register
Help


MultiQuote