Jump to content

why cant i switch back to function one ?


Go to solution Solved by ioa747,

Recommended Posts

#include <TrayConstants.au3>
Opt("TrayOnEventMode",1)
 
one()
Func one()
    while 1
    TraySetOnEvent($TRAY_EVENT_MOUSEOVER"pause")
    ToolTip("one")
    WEnd
EndFunc
 
Func pause() 
While 1
    TraySetOnEvent($TRAY_EVENT_MOUSEOVER"one")
    ToolTip("pausing")
    WEnd
EndFunc
Edited by jacky998877
Link to post
Share on other sites
  • Solution

i don't know

Try plan B  :)

#include <TrayConstants.au3>
Opt("TrayOnEventMode", 1)
TraySetOnEvent($TRAY_EVENT_MOUSEOVER, "_MouseOnTray")

Local $TrayTip

    While 1
        ToolTip($TrayTip)
        Sleep(300)
    WEnd


func _MouseOnTray()
    if $TrayTip = "one" Then
        $TrayTip = "pausing"
    Else
        $TrayTip = "one"
    EndIf
EndFunc

 

Link to post
Share on other sites
2 hours ago, ioa747 said:

i don't know

Try plan B  :)

#include <TrayConstants.au3>
Opt("TrayOnEventMode", 1)
TraySetOnEvent($TRAY_EVENT_MOUSEOVER, "_MouseOnTray")

Local $TrayTip

    While 1
        ToolTip($TrayTip)
        Sleep(300)
    WEnd


func _MouseOnTray()
    if $TrayTip = "one" Then
        $TrayTip = "pausing"
    Else
        $TrayTip = "one"
    EndIf
EndFunc

 

this is what i am looking for ,thx

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...