Sign in to follow this  
Followers 0
jmichae3

how do I access a structure?

3 posts in this topic

structures are not in the manual under data types.

I couldn't find any examples that accessed structure members.

please provide a usable example or at least give a how-to.

the structure I am trying to access is $tagSYSTEMTIME

the function that returns this structure is _Date_Time_GetLocalTime() which I am trying to get the information from. I

especially need the MSeconds (actually, everything except DOW).

thank you.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

There's an example in the help file.

#include <Date.au3>

$tTime = _Date_Time_GetLocalTime()
$aTime = _Date_Time_SystemTimeToArray($tTime)
MsgBox(0,'Milliseconds',$aTime[6])

;~ Array $aTime:
;~ [0] - Month
;~ [1] - Day
;~ [2] - Year
;~ [3] - Hour
;~ [4] - Minutes
;~ [5] - Seconds
;~ [6] - Milliseconds
;~ [7] - Day of week

You can also use the @MSEC :P

Edited by VixinG

[indent=3][/indent]

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

The best example I found regarding the $tagSYSTEMTIME structure is in the __Date_Time_CloneSystemTime() function. This is found in the ..AutoIt3IncludeDate.au3 file on your hard drive.

Edited by Malkey

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