Sign in to follow this  
Followers 0
ThePhil

Send something from ini

5 posts in this topic

I want to read something in my .ini file and a bit later in the script i need to write it so i use

iniread ( "C:\Users\Philippe\Desktop\AutoIt\settings.ini", "info", "account", "NotFound" )
send ( "??????" )

What am I supposed to write in the send function ?

And should I put the iniread just before the send or at the beginning of the script ?

By the way my ini looks like that

[info]
account=test

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Welcome to AutoIt and the forum!

What you have read from the ini file needs to be stored in a variable. So use something like:

$sKey = iniread("C:UsersPhilippeDesktopAutoItsettings.ini", "info", "account", "NotFound" )

With "Send" you mean rewrite to the ini file or something else?

Edited by water

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

no i mean like writing it somewhere like in notepad or anything like that

Share this post


Link to post
Share on other sites

In the help file for the Send command you'll find an example that writes to Notepad. Replace

Send("Today's time/date is {F5}")
with
Send($sKey)
That's it.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

thank you it worked ;)

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