Registering and logging in removes this ad.
Registering and logging in removes this ad.
Custom Commands for Firefox
Submitted by MargaretB on Wed, 06/06/2007 - 19:18.
Where would I look for the answer to this problem: When trying to create Nat macros that use keyboard shortcuts in Firefox, for certain actions NaturallySpeaking will not recognize the command names no matter what I change them to, or if even it does, it doesn't execute the macro. I have some that work fine (one to close a tab, for example, or even to close a specified number of tabs), but I can't get anything to work for going "back" -- and I don't see any obvious difference in the way I create the macro.


Margaret, It's not clear
Margaret,
It's not clear exactly where the problem lies -- either with how you write the macro or what keystroke/command sequence you're using. FWIW, in Firefox I can simply say "go back" or "go forward" without any additional commands.
In general, if you're having problems with a specific macro its best to post it in order to ground the conversation.
Bruce
I think I can't say that
I think I can't say that because I don't have the latest versions of either program. I have 8.1 and 1.5.something. For example, I can say "Press Alt-Left" and that works fine. But if I try to make a macro that will use the same action, it doesn't matter how I make the macro or what I call it -- it won't work. I've tried it with just keystrokes, I've tried it with a script, I've tried it with many different names for the macro -- it won't even recognize the name of the macro, let alone do the action. It seems very consistent.
OK, I think it was DNS 9.x
OK, I think it was DNS 9.x that brought Firefox compatibility.
Again, as a long-time macro writer, you should know that it could something as simple as a minor format error that prevents a script from working. The solution is simple: post it for review.
Bruce
BruceCyr wrote: ...it could
...it could something as simple as a minor format error that prevents a script from working.
Bruce
Normally it would seem so, but I had tried creating it using the Step-By-Step Keystroke macro facility in the Command Browser, so theoretically there couldn't be an error there. I've tried creating it with scripts, with any of the following commands:
SendKeys "{Alt+Left}"
SendSystemKeys "{Alt+Left}"
SendDragonKeys "{Alt+Left}"
Not only did they not work, but Mozilla consistently wouldn't even recognize the command no matter what I name it. (Meanwhile, I have all kinds of other macros for Firefox that *do* work -- keystrokes, text entry, scripts, even scripts that recognize variables.) I just now got one to work, but only by first creating it as a global command and then moving it to Firefox, and it uses SendDragonKeys. But if I just create the same command from scratch in Firefox, it doesn't work. Oh well!
Margaret, I took your first
Margaret,
I took your first command and created it as a DVC script with the name "Joe Says". It works perfectly.
Bruce
The following macro works
The following macro works fine for me:
go back = {alt+left} ;I'm using 9.5 with Firefox 2.0, but I tried changing the macro above to the command "shout back" and it still worked.
In general, when I have problems with macros not being recognized it has usually been one of the following:
-- a small error has crept into the VCL file, for example the "|" character
-- I've segmented the file to make certain commands work in certain windows, and put the new command in the wrong segment
-- I've capitalized the command (I don't think that should confuse Dragon, but it seems to do so sometimes)
-- for some Windows commands I need to use the function SendSystemKeys:
Hit Start [Menu] = SendSystemKeys( {Ctrl+Esc} );-- for using "`" I had to send the ASCII character directly as "{Alt+96}".
Hope that helps.
This command format doesn't
This command format doesn't look familiar. Are you using Vocola or something? I'm not using anything beyond Dragon NaturallySpeaking Professional itself.
You're right, I'm using
You're right, I'm using vocola. I missed that in the original post