AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Toggling system tray menu on click

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
animeaime



Joined: 04 Nov 2008
Posts: 1046

PostPosted: Wed Nov 19, 2008 3:52 pm    Post subject: Toggling system tray menu on click Reply with quote

What I'm trying to do is have the menu (on the system tray), toggle when clicking. The default behavior is that if the menu is already open and you click on the menu, then it will reopen, What I want is for it to close. I thought I had a solution, but after more testing, I found out it's a flop. Any suggestions?
_________________
As always, if you have any further questions, don't hesitate to ask.

Add OOP to your scripts via the Class Library. Check out my scripts.
Back to top
View user's profile Send private message Send e-mail
HotKeyIt



Joined: 18 Jun 2008
Posts: 1994
Location: GERMANY

PostPosted: Wed Nov 19, 2008 10:01 pm    Post subject: Reply with quote

Try: (using this pressing RButton on a menu item does same as pressing LButton)
Code:
#Persistent
#NoTrayIcon
#IfWinExist, AHK_class #32768
RButton::Click
#IfWinExist
Return

_________________
AutoHotFile - ToolTip(n,text,title,options) Wink
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group