Jump to content

Help the newb!


Nino
 Share

Recommended Posts

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

Link to comment
Share on other sites

& 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!

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...