Saturday, September 17, 2011

RDP Window Settings

Example from an RDP File:
desktopwidth:i:1280
desktopheight:i:768
screen mode id:i:1
winposstr:s:0,1,170,80,1510,900

Setting: screen mode id:i:value
value is an integer with the following possible values
1 = Start the Remote Desktop Client in windowed mode.
2 = Start the Remote Desktop Client in full-screen mode.

Setting: winposstr:s:0,ShowCmd,Left,Top,Right,Bottom
where the values (0,ShowCmd,Left,Top,Right,Bottom) are a set of comma-delimited strings.

The first field is always set to 0.

The ShowCmd field can be set to one of the following two values:
1 = Displays the windows as relative coordinates specified bt the Left, Top, Right and Bottom fields.
3 = Displays the window as maximized.

The values Left,Top,Right,Bottom control the position of the window edges on the screen. So, for example, on a 1680 x 1050 resolution screen the setting string 0,1,170,80,1510,900 would open a roughly-centered window 1280 x 768 RDP window with no scrolling bars. To get the values subtract the virtual desktop size AND window border dimensions from the full screen height, which will vary based on the OS. If you do the exact desktop dimensions your window won't be full size and will have to be scrolled. You can cheat and just guess a wider right side and bottom position and everything will work fine.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.