I am new to programming and I am trying to write a program that will open Internet Explorer and then add text to an input box and then press enter... here is an example:
open_ie = system("IEXPLORE.EXE www.google.com");
When the window opens, I would like to add text to googles input box and press enter. I have tried using fputs(), but I don't think that I am targeting the open window properly (or if fputs() is even correct). I'm not sure how to press enter, or automate any keyboard functionality.
I understand, by reading the FAQ, that ShellExecute() would be a better option than using system(), but I have used system() in the past on Linux machines and I'm a little more familiar (emphasis on little).
OS: Windows 2000
Compilier: Turbo C
Any advice would be very helpful.