Jump to content



Photo

UDF: Click tray popup menu items


  • Please log in to reply
1 reply to this topic

#1 MisterBates

MisterBates

    Adventurer

  • Active Members
  • PipPip
  • 108 posts

Posted 08 June 2007 - 09:56 AM

I wanted to be able to set Live Messenger (and other IM clients) status to busy then back to online. This grew into a generic possibility to identify a taskbar icon, popup it's menu, click an item on the menu, and if the clicked item had a submenu, to find an item in the submenu and click it.

This work draws heavily on PaulIA's Auto3Lib - his library needs to be installed on your PC to use this UDF.

Apart from that, it turned out to be quite complicated to manage the popup menus in a generic way ...

Here's a small code snippet to demonstrate the UDF:
#include "ScB_TrayIcons.au3" Opt("WinTitleMatchMode", 4) opt("TrayIconHide", 1) $bResult = ClickTaskbarMenuItem("Windows Live Messenger", "status", "online") $bResult = ClickTaskbarMenuItem("Jabber Messenger", "status", 11, "secondary", 600, 3); Optional parms - last one provides a trace         ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $bResult = ' & $bResult & @crlf & '>Error code: ' & @error & @crlf);### Debug Console


Would appreciate any and all feedback!

EDIT: so that people can find this example when searching: edit click systray menu

MisterBates

Attached Files


Edited by MisterBates, 11 June 2007 - 07:49 AM.








#2 autoItrules209

autoItrules209

    Seeker

  • Active Members
  • 7 posts

Posted 29 August 2007 - 05:32 PM

have you ever tried this UDF?
I'm quite a noob regarding autoit, but nevertheless i found 1-2 bugs already and it still doesnt work for me
I'd really like to use this UDF,so I started fixing it - ill post it here when I've worked out a working udf.... or maybe when I've given up fixing it :)

Edited by autoItrules209, 29 August 2007 - 05:47 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users