Altrez Posted October 8, 2009 Posted October 8, 2009 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!!
Mecrazycoder Posted October 8, 2009 Posted October 8, 2009 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]
ksmith247 Posted October 8, 2009 Posted October 8, 2009 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]
Altrez Posted October 8, 2009 Author Posted October 8, 2009 Hey that worked great!! How would I close outlook? Thank you so much!!!!
Altrez Posted October 8, 2009 Author Posted October 8, 2009 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!
picea892 Posted October 8, 2009 Posted October 8, 2009 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
99ojo Posted October 8, 2009 Posted October 8, 2009 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
Altrez Posted October 8, 2009 Author Posted October 8, 2009 Thank you all so very much. It works great and I am so very impressed with AutoIT.. Thank you!!!!!!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now