if type == "long":
#Doesn't work yet (WHY?)
#TODO Fix long key press
- flag = self.FLAG_LONG
+ flag = self.FLAG_LONG
elif type == "ascii":
flag = self.FLAG_ASCII
-
- self.eam.keyPressed(self.TYPE_ADVANCED, key, flag)
- print "[RemoteControl.py] command was was sent (%s)" % key
+ #If type=="long" we need to press send FLAG_MAKE first
+ if(flag == self.FLAG_LONG):
+ self.eam.keyPressed(self.TYPE_ADVANCED, key, self.FLAG_MAKE)
+
+ #press the key with the desired flag
+ self.eam.keyPressed(self.TYPE_ADVANCED, key, flag)
+ #Release the key
+ self.eam.keyPressed(self.TYPE_ADVANCED, key, self.FLAG_BREAK)
+
+ print "[RemoteControl.py] command was was sent (key: %s, flag: %s)" %(key,flag)
return ( True, "RC command '" + str(key) + "' has been issued" )
result = property(lambda self: self.res)
var locationsList = [];
var tagsList = [];
-var boxtype = "";
+var boxtype = "dm8000";
function startUpdateCurrentPoller(){
clearInterval(updateCurrentPoller);
function getBoxtype(){
- doRequest(URL.deviceinfo, incomingDeviceInfoBoxtype, false);
+// doRequest(URL.deviceinfo, incomingDeviceInfoBoxtype, false);
}
function toggleStandby(){
if (!webRemoteWin.closed && webRemoteWin.location) {
setWindowContent(webRemoteWin, template);
} else {
- webRemoteWin = openPopup('WebRemote', template, 250, 600);
+ webRemoteWin = openPopup('WebRemote', template, 250, 620);
}
}
function sendRemoteControlRequest(command){
- doRequest(URL.remotecontrol+'?command='+command, incomingRemoteControlResult, false);
+ var long = webRemoteWin.document.getElementById('long')
+ if(long.checked){
+ doRequest(URL.remotecontrol+'?command='+command+'&type=long', incomingRemoteControlResult, false);
+ long.checked = undefined;
+ } else {
+ doRequest(URL.remotecontrol+'?command='+command, incomingRemoteControlResult, false);
+ }
+
if(webRemoteWin.document.getElementById('getScreen').checked) {
if(webRemoteWin.document.getElementById('getVideo').checked){
getScreenShot();
<center>
Get a Screenshoot <input type="checkbox" id="getScreen" name="getScreen" checked><br>
Grab Picture & OSD <input type="checkbox" id="getVideo" name="getVideo"><br>
+ Send "long" Keypress <input type="checkbox" id="long" name="long" /><br>
</center>
<br>
<!--<center><input type="checkbox" id="getScreen" name="getScreen" checked> Show Screenshot</center><br>-->
<center>
Get a Screenshoot <input type="checkbox" id="getScreen" name="getScreen" checked><br>
Grab Picture & OSD <input type="checkbox" id="getVideo" name="getVideo"><br>
+ Send "long" Keypress <input type="checkbox" id="long" name="long" /><br>
</center>
<br>
<!--<center><input type="checkbox" id="getScreen" name="getScreen" checked> Show Screenshot</center><br>-->