jfroebe has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I have a script that I have that will wait for input then exit. When run from a command shell (cmd.exe), it waits fine. When I create a shortcut to the perl script, it runs but doesn't wait for input. Now, when I have the shortcut point to cmd.exe then execute the perl script, it waits perfectly. So, obviously Term::ReadKey requires some component with cmd.exe for the key notification. Does anyone know of a module that would wait for key input while running from a shortcut (without cmd.exe)?
use Term::ReadKey ReadMode('cbreak'); print " --- DONE ---\n"; my $char = ReadKey(0); ReadMode('normal')
ActiveState Perl 5.8.6
Jason L. Froebe
No one has seen what you have seen, and until that happens, we're all going to think that you're nuts. - Jack O'Neil, Stargate SG-1
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: WinXP, shortcut and waiting for user input (next steps)
by tye (Sage) on Jan 01, 2005 at 21:12 UTC | |
|
Re: WinXP, shortcut and waiting for user input
by NetWallah (Canon) on Jan 01, 2005 at 07:28 UTC | |
|
Re: WinXP, shortcut and waiting for user input
by Mr. Muskrat (Canon) on Jan 01, 2005 at 17:35 UTC | |
|
Re: WinXP, shortcut and waiting for user input
by dimar (Curate) on Jan 01, 2005 at 13:04 UTC |