Jump to content
Sign in to follow this  
Nino

Help the newb!

Recommended Posts

Nino

Hello, i've been fooling around in AutoIt for quite some time lately in the past few days, but I cannot understand how to get the writeini command to work with @hour @min @sec to work correct.

IniWrite("C:\test.ini", "time", "minute", "executed at:", @MIN)

It's basicaly being used as a log as you can tell. Any help is greatly appreciated.

Cheers,

Nino

Share this post


Link to post
Share on other sites
ezzetabi

& is the symbol of concatenate.

To you different type of data you have to concatenate them.

E.g.

$variable & @macro & 'Set text'

The comma instead separe (if outside ' ) the parameters of the functions.

in your case the solution is:

niWrite("C:\test.ini", "time", "minute", "executed at:" & @MIN)

Please, to anyone that make the helpfile. Lets make this 'concatenate' stuff more clear. It happens too often that a newbie not understand this!

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.