Jump to content

Recommended Posts

Posted

Hi,

I have this programs with a window that contains a few icons and labels, as well as the same features in a system tray menu. I decided to upgrade the tray menu with the UDF of @Holger (great job @Holger!!).

http://www.autoitscript.com/forum/index.php?showtopic=23945&hl=traymenu+icon

In order to make my icons and labels in the window clickable I use Opt("GUIOnEventMode",1). But this command blocks the events from the new menu. When I remove Opt("GUIOnEventMode",1) my tray menu works perfectly, but then nothing works in my window. I can see that in sampleGUIandTray.au3 there is no Opt("GUIOnEventMode",1), yet it still works. I'm puzzled.

Any idea?

Thanks

Posted

nvm, I found the answer: You can't use both Opt("GUIOnEventMode",1) and GUIGetMsg() to handle the events. So I removed Opt("GUIOnEventMode",1) and put all of my events inside the switch.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...