AutoHotkey Community

It is currently May 26th, 2012, 1:10 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: November 19th, 2008, 4:52 pm 
Offline

Joined: November 4th, 2008, 9:23 am
Posts: 1045
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 19th, 2008, 11:01 pm 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
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

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun :wink:


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Amandaville, Exabot [Bot], patgenn123, poserpro, Yahoo [Bot] and 20 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group