Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Restarting a Perl script on Windows 10

by stevieb (Canon)
on Sep 20, 2019 at 17:02 UTC ( [id://11106446]=note: print w/replies, xml ) Need Help??


in reply to Restarting a Perl script on Windows 10

I did a little testing of my own here... what I found is that I experience the whole Tk window disappears until I hit Enter if I start the application from the CLI window directly.

If I double-click on the script within the UI, the Tk window re-appears properly without having to hit enter.

I've got to run so I can't test further right now, but I do know that win10 had some new registry settings added related to the cmd.exe program, so that might be worth having a look at. I'm absolutely unsure about this, but if it is a registry setting, you may even be able to have your script modify it on the fly using Win32::Registry (my experiences with Windows is that changing anything requires reloading whatever you're trying to modify though).

Replies are listed 'Best First'.
Re^2: Restarting a Perl script on Windows 10
by petro4213 (Acolyte) on Sep 23, 2019 at 08:28 UTC
    Same for me: If I start it by a double click in the UI, I can restart it over and over without having to press Enter.

    That's at least a workaround, because I usually have to specify command line options. But if I put them in a batch file, restarting still works, if I double-click the batch file.

    Thanks a lot.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-19 21:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found