Hello Discipulus. I agree your clock is far better. I ran pp, but the resulting executable still requires pressing ENTER twice to run. Double-clicking works fine (for that matter, double-clicking on my perl2exe executable also works fine). I am not aware of anything unusual about the Windows 10 cmd.exe on my system. This is sure a head scratcher.

Meanwhile, I have added the executable to the registry "Run" key so the clock comes up automatically when windows is restarted. BTW, the reason I set $mw_left so high is so it will display on the right monitor (more out of the way).

I discovered that adding the executable in the "Run" key as "cmd.exe /c start /min C:\~Zipfile\B\Bat\Clock-Tk.exe" starts the program minimized, so it's cmd window is not displayed on the desktop (much cleaner).

As for the double ENTER, I will keep searching. The program as it stands is pretty much the smallest minimum code that reproduces the problem.

"It's not how hard you work, it's how much you get done."


In reply to Re^2: Tk Program Converted to Executable Requires 2 ENTERs to Run -- pp packed by roho
in thread Tk Program Converted to Executable Requires 2 ENTERs to Run by roho

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.