Author: None Last Modified: 20100320
Get milliseconds from a 4 or 6 digit time "hhmm" or "hhmmss"
msTill(Time)
For the functions's parameters and return value, please see it's source code.
The documentation is part of authors initial posting about this function.
Many thanks goes to: DerRaphael, Sean, Superfraggle, Lexikos, majkinetor.
Please note some options like Close Button and Link will require Win2000++ (+version 6.0 of comctl32.dll)
Background and Text color do not work in Vista ToolTips, but you can disable it using Q option.
AutoHotKey Version 1.0.48++ is required due to "assume static mode"
If you use 1 ToolTip for several controls, the only difference between those can be the text.
Rest, like Title, color and so on, will be valid globally
In Vista you can use Option Q (Q1) to disable Vista or XP Theme for the ToolTip
- this option will enable usual ToolTip and you can use colors
For update's details and remarks related to the functions, please see the AutoHotkey Forum: http://www.autohotkey.com/forum/viewtopic.php?t=40165
For update's details and remarks related to the functions, please see the AutoHotkey Forum: http://www.autohotkey.com/forum/viewtopic.php?p=340991#340991
nonexistent
; #Include msTill.ahk #NoEnv SendMode Input SetWorkingDir %A_ScriptDir% #Persistent ; Typical usage is something like msTill("1357"). The following is just ; for demonstration. ; Calculate a time when for when to call the subroutine. ; Use current time from now and add 5 seconds to it. Seconds = 5 targetTime := A_Now EnvAdd, targetTime, %Seconds%, Seconds ; Extract the needed hour, minutes and seconds. Drop the date part. FormatTime, targetTime, %targetTime%, HHmmss ; Single run with "-", because running at intervals of the time till ; your destination is Silly SetTimer Dest, % "-" msTill(targetTime) ; Just show a countdown. While (Seconds > 0) { TrayTip, msTill, %Seconds% seconds till time Sleep, 1000 Seconds-- } Return Dest: TrayTip MsgBox %A_Now% ExitApp Return