Jump to content

TrayTip and having variables as text?


Recommended Posts

#include <Date.au3>
#include <TrayConstants.au3>

HotKeySet("^d", "WhatIsToday")

Global $Today = _Date_Time_GetSystemTime

While 1
    Sleep(100)
WEnd

Func WhatIsToday()
    TrayTip("Today's date", "Today is... " & $Today, 8)
    Sleep(8000)
    TrayTip("", "", 0)
EndFunc   ;==>WhatIsToday

all it outputs into tray bubble is:  Today is...

without getting the system time as text

Link to comment
Share on other sites

u need read more about _Date_Time_GetSystemTime() :

#include <Date.au3>
#include <TrayConstants.au3>

HotKeySet("^d", "WhatIsToday")

Global $Today = _Date_Time_GetSystemTime()

While 1
    Sleep(100)
WEnd

Func WhatIsToday()
    TrayTip("Today's date", "Today is... " & _Date_Time_SystemTimeToDateTimeStr($Today), 8)
    Sleep(8000)
    TrayTip("", "", 0)
EndFunc   ;==>WhatIsToday

 

Link to comment
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
 Share

×
×
  • Create New...