Click here to Skip to main content
15,906,335 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Starting .exe... Pin
Ryan Binns1-Jul-03 0:17
Ryan Binns1-Jul-03 0:17 
GeneralRe: Starting .exe... Pin
Dominik Reichl1-Jul-03 0:18
Dominik Reichl1-Jul-03 0:18 
GeneralRe: Starting .exe... Pin
macmac381-Jul-03 1:12
macmac381-Jul-03 1:12 
GeneralRe: Starting .exe... Pin
User 66581-Jul-03 1:16
User 66581-Jul-03 1:16 
GeneralRe: Starting .exe... Pin
macmac381-Jul-03 1:56
macmac381-Jul-03 1:56 
GeneralRe: Starting .exe... Pin
Joan M1-Jul-03 3:21
professionalJoan M1-Jul-03 3:21 
GeneralRe: Starting .exe... Pin
macmac381-Jul-03 4:40
macmac381-Jul-03 4:40 
GeneralRe: Starting .exe... Pin
basementman1-Jul-03 5:52
basementman1-Jul-03 5:52 
If you launch it by using the CreateProcess api, one of the parameters is a PROCESS_INFORMATION structure. This gets filled in with the THREAD HANDLE of the primary thread for the newly lauched app. After the CreateProcess call returns, wait for the app to initialize by calling WaitForInputIdle(). When this returns, then you should be able to simulate a keystroke with the PostThreadMessage api, passing the new app's main thread handle as the parameter.

Good Luck!

 onwards and upwards... 
GeneralDirectx and the VC++ .NET environment Pin
JamesLaing30-Jun-03 23:17
JamesLaing30-Jun-03 23:17 
GeneralDelete All folder and its contents Pin
rohit.dhamija30-Jun-03 22:54
rohit.dhamija30-Jun-03 22:54 
GeneralRe: Delete All folder and its contents Pin
Ryan Binns30-Jun-03 23:06
Ryan Binns30-Jun-03 23:06 
GeneralRe: Delete All folder and its contents Pin
Anonymous30-Jun-03 23:08
Anonymous30-Jun-03 23:08 
GeneralRe: Delete All folder and its contents Pin
Rickard Andersson2030-Jun-03 23:13
Rickard Andersson2030-Jun-03 23:13 
GeneralRe: Delete All folder and its contents Pin
Ryan Binns1-Jul-03 0:07
Ryan Binns1-Jul-03 0:07 
GeneralNot exactly C++ -> Setup Project Pin
Brian Delahunty30-Jun-03 22:36
Brian Delahunty30-Jun-03 22:36 
GeneralRe: Not exactly C++ -> Setup Project Pin
Rage30-Jun-03 23:20
professionalRage30-Jun-03 23:20 
GeneralRe: Not exactly C++ -> Setup Project Pin
Brian Delahunty30-Jun-03 23:37
Brian Delahunty30-Jun-03 23:37 
GeneralRe: Not exactly C++ -> Setup Project Pin
Brian Delahunty1-Jul-03 0:24
Brian Delahunty1-Jul-03 0:24 
GeneralOpenSSL Pin
Ravi Jadhav30-Jun-03 22:28
Ravi Jadhav30-Jun-03 22:28 
GeneralComboBox Pin
bigmirror30-Jun-03 22:11
bigmirror30-Jun-03 22:11 
GeneralRe: ComboBox Pin
Ryan Binns30-Jun-03 22:19
Ryan Binns30-Jun-03 22:19 
GeneralRe: ComboBox Pin
bigmirror30-Jun-03 22:28
bigmirror30-Jun-03 22:28 
GeneralRe: ComboBox Pin
Ryan Binns30-Jun-03 22:41
Ryan Binns30-Jun-03 22:41 
GeneralAbout "&" Pin
FlyingDancer30-Jun-03 22:00
FlyingDancer30-Jun-03 22:00 
GeneralRe: About "&" Pin
FlyingDancer30-Jun-03 22:03
FlyingDancer30-Jun-03 22:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.