Jump to content

Ini stuff


Achilles
 Share

Recommended Posts

I've been looking through the helpfile/forum and I'm not really sure what an .ini file is. Is it just like a notepad file that you Autoit can read stuff from easily... 'cause that would be very helpful for a program I'm trying to write. I assume that .ini files would be used for keeping data for several days or whatever. Is that right?

P.S. I'm making a program that will remind you of what you needed reminded of (i.e. you insert your friends birthday and at the specified time a msgbox will come up saying "It's so and so's birthday). Would I use .ini to store the reminders for a long time? So far I've only been able to do daily stuff, when close the program it doesn't remember them...

Piano_Man

Edited by Piano_Man
My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
Link to comment
Share on other sites

Understanding how a INI-files is built up is just as easy as blinking with your eyes. It doesn't

require to much concentration really... INIs contains sections, keys and values. Which is what

also speaks for itself if you study it. Below is a simple example that you could use to store

the birthdays with names. If there are multiple people with the same birthday you can simply

just separete them with commas or something.

[birthdays]
0713=Helge,Thomas
0613=Heidi
1212=Mom
So to check if there's someone's birthday today you could do something like this :
IniRead("c:\birthdays.ini", "birthdays", @MON & @MDAY, "")
Edited by Helge
Link to comment
Share on other sites

Understanding how a INI-files is built up is just as easy as blinking with your eyes. It doesn't

require to much concentration really... INIs contains sections, keys and values. Which is what

also speaks for itself if you study it. Below is a simple example that you could use to store

the birthdays with names. If there are multiple people with the same birthday you can simply

just separete them with commas or something.

[birthdays]
0713=Helge,Thomas
0613=Heidi
1212=Mom
So to check if there's someone's birthday today you could do something like this :
IniRead("c:\birthdays.ini", "birthdays", @MON & @MDAY, "")
Thanks... that's kind of what I thought... And thanks to JdeB also

Piano_Man

My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
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...