Altrez Posted October 8, 2009 Share 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!! Link to comment Share on other sites More sharing options...
Mecrazycoder Posted October 8, 2009 Share 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] Link to comment Share on other sites More sharing options...
ksmith247 Posted October 8, 2009 Share 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] Link to comment Share on other sites More sharing options...
Altrez Posted October 8, 2009 Author Share Posted October 8, 2009 Hey that worked great!! How would I close outlook? Thank you so much!!!! Link to comment Share on other sites More sharing options...
Altrez Posted October 8, 2009 Author Share 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! Link to comment Share on other sites More sharing options...
picea892 Posted October 8, 2009 Share 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 Link to comment Share on other sites More sharing options...
99ojo Posted October 8, 2009 Share 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 Link to comment Share on other sites More sharing options...
Altrez Posted October 8, 2009 Author Share Posted October 8, 2009 Thank you all so very much. It works great and I am so very impressed with AutoIT.. Thank you!!!!!! Link to comment Share on other sites More sharing options...
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