Sign in to follow this  
Followers 0
cypher175

anything smaller than @SEC..?

7 posts in this topic

Is there any time macro smaller than @SEC..?? like @MilSec = milliseconds

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

In beta version exists this macro for miliseconds @MSEC. :)


When the words fail... music speaks

Share this post


Link to post
Share on other sites

where to d/l beta version at..??

Share this post


Link to post
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..??

Share this post


Link to post
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

Share this post


Link to post
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
Sign in to follow this  
Followers 0