Is there any way to get the windows handle for a child process besides waiting for the process to start and using something like the following to push the parent down to ensure the child is on top:
hParent = winId();
.
.
process.start( "cmd.exe", args);
SetWindowPos( hParent, HWND_BOTTOM, x, y, cx, cy, SWP_NOSIZE);
hChild = GetForeGroundWindow();
hParent = winId();
.
.
process.start( "cmd.exe", args);
SetWindowPos( hParent, HWND_BOTTOM, x, y, cx, cy, SWP_NOSIZE);
hChild = GetForeGroundWindow();
To copy to clipboard, switch view to plain text mode
Bookmarks