Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: pp hide gui system call

by IB2017 (Pilgrim)
on Aug 25, 2018 at 07:51 UTC ( [id://1221076]=note: print w/replies, xml ) Need Help??


in reply to Re: pp hide gui system call
in thread pp hide gui system call

Hi

The post you pointed at has to to with packaging your own Perl script into an executable and hide the console. This is not my problem as it is already working fine. From my no-GUI executable (packed with pp) I start other third-party executables (that I can not manipolate/compile/modify them). When they run, however, they open the console to perform their task. BUT: if I pack my own executable with PerlApp, if this executable starts the same third parties executable, NO console is shown. This is what I am trying to achieve with the same application packed with pp.

I hope it is more clear now.

Replies are listed 'Best First'.
Re^3: pp hide gui system call
by marto (Cardinal) on Aug 25, 2018 at 17:37 UTC

    Interesting, can you show how you package a bare minimum test case which replicates what you are seeing with the perlapp build? I'd be interested in seeing a packaged (via perlapp) version of the minimal example, perhaps it's something that can be replicated in another tool.

      Hi Marto

      I do not have PerlApp anymore to create an executable. When I used to, this feature (which was not to be set explicitly anywhere) just worked. Actually we never thought about it and gave it for granted. Now that I work on my own and faced the same situation, I noticed that pp does not work the same.

Re^3: pp hide gui system call
by beech (Parson) on Aug 25, 2018 at 19:21 UTC

    The post you pointed at has to to with packaging your own Perl script into an executable and hide the console.

    Hi

    Thats the top of the post, the replies section on the other hand ;)

      Yes, you were right! As a temporary solution I reverted to use one of the suggestions in the replies (using Win32::Exe to modify the third party executables. It works fine, however I would be more at easy if I could replicate what PerlApp did: suppress all consoles even for third party exe launched by the application created by PerlApp.

        Yes, you were right!... however ...

        Hi

        Why stop reading before the answer?

        Here you go

        BEGIN { Win32::SetChildShowWindow( 0 ) if defined &Win32::SetChildShowWind +ow; }

        Maybe you could update the relevant documentation, or provide a patch for the functionality you want.

Re^3: pp hide gui system call
by FreeBeerReekingMonk (Deacon) on Aug 25, 2018 at 16:21 UTC
    Why not try a more Windows-eske vbs solution?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-03-28 20:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found