World's simplest question: how to open M. S. with an hotkey?

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
dsdsds

World's simplest question: how to open M. S. with an hotkey?

Post by dsdsds » Sat Nov 13, 2004 6:33 pm

How can I open the Macro Scheduler general window in a script? (the equivalent of double click on the tray icon)

D.

User avatar
Captive
Macro Veteran
Posts: 213
Joined: Sun Oct 20, 2002 8:37 pm
Location: Colorado, USA

Post by Captive » Sat Nov 13, 2004 9:11 pm

This worked for me:
SetFocus>Macro Scheduler 7.3

You can also run a second instance of msched, and not have it minimize to the systray (see the "Command Line" section in the help file.)

If you specify your "reason" to want to open it, there is possibly a better way to acomplish your goal.

dsdsds

Post by dsdsds » Sun Nov 14, 2004 11:01 am

The "SetFocus" method worked!
but there's a problem: the opened Macro Scheduler windows doesn't close/hide anymore! unless you go to the "File" menu or use the shortcut Ctrl+F4... Did you find a solution to this strange behaviour?

My need is to have a fast way to remind to me the shortcuts/hotkey I assigned to the macros: the main windows shows in the fifth column the assigned hotkey for each macro.

Any other suggestions?

Thanks!
Ds

User avatar
Captive
Macro Veteran
Posts: 213
Joined: Sun Oct 20, 2002 8:37 pm
Location: Colorado, USA

Post by Captive » Mon Nov 15, 2004 1:56 am

The behaviour is probably due to that the window is hidden, and we force it to appear. The window still thinks it's hidden, to X'ing it doesn't make the window think it needs to re-hide itself.

Is there a problem when using Ctrl+F4 to hide it? That is, afterall the command to "hide" that window.

For a quicker (maybe even cleaner) command, the new "SelectMenu" command should also work:
SelectMenu>Macro Scheduler 7.3,File,Hide

If you want to get fancy, I *think* that macros.dat contains the info for hotkeys.

For example:
MyScript::0:0:0:0:0:0:"":0::1A:nn:nn:0::0:0:1::H:MyGroup:I:N

Here, the "1A" means "Ctrl + A". A script could be written to find any macro's with info in this field, and display the meanings in a nice "Dialog" window.
(Don't edit macros.dat though... that may mess up all the stored macro properties).

dsdsds

Post by dsdsds » Mon Nov 15, 2004 3:22 pm

Thanks again!

The SetFocus, used two consecutive times (the first put it in focus and the second put it foreground too(!?)), is sufficient for my simple need.

Thank you very much Captive!

D.

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts