2139 links
238 private links
  • Ginko's Link Dump
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
  • Click a tray icon - Scripts - AutoHotkey Community

    ; the number of the tray icon that you need to click, followed by a space and then the filename containing the icon :

    iconstr = 3 C:\Program Files\Winamp\Plugins\gen_delete.dll

    ;replace this with your filename. I used beardboys Icon Browser - http://www.autohotkey.com/forum/viewtopic.php?t=5587&highlight=iconviewer - to find the icon inside the dll

    coordmode, mouse, screen
    MouseGetPos, mouseX, mouseY
    coordmode, pixel, screen
    WinGetPos, trayX, trayY, trayWidth, trayHeight, ahk_class Shell_TrayWnd
    ImageSearch, imageX, imageY, trayX, trayY, trayX+trayWidth, trayY+trayHeight, *Icon%iconstr%
    MouseMove,%imageX%,%imageY%,0
    MouseClick,left,%imageX%,%imageY%,1,0
    MouseMove,%mouseX%,%mouseY%,0
    Return

    February 23, 2015 at 12:08:46 PM GMT+1 - permalink -
    QRCode
    - archive.org - http://www.autohotkey.com/board/topic/21357-click-a-tray-icon/
    ahk
Links per page: 20 50 100
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation