Jump to content
Sign in to follow this  
Altrez

Outlook Script

Recommended Posts

Altrez

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!!

Share this post


Link to post
Share on other sites
Mecrazycoder

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]

Share this post


Link to post
Share on other sites
ksmith247

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]

Share this post


Link to post
Share on other sites
Altrez

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

Thank you so much!!!!

Share this post


Link to post
Share on other sites
Altrez

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!

Share this post


Link to post
Share on other sites
picea892

might need a sleep or winwait. Outlook is slow to open and the script runs fast. Your trying to close outlook before it is even open

Share this post


Link to post
Share on other sites
99ojo

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

Share this post


Link to post
Share on other sites
Altrez

Thank you all so very much. It works great and I am so very impressed with AutoIT..

Thank you!!!!!!

Share this post


Link to post
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
Sign in to follow this  

×