Jump to content
Sign in to follow this  

Editing text and strings in txt files

Recommended Posts


Hi everyone,

i'm a total newbie to AutoIt but i want to learn how to use it starting from my first issues.

I want to write an AutoIt script to edit txt files (precisely ini files) in order to perform easier configurations within Rainmeter's config files.


My ini file contains these strings:



My objective is to change by the script (using a GUI) Variable1 and Variable2 values (for example to replace the "hello" string with a "goodbye" string and to replace the "34" value to "70" value).

I want the script to monitor variables' values in a box with the possibility to change values from the same box in a window (by using a simple GUI) and automatically save changes to the ini file when you close the GUI.

I read something about creating GUIs in the reference guide but i have no idea about how to edit a specified text at a specified position within the file.

Could somebody help me to understand and to use the correct method?

Thanks and sorry for my (maybe) bad english.

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.