Jump to content

anything smaller than @SEC..?


Recommended Posts

Like this...

; timer to "thousandths" of a second
; Author - Holger

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

There are many great useful scriptlets here in Autoit Wrappers

http://www.autoitscript.com/forum/index.ph...st&p=133769

8)

NEWHeader1.png

Link to comment
Share on other sites

ok i installed the beta over the stable build but when i enter that macro @MSEC it says its an undefined macro and i get an error when syntax checking and also when building and running the .exe

whats going wrong here..??

Be sure that you run your script with beta version. If you use WinXP Right Click ->Open With - and then search C:\Program Files\AutoIt3\Beta\AutoIt3.exe if this is the path.

When the words fail... music speaks.

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...