Hi Walter,
So I'm hacking apart your rdp.html file to take advantage of all of the new code, but I'm running into an issue...
I'm attempting to this as "raw" as possible, so here's my function:
function connectRDP() {
var gw = "GATEWAY"
var s = "SERVER";
var u = "USER";
var pw = "PASSWORD!";
var d = "DOMAIN";
var p = 3389;
var c = "C:\\Apps\\outlook.bat";
var w = window.innerWidth;
var h = window.innerHeight
var b = 16;
var protocol = ("https:" == location.protocol) ? "wss://" : "ws://";
var connection = protocol
+ gw
+ "/RDP?"
+ "server=" + s
+ "&port=" + p
+ "&user=" + u
+ "&pwd=" + pw
+ "&domain=" + d
+ "&keyboard=1033"
+ "&timezone=(GMT-05%3A00)%20Eastern%20Standard%20Time"
+ "&playSound=0"
+ "&mapClipboard=on"
+ "&startProgram=shell"
+ "&command=" + c
+ "&width=" + w
+ "&height=" + h
+ "&server_bpp=" + b
+ "&audio=true"
+ "&tzOffset=240"
+ "&time=1334250494447"
+ "&binary=on";
var r = svManager.getInstance();
if (r == null) {
r = new svGlobal.Rdp(connection);
}
r.onclose = function(){
r.hide();
};
r.addSurface(new svGlobal.LocalInterface());
r.onerror = function(e){
console.log(
e.name + ":" + e.message);
};
r.run();
return false;
};
Seems legit?
Well, when I go to connect, it disconnects instantly...
opened...
rdp_min.js:128closed, code=1006 reason=
And this is the connection string it's using:
As you can see, as highlighted, width, height, and server_bpp are being injected / appended and I have no idea why?!
I assume that's the reason it's failing to connect.
Thanks!