after starting a plugin I found this thread
http://forum.wdlxtv.com/viewtopic.php?f=46&t=590&p=3915&hilit=catch+key+press#p3915
has this been resolved
it seems I'm unable to supress the underlying dmaosd function for the arrow keys on villa_home.xml
here's what I had come up with
- Code: Select all
// OsdRemote Plugin WDTVExt plugin by KAD (2011)
//
//
/*
# meta-name="OsdRemote"
# meta-desc="WDTVExt OsdRemote"
# meta-author="KAD"
# meta-date="2012-01-10"
# meta-version="1.0.0"
# meta-type="wdtvext"
# meta-url="http://forum.wdlxtv.com"
# meta-filename="OsdRemote.plugin.js"
*/
traceln("OsdRemote: Start loading OsdRemote plugin");
function OsdRemotePlugin(path) {
this.rootPath = path;
this.debug = new Debug();
this.debug.Enable = true;
var dLevel = getConfigSetting("OSDREMOTE_DEBUG");
this.debug.Level = (!dLevel || dLevel == "" || dLevel < 0) ? 0 : dLevel;
this.debug.Lib = (this.debug.Level > 2) ? this.debug.Level - 2 : 0;
this.debug.Prefix = "OsdRemote:";
}
OsdRemotePlugin.prototype = new Plugin();
OsdRemotePlugin.prototype.constructor = OsdRemotePlugin;
OsdRemotePlugin.prototype.onPageKey = function(page, key) {
this.debug.Log("[onPageKey] page: " + page.markupFileName, 3);
if (page.markupFileName == "villa_home.xml") {
if (key == 34) { //UP
res = executeCmd("irinject STOP", this.debug.Lib);
return true
}
if (key == 35) { //DOWN
res = executeCmd("irinject STOP", this.debug.Lib);
return true
}
if (key == 32) { //LEFT
res = executeCmd("irinject UP", this.debug.Lib);
return true
}
if (key == 33) { //RIGHT
res = executeCmd("irinject DOWN", this.debug.Lib);
return true
}
}
};
OsdRemotePlugin.instance = new OsdRemotePlugin(scriptPath);
Plugin.registerPlugin(OsdRemotePlugin.instance);
traceln("OsdRemote: End loading OsdRemote plugin");
plugin loads and functions with the exception that the underlying dmaosd function for the keys are still executed along with my irinject cmds
KAD




