AutoHotKey INI Files 1 (Intro to variable storing)

Опубликовано: 30 Сентябрь 2024
на канале: TAB Nation - Automation
3,138
65

Here I show you how to use INI files to store date and call upon it later.

CODE:
myinipath = C:\Users\Thom\Desktop\initest.ini

f1::
Gui, destroy
Gui, Add, Button, x72 y159 w100 h30 greadtheini, Update
Gui, Add, Button, x222 y159 w100 h30 gsavetoini, save
Gui, Add, Edit, x42 y19 w300 h120 viniinfo, %iniinfo%
Gui, Show, x769 y389 h223 w400, test window ini
Return

GuiClose:
Gui, destroy
Return

readtheini:
IniRead, iniinfo, %myinipath%, myinfo, info1
GuiControl,, iniinfo, %iniinfo%
Return

savetoini:
gui, submit
IniWrite, %iniinfo%, %myinipath%, myinfo, info1