Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by Discipulus (Canon)
on May 24, 2021 at 19:00 UTC ( [id://11132985]=note: print w/replies, xml ) Need Help??


in reply to Tk Program Converted to Executable Requires 2 ENTERs to Run

Hello roho,

glad someone recognized how much cool my oneliner was... :)

Seriously: I dont think here around there is much experience with perl2exe but I just packed your version (after resetting $mw_left and $mw_top to 0 ) using pp -o tkclock.exe tkppclock.pl

I cannot notice any weird behaviour using start /b tkclock.exe nor by doubleclickind the executable.

Can you please try to use PAR::Packer pp program to see if the resulting executable behaves normally? Can you reduce your original program to the smallest minimum code that reproduce the problem you are facing?

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Replies are listed 'Best First'.
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
    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."

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-04-16 17:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found