Sign in to follow this  
Followers 0
NG13

Outlook and Lync Status

13 posts in this topic

#1 ·  Posted (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 by NG13

regards

[font="verdana, geneva, sans-serif;"]NG[/font]

Share this post


Link to post
Share on other sites



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 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

Can you post the code you have tried so far?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 by NG13

regards

[font="verdana, geneva, sans-serif;"]NG[/font]

Share this post


Link to post
Share on other sites

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 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

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 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

yes


regards

[font="verdana, geneva, sans-serif;"]NG[/font]

Share this post


Link to post
Share on other sites

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 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

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 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

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  
Followers 0