Jump to content
Macro Express Forums

Microsoft Outlook Disruption


rberq
 Share

Recommended Posts

I may be typing along rapidly in a Microsoft Word document, when Outlook pops up a box saying "New mail has arrived. Would you like to read it now?" At that point, most of my typing is ignored because focus is now on the pop-up. If I happen to type a letter Y or N, the pop-up accepts it and either brings up the email (Y) or closes the pop-up (N).

 

I have a similar situation with ME. A macro is busily tabbing from field to field and typing data into a form, when up pops the Outlook box and steals focus and steals all the keystrokes until either Y or N happens to occur, and then if it is Y the email is displayed. In any case, the macro application is totally disrupted.

 

Short of disabling the Outlook feature, can anyone suggest a way around this?

Link to comment
Share on other sites

Just an FYI, my company uses Microsoft Office Outlook 2003 (11.8206.8202) SP3. I have the popups that show new mail, etc. but don't have a problem with them interfering with macros or typing. Perhaps it is a setup issue? I couldn't find anything in a quick search of options available to me as a end user. Maybe the way options set upon setup?

 

Good Luck, John

Link to comment
Share on other sites

I'm not sure in Outlook but in some cases I've been able to disable program features with the registry at the beginning of my macro and re-enable at the end. But in some cases the registry item is difficult to find or requires the application to reload. So in that case you can have your macro open OL if running, go into the options and disable the feature, then when done open OL again an re-enable.

 

Another thing I sometimes do is in my macros I always reactivate my target window before typing. But of course if you're spending a lot of dwell time typing this is no solution.

 

In older versions of OL the box does pop up on top but in 2003 and later you get an unobtrusive ghost pop-up that doesn't steal focus.

 

But I like the idea of setting the window to always be on top. I'll have to try that next time.

Link to comment
Share on other sites

Thanks for the ideas, Cory. I also have found it helps to Activate the window just before typing, even though the macro itself was activated by the appearance of the window. Activate Window wasn't quite enough, so following the Activate Window I added Wait for Window Title. And when even THAT wasn't quite enough, following the Activate and the Wait for Title, I added Set Always On Top. I hope that will finally do it, because there's nothing more to add!

Link to comment
Share on other sites

You may have noticed that the Activate Window command takes a second or more. I use the following to avoid the extra delay when it is not needed (if the window already has focus):

If Not Window Title "Outlook" on top
 Activate Window: "Outlook"
End If

In some macros I will put this logic in front of each Text Type command.

If Not Window Title "Outlook" on top
 Activate Window: "Outlook"
End If
Text Type: Dear Macro Express Customer:

<other macro commands>

If Not Window Title "Outlook" on top
 Activate Window: "Outlook"
End If
Text Type: Insight Software Solutions, Inc.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...