Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Monks, I have a simple Win32::GUI app that runs in the system tray, checking on some of our servers and changing colour when things go wrong. All well and groovey. However, in addition to this, I'd like the users to be able click the system tray icon and have their browser launch directing them to our support site. I can do this as follows...
sub NI_Click { `"C:\\PATH\\IEXPLORE.EXE" http://ourserver`; # please ignore th +e hardcoded path }
This launches IE just fine, but the systray app is then blocked until they close IE, which is bad. So I tried...
sub NI_Click { my $pid = fork(); if ($pid == 0) { `"C:\\PATH\\IEXPLORE.EXE" http://ourserver`; # please ignor +e the hardcoded path exit(); } }
Which is better in that IE starts up, and the systray app is still functioning, but has the significant draw back that the systray app crashes when you close the instance of IE that was loaded (Command line interpreter error)

I've don't really do windows gui stuff, so have no idea how to persue this. Have any monks got an pointers?

Thanks in advance, Rob

---
my name's not Keith, and I'm not reasonable.

In reply to Trouble with Win32::GUI app spawning child processes by reasonablekeith

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-16 06:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found