NG13 Posted December 30, 2013 Posted December 30, 2013 (edited) Hi How can I validate the status of my MS outlook client and MS lync 2010 and show it in a popup box ? By status I do not mean the process status I want to check the connection status and display it in a pop up box. Edited December 30, 2013 by NG13 regards [font="verdana, geneva, sans-serif;"]NG[/font]
water Posted December 30, 2013 Posted December 30, 2013 Welcome to AutoIt and the forum! When using my OutlookEX UDF you could use the following code to check if the Outlook client is online or offline. $oOutlook = _OL_Open() $bStatus = $oOutlook.Session.Offline My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
NG13 Posted December 30, 2013 Author Posted December 30, 2013 How can I use If-else here ? and how do I display the status in a message box ? regards [font="verdana, geneva, sans-serif;"]NG[/font]
water Posted December 30, 2013 Posted December 30, 2013 Can you post the code you have tried so far? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
NG13 Posted December 30, 2013 Author Posted December 30, 2013 (edited) I am trying to check the current status of my outlook client. I dont want to check whether I am able to connect to the server or not. Please help . Below is the code. #include <OutlookEX.au3> $oOutlook = _OL_Open() $bStatus = $oOutlook.Session.offline MsgBox(0,"Is Outlook Disconnected?",$bStatus) Exit Edited December 30, 2013 by NG13 regards [font="verdana, geneva, sans-serif;"]NG[/font]
water Posted December 30, 2013 Posted December 30, 2013 In your OP you are talking about "I want to check the connection status". Can you please more clearly describe what you want? Which values do you expect? Just true/false or different states? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
NG13 Posted January 2, 2014 Author Posted January 2, 2014 Hi Happy New year Yes exactly the different states of the outlook and lync. Example : "Online"/"Available"/"Offline"/"Away". If it is possible with autoit please help me out Cheers ! regards [font="verdana, geneva, sans-serif;"]NG[/font]
water Posted January 2, 2014 Posted January 2, 2014 Happy New Year! I don't know Lync so I can only talk about Outlook. You are talking about Outlook connecting to an Exchange server, right? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
NG13 Posted January 2, 2014 Author Posted January 2, 2014 yes regards [font="verdana, geneva, sans-serif;"]NG[/font]
water Posted January 2, 2014 Posted January 2, 2014 Then the only information I can provide is the code snippet in post #2. How do you manually check the status of Outlook? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
Bert Posted January 2, 2014 Posted January 2, 2014 In Lync (It ties in with Outlook) you can have the following status (it is how it works on mine): Available Busy Do Not Disturb Be Right Back Off Work Appear Away The Vollatran project My blog: http://www.vollysinterestingshit.com/
water Posted January 3, 2014 Posted January 3, 2014 Looks like you need to query Lync. I now nothing about Lync so I can't help here. Best guess is to search the web for a Visual Basic example and then translate it to AutoIt. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
Bert Posted January 3, 2014 Posted January 3, 2014 http://www.microsoft.com/en-us/download/details.aspx?id=36824 The Vollatran project My blog: http://www.vollysinterestingshit.com/
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