Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Performance Tuning
#4
Here's what I'm using for getting the unread count.  powershell + qm

Macro Macro6
Code:
Copy      Help
out
lpstr ps=
;$outlook = new-object -com Outlook.Application
;$session = $outlook.Session
;$session.Logon()
;$inbox = $outlook.session.GetDefaultFolder(6)
;$unreadCount = (%{$inbox.Items | where {$_.UnRead}}).Count
;$unreadCount

PsCmd(ps "" _s)
str a.getl(_s 1)
out a
An old blog on QM coding and automation.

The Macro Hook


Messages In This Thread
Performance Tuning - by ken gray - 10-25-2018, 05:10 PM
RE: Performance Tuning - by Gintaras - 10-25-2018, 05:55 PM
RE: Performance Tuning - by ken gray - 10-25-2018, 08:26 PM
RE: Performance Tuning - by ken gray - 10-26-2018, 12:49 PM
RE: Performance Tuning - by stupomer - 10-28-2018, 09:21 PM
RE: Performance Tuning - by BJ - 12-07-2018, 08:37 PM
RE: Performance Tuning - by stupomer - 12-10-2018, 03:27 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)