- March 17, 2008
- 1,353
- 306
- Home Country
- Netherlands
Hey all,
I kinda wanted some functionality to reopen MP (minimized to tray) after some amount of user inactivity (if it was not already open ofcourse). Tried to accomplish something like this with task scheduler and a batch but couldn't get it right.
So I decided to give it a go with AutoIt instead and now I have a working solution. You can run the attached file on system start (or use something like firedeamon to create a service out of it). It will check every configurable amount of time for the following 3 conditions;
- Is MP open?
- Has there been user activity over the last period (configurable)
- Is another app running fullscreen?
if mp isn't open, there's no user activity and no app running fullscreen the script will launch MediaPortal.exe making mediaportal open full screen again. Came in handy for me, some of you might like it as well so I thought I'd share.
You can edit the provided ini file to adjust 3 settings;
pollInterval: The interval in which the script will check for the conditions, in milliseconds
idleTimerInterval: The idle time amount that triggers this script, in miliseconds
mpExe: The absolute path to the mediaportal executable
p.s.
The source is included in the zip, just a few autoit lines of code.
I kinda wanted some functionality to reopen MP (minimized to tray) after some amount of user inactivity (if it was not already open ofcourse). Tried to accomplish something like this with task scheduler and a batch but couldn't get it right.
So I decided to give it a go with AutoIt instead and now I have a working solution. You can run the attached file on system start (or use something like firedeamon to create a service out of it). It will check every configurable amount of time for the following 3 conditions;
- Is MP open?
- Has there been user activity over the last period (configurable)
- Is another app running fullscreen?
if mp isn't open, there's no user activity and no app running fullscreen the script will launch MediaPortal.exe making mediaportal open full screen again. Came in handy for me, some of you might like it as well so I thought I'd share.
You can edit the provided ini file to adjust 3 settings;
pollInterval: The interval in which the script will check for the conditions, in milliseconds
idleTimerInterval: The idle time amount that triggers this script, in miliseconds
mpExe: The absolute path to the mediaportal executable
p.s.
The source is included in the zip, just a few autoit lines of code.