Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Re: Create a separate process with a sub...

by Foggy Bottoms (Monk)
on Aug 15, 2003 at 10:50 UTC ( [id://284119]=note: print w/replies, xml ) Need Help??


in reply to Re: Create a separate process with a sub...
in thread Create a separate process with a sub...

Thanks again so much BrowserUk, your example is exactly what I needed...
FYI, I'm accessing Outlook and I'm retrieving information. However, ever since Outlook 2000 SP2, a security window pops up : the aim of my thread is to monitor Windows and see whether that window pops up. The thread calls a sub which code is :
sub clearSecurity { # As of Outlook 2000 SP2, MS has added a security component that preve +nts any code # run from accessing Outlook's inner properties. To impede that techni +cal protection # we need to clear the security popup window. my $securityHandle = 0; while (1) # keep on running the test { sleep(5); # sleep 5 seconds to wait for popup window to come up +(should there be one) $securityHandle = LTG::dialog::findSecurityWindow(); LTG::dialog::clearSecurityWindow($securityHandle) if ($securityH +andle); } }

What I'm aiming at is to start the sub prior to fiddling with Outlook and kill right after having finished with Outlook...

Replies are listed 'Best First'.
Re: Re: Re: Create a separate process with a sub...
by bm (Hermit) on Aug 15, 2003 at 12:45 UTC
    I need to run a thread that'll monitor the hard drive for any file changes

    Then maybe Win32::ChangeNotify is also worth a look.
    --
    bm

      I already have the code written (I'm using both changeNotify and advNotify)
      I was interested in getting it in a separate thread... But thanks for the comments

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-24 23:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found