Jump to content

SecureLogon - Novel - Systemtray icon


Bert
 Share

Recommended Posts

Ive done some searching through the Forum and I can't find what I need. When running slproto.exe, you get a icon in the system tray. I understand there is a hidden window for the app. What I'm trying to do is figure out a way to see if SecureLogon is active while it is running. WHen active, the icon in the system tray is a blue square with a hand in it. When not active, it is a blue square with a "X" in it. I really do not wish to do the pixel route to figure this one out.

Things I've tried to see if I could get a hook:

  • registry
  • look in the gui and see if ther is a control to change the setting. Apparantly the only way to switch it is to right click on the system tray icon and click on "active" in the context menu.
  • ini file in the program's folder
  • google for information on SecureLogin

Is it possible to check the icon to see if the "active" menu item is checked?

Link to comment
Share on other sites

It is not quite telling me what I need. It tells me how to click on a menu, but not how to read the menu. Also the example script it talks about is no longer available.

TaskTray.au3:

#include <A3LToolbar.au3>

Opt("MustDeclareVars"  , 1)
Opt("WinTitleMatchMode", 4)

; ===============================================================================================================================
; Description ...: Shows how to work with the Taskbar
; Author ........: Paul Campbell (PaulIA)
; Notes .........: This script MUST be run in SciTE in order to see the results
; ===============================================================================================================================

; ===============================================================================================================================
; Global variables
; ===============================================================================================================================

Global $hWnd, $iCount, $iI, $iCount, $iCommand, $sText

; ===============================================================================================================================
; Main
; ===============================================================================================================================

$hWnd   = ControlGetHandle("[CLASS:Shell_TrayWnd]", "", "Notification Area")
$iCount = _Toolbar_ButtonCount($hWnd)
for $iI = 0 to $iCount - 1
  $iCommand = _Toolbar_IndexToCommand($hWnd, $iI)
  $sText    = _Toolbar_GetButtonText ($hWnd, $iCommand)
  if $sText <> "" then _Lib_ConsoleWrite($sText)
next

_Lib_ConsoleWrite()
$hWnd = ControlGetHandle("[CLASS:Shell_TrayWnd]", "", "Quick Launch")
$iCount = _Toolbar_ButtonCount($hWnd)
for $iI = 0 to $iCount - 1
  $iCommand = _Toolbar_IndexToCommand($hWnd, $iI)
  $sText    = _Toolbar_GetButtonText ($hWnd, $iCommand)
  if $sText <> "" then _Lib_ConsoleWrite($sText)
next

_Lib_ConsoleWrite()
$hWnd = ControlGetHandle("[CLASS:Shell_TrayWnd]", "", "ToolbarWindow322")
$iCount = _Toolbar_ButtonCount($hWnd)
for $iI = 0 to $iCount - 1
  $iCommand = _Toolbar_IndexToCommand($hWnd, $iI)
  $sText    = _Toolbar_GetButtonText ($hWnd, $iCommand)
  if $sText <> "" then _Lib_ConsoleWrite($sText)
next
Link to comment
Share on other sites

where do I get A3LToolbar.au3? Gary seems to have removed it.

You can use new standard UDF in which is ported all Auto3Library.

In this case: C:\Program Files\AutoIt3\Include\guitoolbar.au3

and rename functions accordingly:

Toolbar_GetButtonText() --> _GUICtrlToolbar_GetButtonText()

EDIT: If you want I can send you latest Auto3Library by PM

Edited by Zedna
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...