Possible to run a macro in a inactive window?

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
Newb

Possible to run a macro in a inactive window?

Post by Newb » Mon Dec 29, 2003 4:14 pm

Possible to run a macro in a inactive window? can a macro only run if the window is active?

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

Post by Captive » Mon Dec 29, 2003 5:52 pm

A macro simulates you being at the PC. If you want to type a keystroke, hit alt, whatever... in to a certain 'window' (application), then that application needs to be the window in focus.

A macro can run without any window in focus. It can still act as if you're hitting keys, moving the mouse, all all that happy stuff.... but then the keystrokes would go to the desktop / taskbar / etc.

So the answer to your question would be no. However, I assume you want to control that "window" somehow (send keystrokes to it?), in which case, you can set focus to it yourself.

Some applications (like mirc) will accept commands via DDE - so you can have it do something without it being in focus.

It all depends on what you want to do, and with what program(s).

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