Extension in Register

How can I call a layout from within Register.

C:\Uty\Software\Opus\DOpus.exe /homeset
I know the above will open a Lister Layout in the address bar.

But how can I open it from within the registry.

I Create shortcuts you the following directory: \HKEY_LOCAL_machine\software\Microsoft\Windows\currentversion\App Paths
by creating a key called ch.exe I can execute the following by typing CH in the address bar.
C:\Prg\Graphic\CharacterPro\CHMAP.EXE

I want to start doing the same with some of my lister layouts. I know the registry is outside of the Opus limits but I'm hoping to get some help. I need to know what registry expects when I want to use a layout when I load Opus.

This is a confusing question...

/homeset isn't a valid argument to DOpus.exe (or any other program or command that I know of). Where did that idea come from?

Address bar of what? Lots of programs have an address bar.

You don't open programs from the within registry...

[quote]I Create shortcuts you the following directory: \HKEY_LOCAL_machine\software\Microsoft\Windows\currentversion\App Paths
by creating a key called ch.exe I can execute the following by typing CH in the address bar.
C:\Prg\Graphic\CharacterPro\CHMAP.EXE[/quote]

You really shouldn't modify the registry's App Paths area for this purpose. That isn't what it's for and it may confuse things.

Either way, as far as I know (I might be wrong) you can't specify arguments to the commands under App Paths. It just exists (as far as I know) so that if something needs to find an exe by name, and doesn't know the path it is installed under, then it can look up the installed path there.

If your aim is to make it easy to open an Opus layout while using other programs, creating a global hotkey seems like a better idea. Then it'll work in all programs, not just ones with address bars that happen to be able to run local exes which they look up via App Paths in the registry.

1 Like

Apologies, I was wrong in part of my reply. The App Paths registry area can be used to create shorter/alternative names for programs and Microsoft (ab)used it for that themselves (pbrush.exe -> mspaint.exe):

blogs.msdn.com/b/oldnewthing/arc ... 89298.aspx

As far as I know, you still can't provide arguments to the target command, so App Paths still isn't useful for what you want to do with Opus layouts. Using it to map ch.exe to chmap.exe appears to be valid, though, contrary to what I said before.

Several years ago I accidentally bought a magazine at Fleet Farm called MaximumPC. Since I'm not a gamer, which this magazine targets, I felt I wasted six bucks. Is this first magazine purchased at Fleet Farm that had this shortcut. Over the last several years I have found so much technical information in this magazine - it's not hard to figure out why each month I wait for this magazine to make my day.

The address bar seems like such a convenient place to enter a two digit shortcut.
I have used it in Xp, Vista and Windows 7.

The basic works like this:

  1. \HKEY_LOCAL_machine\software\Microsoft\Windows\currentversion\App Paths\
  2. On App Path - right Click\new\Key
    a. give it name "cm.exe" omit parentheses.
    b. Right click on default and enter past plus executable as C:\Prg\Graphic\CharacterPro\CHMAP.EXE

From now on: enter "CM" in the address bar to execute "Character Pro"

I have yet to have a problem using this method.

You seem to be a bit concerned about the registry which you have a right to. But I have never had a problem.

You remember the day that you started using Opus? Probably the best day you had in a long time. Probably you would not start your computer without it, as I also feel. Well that's how I feel about this little shortcut which I want to share with the real estate industry in Wisconsin. Don't get me wrong all you really need is Opus. But this shortcut can make life a bit easier. So that's why I'm trying to have my command execute a Lister. I know I can execute a program as I've shown and I was hoping that there might be an extension that could open a Lister the way I'm trying.

If I had a Lister called "AB"

C:\Prg\Graphic\CharacterPro\CHMAP.EXE /AB

So I would be opening a program called Character Pro and at the same time opening a Lister called "AB".

I am probably shooting for the moon here, actually we've done that haven't we, but I'm hoping this is possible.

Thanks again for the help.

Bob

You'll have to use dopusrt.exe /cmd instead of dopus.exe to execute DOpus-Commands from outside DOPus.
To open a Layout you could try something like this:

"C:\Uty\Software\Opus\dopusrt.exe" /cmd Prefs LAYOUT="MyLayout"
1 Like

If you want to trigger layouts / commands / etc. via the keyboard in Opus windows, using hotkeys is the most straightforward way to do it.

If you have too many commands to remember hotkeys for and you instead want to use short two-letter names for them, then create User Commands for them and run them by typing > and then the name of the command. When you type > into the file display it will pop-up a field allowing you to run any Opus command, including User Commands.

To create User Commands, go to Settings -> Customize Toolbars -> Commands -> User-defined Commands.

1 Like

/cmd Prefs LAYOUT="MyLayout<<
I will check this out in the morning. Thanks for the help.

As far as the Opus hot key I'm not sure if I want to give up on the registry idea as yet.
Bob

Leo
AS confusing as I must have been, stating the problem. You were able to figure it out. You are absolutely right hotkeys and Macro Express, in my case, was a perfect solution.
Thanks again Leo.
Bob

You can create hotkeys in Opus directly. No need to involve other software which won't be able to run the Opus commands as easily (although you can do that if you want to).

1 Like