demando Posted February 26, 2006 Share Posted February 26, 2006 Hallo togehter is it possible with Autoit to get the Timestamp format with hundreths seconds. In the Helpfile i only find the following Macros => $variable = @hour & ":" & @MIN & ":" & @SEC I don't find a macro likes "@hundrethsSecond" Demando Link to comment Share on other sites More sharing options...
Valuater Posted February 26, 2006 Share Posted February 26, 2006 maybe $begin = TimerInit() sleep(3000) $dif = TimerDiff($begin) MsgBox(0,"Time Difference",$dif) 8) Link to comment Share on other sites More sharing options...
demando Posted February 26, 2006 Author Share Posted February 26, 2006 Hallo i need the Timestamp format for the current time, and not for a different time Demando Link to comment Share on other sites More sharing options...
Holger Posted February 26, 2006 Share Posted February 26, 2006 (edited) Example (Beta version needed): While 1 ToolTip(@Hour & ':' & @Min & ':' & @Sec & ':' & _MSec()) Sleep(1) WEnd Exit Func _MSec() Local $stSystemTime = DllStructCreate('ushort;ushort;ushort;ushort;ushort;ushort;ushort;ushort') DllCall('kernel32.dll', 'none', 'GetSystemTime', 'ptr', DllStructGetPtr($stSystemTime)) $sMilliSeconds = StringFormat('%03d', DllStructGetData($stSystemTime, 8)) $stSystemTime = 0 Return $sMilliSeconds EndFunc Holger Edited February 26, 2006 by Holger Old project:GUI/Tray menu with icons and colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView Link to comment Share on other sites More sharing options...
demando Posted February 26, 2006 Author Share Posted February 26, 2006 Hallo Holger thank's a lot for the excellent example. I tested it, and it works very fine. Demando Link to comment Share on other sites More sharing options...
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