Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make IPC::System::Simple respect Win32::SetChildShowWindow #19

Open
mrudat opened this issue Apr 14, 2016 · 0 comments
Open

Make IPC::System::Simple respect Win32::SetChildShowWindow #19

mrudat opened this issue Apr 14, 2016 · 0 comments
Labels

Comments

@mrudat
Copy link

mrudat commented Apr 14, 2016

Hi, it would be nice if IPC::System::Simple could be enhanced to respect Win32::SetChildShowWindow.

Specifically, the following should have the same behaviour (excepting error handling):

#!wperl
use Win32;
Win32::SetChildShowWindow(0);
system("some command and args");
#!wperl
use Win32;
use IPC::System::Simple qw(system);
Win32::SetChildShowWindow(0);
system("some command and args");

At the moment, on Win32, when run with wperl, the former works as expected, while the latter (at least with perl v5.22) creates a new console window to run the command. When run with regular perl, the behaviour is identical, perl opens a new console window, and whatever output the command has appears in that window.

From a little investigation, Win32::Process would need to be extended in some manner in order to pass in whatever flag causes CORE::system to hide the console window, and Win32::SetChildShowWindow would possibly need a matching Win32::GetChildShowWindow to be able to read back the current setting..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants