How to start SimpleBrowser.exe without losing the focus?
Posted: Thu Jan 31, 2019 6:39 pm
Is it possible to start an EXE (with mainform + Chromium browser) without activating the window?
With other Delphi based EXEs I use ShellExecute with SW_SHOWNOACTIVATE and the calling EXE keeps the focus.
When I launch SimpleBrowser.exe from the demo applications, then SimpleBrowser gets the focus and the calling EXE loses the focus.
This is how I call the SimpleBrowser:
My main goal is that the calling EXE keeps the focus.
Any chance to get this working?
Thanks,
Wolf
With other Delphi based EXEs I use ShellExecute with SW_SHOWNOACTIVATE and the calling EXE keeps the focus.
When I launch SimpleBrowser.exe from the demo applications, then SimpleBrowser gets the focus and the calling EXE loses the focus.
This is how I call the SimpleBrowser:
Code: Select all
ShellExecute(Self.Handle, nil, PChar('c:\test\SimpleBrowser.exe'), nil, PChar('c:\test\'), SW_SHOWNOACTIVATE);
Any chance to get this working?
Thanks,
Wolf