Jump to content

Outlook Script


 Share

Recommended Posts

Hello Everyone,

I was wondering if there was an easy way to open outlook and then to close outlook. I tired this:

Run("outlook.exe")

And it will not open outlook.

Any ideas?

Thanks!!

Give the full path of Outlook.exe or else run the script from Outlook.exe path.

[size="4"][font="Arial Narrow"][font="Garamond"]Attitude is a little thing that makes a big difference[/font][/font][/size][indent][/indent]

Link to comment
Share on other sites

You need to give the full path to Outlook.

Run("c:\Program Files\Microsoft Office\Office12\OUTLOOK.EXE")

Support bacteria; it's the only culture most people have.LxP's Learning to Script with AutoIt 3 - Excellent starting placeVolly's Links Page - Links to cool and useful scriptsAutoIt Wrappers - Valuater's AutoIt Wrappers post. Lots of good stuff.Support AutoIt - Make a donation here; I did.[size="2"]#include <Guinness.pint>[/size]

Link to comment
Share on other sites

Hey that worked great!! How would I close outlook?

Thank you so much!!!!

I cannot seem to get my script to close outlook. Here is what I have..

Run("c:\Program Files\Microsoft Office\Office12\OUTLOOK.EXE")

WinClose("Inbox - Microsoft Outlook")

It opens Outlook just fine. However it will not close Outlook.

Any ideas?

Thanks!

Link to comment
Share on other sites

I cannot seem to get my script to close outlook. Here is what I have..

Run("c:\Program Files\Microsoft Office\Office12\OUTLOOK.EXE")

WinClose("Inbox - Microsoft Outlook")

It opens Outlook just fine. However it will not close Outlook.

Any ideas?

Thanks!

Hi,

try this:

ShellExecute ("outlook.exe") ; alternate you can use your run ()
WinWait ("Inbox - Microsoft Outlook")
WinClose ("Inbox - Microsoft Outlook")

;-))

Stefan

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...