home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My Emulators
(Old) My Emulators
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Wintermute" data-source="post: 111070" data-attributes="member: 20064"><p>Tip to devs. on the alt+f4 issue..</p><p></p><p>If you can get hold of the notifications from remote/hotkeys/globalhotkeys while the emulator is running you could close any app by sending WM_QUIT (nice) or TerminateProcess (bad) to the window/process.</p><p></p><p>(Pseudo) Quick notes to test..</p><p>WM_QUIT by:</p><p>WaitForInputIdle, EnumWindows , match GetWindowThreadProcessId with the handle from your ShellExecuteEx (SEE_MASK_NOCLOSEPROCESS) (possibly also need to check visible/no parent, main-thread etc on the HWND) to get HWND then PostMessage WM_QUIT or PostThreadMessage if you took the effort to get the main-thread id.</p><p></p><p>TerminateProcess pretty straight forward.. use handle returned from ShellExecuteEx (SEE_MASK_NOCLOSEPROCESS)</p><p></p><p>Perhaps you know/have tried this but can't get any notifications from the remote, hotkeys or global-hotkeys while the app is running!? Well then.. ditch it all.</p><p></p><p>Good luck.</p></blockquote><p></p>
[QUOTE="Wintermute, post: 111070, member: 20064"] Tip to devs. on the alt+f4 issue.. If you can get hold of the notifications from remote/hotkeys/globalhotkeys while the emulator is running you could close any app by sending WM_QUIT (nice) or TerminateProcess (bad) to the window/process. (Pseudo) Quick notes to test.. WM_QUIT by: WaitForInputIdle, EnumWindows , match GetWindowThreadProcessId with the handle from your ShellExecuteEx (SEE_MASK_NOCLOSEPROCESS) (possibly also need to check visible/no parent, main-thread etc on the HWND) to get HWND then PostMessage WM_QUIT or PostThreadMessage if you took the effort to get the main-thread id. TerminateProcess pretty straight forward.. use handle returned from ShellExecuteEx (SEE_MASK_NOCLOSEPROCESS) Perhaps you know/have tried this but can't get any notifications from the remote, hotkeys or global-hotkeys while the app is running!? Well then.. ditch it all. Good luck. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My Emulators
(Old) My Emulators
Contact us
RSS
Top
Bottom