Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Tk Program Converted to Executable Requires 2 ENTERs to Run -- pp packed

by roho (Bishop)
on May 25, 2021 at 01:53 UTC ( [id://11132999]=note: print w/replies, xml ) Need Help??


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

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."

  • Comment on Re^2: Tk Program Converted to Executable Requires 2 ENTERs to Run -- pp packed

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11132999]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-25 14:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found