Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate

Assigning actions to clicking the AutoHotkey tray icon


  • Please log in to reply
2 replies to this topic
skrommel
  • Guests
  • Last active:
  • Joined: --
:?: How about assigning actions to clicking, doubleclicking and rightclicking the AutoKeykey tray icon?

I want to make tray launchers, menus, control MP3-players, whatever!

Chris
  • Administrators
  • 10727 posts
  • Last active:
  • Joined: 02 Mar 2004
I've made a note of your idea. In the meantime, you can already customize double-clicking the tray icon by setting your own default, as in this example:

menu, tray, add ; Create a separator line.
menu, tray, add, Launch Player, LaunchPlayer
menu, tray, Default, Launch Player
return

LaunchPlayer:
MsgBox, You double-clicked the tray icon or selected the "Launch Player" item.
return

; Adding at least one hotkey is one way to make the script persistent:
^!p::pause

skrommel
  • Guests
  • Last active:
  • Joined: --
:oops: I missed the Default action, sorry!

Doubleclicking will do nicely for now!

Great response time in this forum!