Sign in to follow this  
Followers 0
seres

how to save log files

3 posts in this topic

hello , i have a program from autoit and i want to save the things that the program performs in to an ini or txt file like when i give a click on a button so the program saves which buttons or what answer does the user make

Share this post


Link to post
Share on other sites



hello , i have a program from autoit and i want to save the things that the program performs in to an ini or txt file like when i give a click on a button so the program saves which buttons or what answer does the user make

use iniread and iniwrite to save and load information.

i made an alarm clock a while ago that saves the information you input.

see here

maybe you can just have it iniwrite on Autoit Exit

Share this post


Link to post
Share on other sites

use iniread and iniwrite to save and load information.

i made an alarm clock a while ago that saves the information you input.

see here

maybe you can just have it iniwrite on Autoit Exit

hello thanks for the answer, but now im stuck again

here is a part of my code (the code is a little bit like human language)

While 1

if button1 is preesed then

IniWrite("log.ini", "section2", "key", "button1")

EndIf

if button2 is preesed then

IniWrite("log.ini", "section2", "key", "button2")

EndIf

Sleep(100)

WEnd

what i want is that the iniwrite saves the value of the button 1 and 2 together like

[section2]

key=button1 button2

thanks

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