CurtimusPrime Posted June 11, 2016 Posted June 11, 2016 #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
Synapsee Posted June 11, 2016 Posted June 11, 2016 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 CurtimusPrime 1
CurtimusPrime Posted June 11, 2016 Author Posted June 11, 2016 that returns: Today is... (time and date format with all 0's)
Synapsee Posted June 11, 2016 Posted June 11, 2016 All is ok for me w7x64 no uac. https://www.autoitscript.com/autoit3/docs/libfunctions/_Date_Time_GetSystemTime.htm ; Under Vista the Windows API "SetSystemTime" may be rejected due to system security CurtimusPrime 1
CurtimusPrime Posted June 11, 2016 Author Posted June 11, 2016 (edited) you're right i wasn't reading everything.. i didn't know how to use UDF properly lol... sure don't make them easy lol Edited June 11, 2016 by CurtimusPrime
Synapsee Posted June 11, 2016 Posted June 11, 2016 be carefull to that : Global $Today = _Date_Time_GetSystemTime() ;<========= don't fortget parenthese here "()" without "()" i have your issue : Quote (time and date format with all 0's) CurtimusPrime 1
CurtimusPrime Posted June 11, 2016 Author Posted June 11, 2016 seems being on vista i cant use AutoIt system time functions
Synapsee Posted June 11, 2016 Posted June 11, 2016 (edited) that can maybe help : #include <Date.au3> #include <MsgBoxConstants.au3> MsgBox($MB_SYSTEMMODAL, '', "The Date is: " & _NowDate() & " " & _NowTime()) Edited June 11, 2016 by Synapsee CurtimusPrime 1
CurtimusPrime Posted June 11, 2016 Author Posted June 11, 2016 #include <Date.au3> #include <TrayConstants.au3> HotKeySet("^d", "WhatIsToday") While 1 Sleep(1000) WEnd Func WhatIsToday() TrayTip("Today's date", "The Date is: " & _NowDate() & " The Time is: " & _NowTime(), 8) Sleep(8000) TrayTip("", "", 0) EndFunc ;==>WhatIsToday thanks so much dude you're an AutoIt Ninja!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now