Jump to content
Sign in to follow this  
Slothovan

Typing Text From Ini File.

Recommended Posts

Slothovan

I am trying to create a program that will read, then write a string of text from an ini file. (At max 100 characters or so) This is what I am trying to do...

Run("notepad.exe")

Send("       TEXT FROM AN INI FILE WILL GO HERE      ")

I have been trying to figure out how to do it for a while. Thank you.

- Slothovan

Share this post


Link to post
Share on other sites
Valuater

Welcome to the Forums

to learn alot quickly.... try this

http://www.autoitscript.com/forum/index.php?showtopic=21048#

from help

$var = IniRead("C:\Temp\myfile.ini", "section2", "key", "NotFound")
MsgBox(4096, "Result", $var)


; add yours


Run("notepad.exe")
winwaitactive("")

Send($var)

the ini would look like this

myfile.ini

[section2]
key=TEXT FROM AN INI FILE WILL GO HERE

8)

Edited by Valuater

NEWHeader1.png

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  

×