Technical support and scripting issues
Moderators: JRL, Dorian (MJT support)
-
Dexter1
- Pro Scripter
- Posts: 64
- Joined: Mon Jun 19, 2006 3:28 pm
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
-
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
-
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