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
Development
General Development (no feature request here!)
Launch program from within MediaPortal, how to deal with MP always on top
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="Dragy" data-source="post: 860654" data-attributes="member: 91197"><p>Wow, I got it! The main problem was actually finding the CORRECT Hwnd of Opera Mobile. I already had one, but I found out that Opera was not the only window with the classname I searched for. After this, I solved my problem with this:</p><p>[code] TaskBarHwnd = FindWindow("Shell_traywnd", "");</p><p> SetWindowPos(TaskBarHwnd, IntPtr.Zero, 0, 0, 0, 0, SWP_HIDEWINDOW); // Hide Taskbar</p><p></p><p> SetForegroundWindow(MediaPortalHwnd); //mediaportal to foreground</p><p> SetWindowPos(MediaPortalHwnd, OperaHwnd, 0, 0, SystemInformation.PrimaryMonitorSize.Width, SystemInformation.PrimaryMonitorSize.Height, SWP_HIDEWINDOW); //mediaportol on top, but hidden</p><p>[/code]</p><p>This works when MP is always on top and when it isn't. I can type and MP gets all the keypresses, but I don't see MP, but Opera! Perfect. This is how it must be.</p><p> </p><p>Case closed.</p></blockquote><p></p>
[QUOTE="Dragy, post: 860654, member: 91197"] Wow, I got it! The main problem was actually finding the CORRECT Hwnd of Opera Mobile. I already had one, but I found out that Opera was not the only window with the classname I searched for. After this, I solved my problem with this: [code] TaskBarHwnd = FindWindow("Shell_traywnd", ""); SetWindowPos(TaskBarHwnd, IntPtr.Zero, 0, 0, 0, 0, SWP_HIDEWINDOW); // Hide Taskbar SetForegroundWindow(MediaPortalHwnd); //mediaportal to foreground SetWindowPos(MediaPortalHwnd, OperaHwnd, 0, 0, SystemInformation.PrimaryMonitorSize.Width, SystemInformation.PrimaryMonitorSize.Height, SWP_HIDEWINDOW); //mediaportol on top, but hidden [/code] This works when MP is always on top and when it isn't. I can type and MP gets all the keypresses, but I don't see MP, but Opera! Perfect. This is how it must be. Case closed. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Launch program from within MediaPortal, how to deal with MP always on top
Contact us
RSS
Top
Bottom