Re: Handling "Press any key to continue..."?



quote from class Process documentation (1.5 doc)
"The methods that create processes may not work well for special
processes on certain native platforms, such as native windowing
processes, daemon processes, Win16/DOS processes on Microsoft Windows,
or shell scripts."

A good example is a windows '.bat' file with only "pause" as a command.
The InputStream only shows the "pause" command echoed by the process,
but not the "Press any Key" statement.

If the "press any key" thing is at the end of the program it might just
be best to ignore it and call Process.destroy(). If pressing a key is
truly necessary "to continue..." then that won't be any help.

Good luck.
Remi Arntzen

.



Relevant Pages

  • Re: how to find process id for terminating the app
    ... Runtime.getRuntime.exec; on windows platform ... I don't think Java supports getting something as platform specific as ... ya i tried that destroy method but it doesnt work. ... special processes on certain native platforms, ...
    (comp.lang.java.programmer)
  • Re: Live TV probelm - freezes when i pause
    ... When you press Pause then Fast Forward, LiveTV doesn't Fast Forward as ... In fact, LiveTV freezes, and the only way you can resolve the ... Windows XP / Windows Media Center Edition ...
    (microsoft.public.windows.mediacenter)
  • Re: pcAnywhere on WinXP: pause key
    ... that Pause is trapped by the OS and isn't sent over PC Aywhere... ... Jeffrey Randow (Windows Networking MVP) ... >machine is not transfered to the host machine's application. ...
    (microsoft.public.windowsxp.work_remotely)
  • Need better way to input from keyboard
    ... This is under an MS Windows ... That pause ... AND to the right if the up arrow and right arrow are pressed and held ... Smalltalk way to set up keyboard input, ...
    (comp.lang.smalltalk)
  • Re: SrcCheck.exe
    ... message box was when it crashed, and Windows ... SrcCheck is a program that is designed to pause the build and warn you ... before you build private source code to make sure you really want to do that ... Once in a while, during compilation, the process SrcCheck.exe hangs. ...
    (microsoft.public.windowsce.platbuilder)