--- In [email protected], "mreeves123" <crim...@...> wrote:
>
> Thanks for that. I made an autorun.ini with the above with the right names
> and tried import from text file. PPro moaned about no properties so I
> exported snippets and copied properties for that. Then it imported ok.
You don't need to do that...In Configure > Command Lists
you have a button that says: "New list"
name it whatever you want and you'll get a new blank list.
In this case AutoRun is a PowerPro defined list but you still have to create it.
>
> So =name defines file name rather than window caption. And $ means not a
> dialog window, if I read this right.
=exename w/o the .exe and $ what you said exactly.
>
> I decided to traymin all including the app bridge. All the other windows now
> traymin when opened so that's good :-). The app bridge does not though. Any
> ideas why that might be? I tried making the label the window name but that
> didn't work either.
if it doesn't work with exename, check Help > Caption Lists > Caption Lists
You have there several options for matching a window, you can
use classname too or handle.
To get that info for a specific window, assign a Hotkey or make a button with
*Exec WindowInfo to display a tooltip with the relevant data.
Check Help > class of window > "See mouse cursor position
and window information"
>
> Also, I don't understand the logic of win.traymin("AutoRun"), why is traymin
> being passed autorun and not the window name or exe name?
>
You can use: win.traymin("=bridgeapp")
but using autorun gives you the flexibility to match every instance of a label,
because you're running it through a Special List.
Using Autorun, whenever there's a match of your specified labels,
it will always run trayminned.
For instance, let's use Notepad as an example.
Case scenario, you assign a Hotkey to run Notepad.
[1]
Key = Alt+n
Target = =notepad
Cmd1 = *Window
Param1 = Traymin! active
The above will only effect the active Notepad window,
if you run other instance of notepad, you have to hit Alt+n
again to send it to the tray.
But if you use:
Param1 = Traymin! autorun
then it will match all labels, specified in your Autorun commandlist,
and when you hit Alt+n you could be doing something like this:
[AutoRun:Properties]
[1]
Label = $=notepad
LCmd1 = *Keys (to autorun)Hello World!
MCmd1 = (none)
RCmd1 = (none)
which in turn, would result in a trayminned notepad with Hello World! written...
Play with it and read the Help, you'll get what you want. ;)