Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

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

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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 08: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
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.