WindoAction ALMOST Works

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Dexter1
Pro Scripter
Posts: 64
Joined: Mon Jun 19, 2006 3:28 pm

WindoAction ALMOST Works

Post by Dexter1 » Thu Jun 29, 2006 3:30 pm

I have a macro which closes Microsfot Outlook.

Code: Select all

GetWindowHandle>Microsoft Outlook*,MSO
Let>Win_Usehandle=1
WindowAction>3,MSO
The trouble I'm having is that when I open Outlook, the macro doesn't close it the first time I run it. It works like a charm if I run it a second time, though.

Thoughts?
Thanks,
Josh

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu Jun 29, 2006 3:37 pm

This may be more reliable:

Code: Select all

SetFocus>Microsoft Outlook*
Press ALT
Send>fx
Release ALT
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Dexter1
Pro Scripter
Posts: 64
Joined: Mon Jun 19, 2006 3:28 pm

Post by Dexter1 » Thu Jun 29, 2006 4:03 pm

That does seem to work better.
Thanks,
Josh

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