Jump to content

is it possible that i can use the the "mouse over tray" function to switch between two functions?


Recommended Posts

if i am in the pausing state ,then when i hover over the tray icon , it will get into function one , if i am in funtion one , then when i hover over the tray icon, it will get into pausing state 

#include <TrayConstants.au3>
Opt("TrayOnEventMode",1)
TraySetOnEvent($TRAY_EVENT_MOUSEOVER"pause")
 
one()
Func one()
    while 1
    ToolTip("one")
    WEnd
EndFunc
 
Func pause()
While 1
    ToolTip("pausing")
    WEnd
EndFunc
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...