Shell_NotifyIcon uID

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
000
Posts: 11
Joined: 20 May 2018, 16:51

Shell_NotifyIcon uID

Post by 000 » 28 Mar 2023, 22:19

How do i get the uID for any executable? Using spotify as an example

Code: Select all

bytecount := a_ptrsize*2 + 8
notifyicondata := buffer(bytecount)
numput "ptr", bytecount, notifyicondata ; cbsize
numput "uint", winexist("ahk_exe spotify.exe"), notifyicondata, a_ptrsize ; hwnd
numput "uint", 0, notifyicondata, a_ptrsize*2 ; uid
dllcall("shell32\Shell_NotifyIcon", "uint", 2, "ptr", notifyicondata) ; NIM_DELETE

Return to “Ask for Help (v2)”