Sign in to follow this  
Followers 0
Suu

System Tray menus

5 posts in this topic

Hello everyone,

I have tried different functions regarding the system tray.

So far I created menus that appear when you right click on the autoit script icon in the system tray.

What i'd like to do is that when your mouse is over a specific menu (not by clicking on it, just by having the mouse over that menu), a picture appears on a window, picture changes for each menu (i can do the picture stuff though).

I don't want the user to be forced to click on a system tray menu/sub-menu for the picture event to be triggered. I'd want it to be triggered just by bringing the mouse over the menu, without clicking on it.

I've looked over the different tray functions, but I can't find any that fits my needs. I'm still wondering how I would be able to code this, that is why I am seeking help here.

Thanks by advance for any help you could provide me,

Suu, aka Pollux on autoit.fr

PS: I'm french, so please disregard spelling mistakes :P

Share this post


Link to post
Share on other sites



You could use mousegetpos(). I would also include @desktopwidth just to make sure it the position is relative to whatever resolution the user has their screen set to.


[font="Verdana"] [size="2"]"[/size][/font]Failure is not an option -- it comes packaged with Windows"[font="Verdana"][size="2"] Gecko Web Browser[/size][/font][font="Verdana"][size="2"], [/size][/font][font="Verdana"][size="2"]Yahtzee![/size][/font][font="Verdana"][size="2"], Toolbar Launcher (like RocketDock)[/size][/font][font="Verdana"][size="2"]Internet Blocker, Simple Calculator, Local Weather, Easy GDI+ GUI [/size][/font][font="Verdana"][size="2"]Triangle Solver, TCP File Transfer, [/size][/font][font="Verdana"][size="2"]Valuater's Autoit Wrappers[/size][/font][font="Verdana"][size="3"][size="2"][size="2"]OOP In AutoIt[/size][/size][/size][/font][font="Verdana"][size="2"][size="1"]Using Windows XP SP3, 1GB RAM, AMD Athlon Processor @ 2.1 GHzCheck me out at gadgets.freehostrocket.com[/size][/size][/font]

Share this post


Link to post
Share on other sites

You could use mousegetpos(). I would also include @desktopwidth just to make sure it the position is relative to whatever resolution the user has their screen set to.

Hi,

Actually I've thought of this, but it's not that simple.

The icon is not always at the same place in your system tray, and menus could be considered a "box" (a rectangle) where the mouse can be anywhere inside that rectangle.

Posted Image

So you'll have to take into account each box range? There should be another solution :s

Suu

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Edit: Sorry misread

Edited by foster74

Share this post


Link to post
Share on other sites

Bump :P still need help :s

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0