Jump to content

Editing text and strings in txt files


IKAMI
 Share

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.

Example:

My ini file contains these strings:

[Rainmeter]
Author=myself

[Variables]
Variable1=hello
Variable2=34

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.

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