Apologies for the off-topic post, but I asked this question at StackOverflow and, other than a mysterious drive-by downvote, I have had no response.

I'm hoping someone here, with an eye toward automation in any environment where Perl runs, might have bumped into this and knows how to work around it.

I'm trying to launch Remote Desktop in a way that permits my local keyboard-driven macros to manipulate the window without having to first reach for the mouse and click on the "Restore Down" button.

I've tried a few variants of the command line invocation (both from Perl and from the actual command line) and I just can't seem to get it to launch in the mode I want without creating an RDP file. If that's the answer I have to have, then so be it, but I was hoping for one less layer of kludgeness here.

My basic invocation technique is:

mstsc /v:%SFS_FNDKEY% /w:1024 /h:768

Adding the /fparameter forces it to occupy the full screen, as expected, but leaving the /foff leaves it in this odd hybrid state; it does not take up the full screen, but considers itself to be in full-screen mode, complete with the "Restore Down" button which needs to be clicked before my local keyboard-driven macros can assume control of the window.

Any cluebats out there? I know it's likely a fairly odd request, since most people want full-screen mode, but being different is nothing new over here. : -)


In reply to OT: Windows Non-Full-Screen Remote Desktop by marinersk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.