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
Restore MP from system tray.exe
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="kiwijunglist" data-source="post: 929045" data-attributes="member: 76888"><p>Hi</p><p> </p><p>It's really annoying that I can't restore mediaportal from the system tray with MP_tray, so I made Restore_MP.exe which will find the MP system tray icon, and then double click on it. I have this set to run whenever I click the MCE button on my remote. If Restore_MP.exe can't find the tray icon then nothing happens, so it doesn't matter if you click MCE button when MP is already maximised, or when MP is not in the system tray.</p><p> </p><p><u>Instructions:</u></p><p>mp_tray.bmp - save this file as c:\mp_tray.bmp</p><p>Restore_MP.exe - save this anywhere, run it to Restore MP. I've set it to run when I press the MCE button on my remote, as unfortunately MP_Tray will not run MP if it is already minimised into the system tray.</p><p> </p><p>Here is the script in autohotkey</p><p>[spoiler][code]CoordMode, pixel, screen</p><p>CoordMode, mouse, screen</p><p>ImageSearch, FoundX, FoundY, 1500,980, 1920, 1200, C:\mp_tray.bmp</p><p>if ErrorLevel = 0</p><p>{</p><p>FoundX += 5</p><p>FoundY +=5</p><p>MouseMove, FoundX, FoundY</p><p>Sleep 500</p><p>Click, 2</p><p>}[/code]</p><p>1500,980 is the X,Y co-ordinates to start searching for the icon and 1920,1200 is X,Y to stop searching.</p><p>If your display is 720P then you would change it to something like 1000, 600, 1280 , 720</p><p>If it doesn't work you could try using Ctrl+Print Screen, then crop out the system tray icon, and save it as c:\mp_tray.bmp</p><p>I've added 5pixels to the co-ordinate because image search returned the top left corner co-ordinate, and you want to click close to the centre of the system tray icon</p><p>[/spoiler]</p><p>Hope someone else finds this useful</p></blockquote><p></p>
[QUOTE="kiwijunglist, post: 929045, member: 76888"] Hi It's really annoying that I can't restore mediaportal from the system tray with MP_tray, so I made Restore_MP.exe which will find the MP system tray icon, and then double click on it. I have this set to run whenever I click the MCE button on my remote. If Restore_MP.exe can't find the tray icon then nothing happens, so it doesn't matter if you click MCE button when MP is already maximised, or when MP is not in the system tray. [U]Instructions:[/U] mp_tray.bmp - save this file as c:\mp_tray.bmp Restore_MP.exe - save this anywhere, run it to Restore MP. I've set it to run when I press the MCE button on my remote, as unfortunately MP_Tray will not run MP if it is already minimised into the system tray. Here is the script in autohotkey [spoiler][code]CoordMode, pixel, screen CoordMode, mouse, screen ImageSearch, FoundX, FoundY, 1500,980, 1920, 1200, C:\mp_tray.bmp if ErrorLevel = 0 { FoundX += 5 FoundY +=5 MouseMove, FoundX, FoundY Sleep 500 Click, 2 }[/code] 1500,980 is the X,Y co-ordinates to start searching for the icon and 1920,1200 is X,Y to stop searching. If your display is 720P then you would change it to something like 1000, 600, 1280 , 720 If it doesn't work you could try using Ctrl+Print Screen, then crop out the system tray icon, and save it as c:\mp_tray.bmp I've added 5pixels to the co-ordinate because image search returned the top left corner co-ordinate, and you want to click close to the centre of the system tray icon [/spoiler] Hope someone else finds this useful [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Restore MP from system tray.exe
Contact us
RSS
Top
Bottom