Is there any method you can use or someting if you want not just to execute a program, but to maybe write something in one of the programs edit boxes?
Printable View
Is there any method you can use or someting if you want not just to execute a program, but to maybe write something in one of the programs edit boxes?
I've tried this and was unnsuccessful at it. Instead of using WinExec() I'm pretty sure you'd have to use -
CreateProcess()
//The create process executes another application and returns a bunch of handles to the process and thread but it doesn't return any HWND's so you'd have to find a way - probably very involved- to get an HWND from the Windows of the app.
Your handles are stored in the STRUCTS.Code:STARTUP_INFO *si; //These are the STRUCTS that are filled by the
PROCESS_INFO *pi; //CreateProcess() fxn
CreateProcess(blahh....,...)
Edited--