From: Robert R. <ro...@fr...> - 2005-12-07 11:49:34
|
Hi, I'm still thinking and working on possibilites to interface Audrey to Misterhouse/Plutohome combo I have on my computer... Since Pluto has nice touchscreen oriented gui, I would like to get it to work somehow with Audrey... In MrAudrey's forum there is a recent discussion about possibilities to compile Pluto's Orbiter (remote control) application that is designed for touchscreens... But recently another interesting option emerged. Pluto guys added web interface, that is basically interactive image same as on Orbiter applications (you can find screenshots at http://plutohome.com/index.php?section=learn_how_to_use_it ). It works nicely (it will be worked on further), it also displays on Audrey, but touching any area doesn't do nothing... I guess this is Audrey limitation and I would kindly ask experienced Audrey guys, if you can take a look at web page source and estimate what would have to be done to work on Audrey also. Maybe Pluto guys will listen to those propositions cause there are many other devices with limitations... I'd kindly ask for any opinion too.... IMHO my MH and Pluto combination is getting better every day..... Thanks in advance, regards, Rob. Page source: ----------------------------------- <html> <head> <META HTTP-EQUIV=Refresh CONTENT="30; URL=weborbiter.php?userID=34795&pass=b9dd15de8188fdf5c8fb78267c667777&installationID=260&deviceID=6803&command=IMAGE"> <script> touch_disabled=1; function sendKey(event){ if (event.which){ key_code=event.which; }else if(event.keyCode){ key_code=event.keyCode; } if(key_code>58){ key_code+=32; } switch(key_code){ case 85: command_to_send=1; break; case 68: command_to_send=2; break; case 76: command_to_send=3; break; case 82: command_to_send=4; break; case 69: command_to_send=5; break; case 49: command_to_send=16; break; case 50: command_to_send=17; break; case 51: command_to_send=18; break; case 52: command_to_send=19; break; case 53: command_to_send=20; break; case 54: command_to_send=21; break; case 55: command_to_send=22; break; case 56: command_to_send=23; break; case 57: command_to_send=24; break; case 48: command_to_send=25; break; case 97: command_to_send=113; break; case 98: command_to_send=114; break; case 99: command_to_send=115; break; case 100: command_to_send=116; break; case 101: command_to_send=117; break; case 102: command_to_send=118; break; case 103: command_to_send=119; break; case 104: command_to_send=120; break; case 105: command_to_send=121; break; case 106: command_to_send=122; break; case 107: command_to_send=123; break; case 108: command_to_send=124; break; case 109: command_to_send=125; break; case 110: command_to_send=126; break; case 111: command_to_send=127; break; case 112: command_to_send=128; break; case 113: command_to_send=129; break; case 114: command_to_send=130; break; case 115: command_to_send=131; break; case 116: command_to_send=132; break; case 117: command_to_send=133; break; case 118: command_to_send=134; break; case 119: command_to_send=135; break; case 120: command_to_send=136; break; case 121: command_to_send=137; break; case 122: command_to_send=138; break; case 38: command_to_send=1; break; case 40: command_to_send=2; break; case 37: command_to_send=3; break; case 39: command_to_send=4; break; case 13: command_to_send=5; break; default: command_to_send=0; break } if(command_to_send!=0){ self.location="weborbiter.php?userID=34795&pass=b9dd15de8188fdf5c8fb78267c667777&installationID=260&deviceID=6803&command=PLUTO_KEY "+command_to_send; } } </script> <title>Pluto Web device</title> <head> <body onLoad="touch_disabled=0;" ONKEYDOWN="sendKey(event);"> <script src="scripts/connectionWizard/connectionWizard.js" type="text/javascript" language="JavaScript"></script> <script> function findPosX(obj) { var curleft = 0; if (obj.offsetParent) { while (obj.offsetParent) { curleft += obj.offsetLeft obj = obj.offsetParent; } } else if (obj.x) curleft += obj.x; return curleft; } function findPosY(obj) { var curtop = 0; if (obj.offsetParent) { while (obj.offsetParent) { curtop += obj.offsetTop obj = obj.offsetParent; } } else if (obj.y) curtop += obj.y; return curtop; } function sendTouch() { if(touch_disabled==0){ xRelative=xMousePos-findPosX(document.getElementById("screen")); yRelative=yMousePos-findPosY(document.getElementById("screen")); self.location="weborbiter.php?userID=34795&pass=b9dd15de8188fdf5c8fb78267c667777&installationID=260&deviceID=6803&command=TOUCH "+xRelative+"x"+yRelative; } } </script><img id="screen" src="include/image.php?imagepath=/var/www/pluto-admin/security_images/orbiter_screen.png&randno=17350" onClick="sendTouch();"><br> <input type="button" class="button" name="go" value="Home" onClick="self.location='weborbiter.php?userID=34795&pass=b9dd15de8188fdf5c8fb78267c667777&installationID=260&deviceID=6803&command=PLUTO_KEY 10';"> <input type="button" class="button" name="go" value="Back" onClick="self.location='weborbiter.php?userID=34795&pass=b9dd15de8188fdf5c8fb78267c667777&installationID=260&deviceID=6803&command=PLUTO_KEY 11';"> <input type="button" class="button" name="go" value="Refresh" onClick="self.location='weborbiter.php?userID=34795&pass=b9dd15de8188fdf5c8fb78267c667777&installationID=260&deviceID=6803&command=IMAGE';"> <input type="button" class="button" name="go" value="Exit" onClick="self.close();"> </body> </html> |