小编Sim*_*ard的帖子

右键单击Windows 10中带有AutoHotKey的托盘图标

在Windows 7中,我有一个AutoHotKey脚本,可以自动右键单击托盘图标.

#Include %A_Scriptdir%\TrayIcon.ahk
TrayIcon_Button("CCC.exe", "R")
Run Code Online (Sandbox Code Playgroud)

其中使用了FanaticGuru的帖子中的TrayIcon.ahk库.

这在Windows 7上运行得很好,但不再适用于Windows 10.

有没有办法在Windows 10上的AutoHotKey脚本中右键单击TrayIcon?

这是库中的TrayIcon_Button函数.我没有张贴整个图书馆,因为它相当长.

; ----------------------------------------------------------------------------------------------------------------------
; Function .....: TrayIcon_Button
; Description ..: Simulate mouse button click on a tray icon.
; Parameters ...: sExeName - Executable Process Name of tray icon.
; ..............: sButton  - Mouse button to simulate (L, M, R).
; ..............: bDouble  - True to double click, false to single click.
; ..............: index    - Index of tray icon to click if more than one …
Run Code Online (Sandbox Code Playgroud)

autohotkey system-tray windows-10

6
推荐指数
1
解决办法
2424
查看次数

标签 统计

autohotkey ×1

system-tray ×1

windows-10 ×1