Hello again (still learning
I have my program set; when button click open external program:
[code]ShellExecute(Handle, Operation, FileName, Params, Folder, ShowCmd)
When I click the button it opens the program I have chosen
What I need now is help with getting the program to wait til the new program has actually finished loading before it goes to the next line of code.
I have found and read about WaitForInputIdle but do not understand how to fill in the paramaters (all of the sites refrence waiting til exe has closed, I dont want to wait til close, I want to wait til idle (waiting for user input)
The new program is a game, it will open the gui of the game and after loading will wait for user name and password (user name will come from INI file and password (typed into my program at start, will either be saved in memory or internal temp file)
Anyways, I want the button to open the program and wait for it to be idle then go to next line...
any help is greatly appreciated. Thank you