I am currently in the process of figuring out a way to make a media program automatically open a file and change settings using a config file. I have the source code of the media program, and I know that I am going to need to alter it to read from a config file. I was wondering if anyone could tell me, or at least explain to me how to effectively use them. I am thinking that to make this happen, I need to set some new variables in the source code of the program, and after reading the config file, to use these new variables to hold the values. Then I could somehow simulate user actions to load the file and change settings. I know this isn't all very clear, but I was wondering if someone could give me a little information on config files, and what carriage returns are.
So far, I have not seen any good programming books about simulated keystrokes, mouse movement and manipulation of windows from other applications.
This post is not about simulating keypresses or something. It's about changing some sourcecode and reading settings from a file and applying them. If you have the sourcecode of a program you don't need to 'simulate' keyclicks, you can simply call the function that actually does the work.