User Control Panel
Advertisements

HELP US, HELP YOU!

Open Programs

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Perl
View unanswered posts
Author Message
kings_on_steeds
Senior Member
Senior Member


Joined: 05 Apr 2004
Posts: 290
Location: Bookham, Surrey, UK
Reputation: 35.1Reputation: 35.1Reputation: 35.1Reputation: 35.1

PostPosted: Mon Mar 21, 2005 3:06 pm    Post subject: Reply with quote

Hi, Is there a way for perl to see if a program, say msn, is open and if it is set a varibul, this would realy help

also how do i add 1 to a varibul after a loop.

if you can help i will love you for ever thanks guys!
Back to top
Cer
Upgraded Agent
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Mon Mar 21, 2005 8:01 pm    Post subject: Reply with quote

To see if MSN is open, you could use Win32::API (though I have no idea how to use that module. Probably Matt Austin could help you there). You might be able to get a list of process IDs and see if msnmsgr.exe is running.

But for your other question, how to add 1 to a variable after a loop:

Code:
my $variable = 0; # just some starting number<br />while (1) {<br />   $variable++; # add one<br /><br />   # Maybe do something after 500 loops?<br />   if ($variable == 500) {<br />      print "\aThe 500th loop has been reached!\n";<br />   }<br />}

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
kings_on_steeds
Senior Member
Senior Member


Joined: 05 Apr 2004
Posts: 290
Location: Bookham, Surrey, UK
Reputation: 35.1Reputation: 35.1Reputation: 35.1Reputation: 35.1

PostPosted: Mon Mar 21, 2005 8:38 pm    Post subject: Reply with quote

thanks cer!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Perl All times are GMT
Page 1 of 1

 



Protected by phpBB Security phpBB-TweakS
phpBB Security Has Blocked 9 Exploit Attempts.
Antispam Captcha Mod by phpbb-security.com
Powered by phpBB © 2001, 2005 phpBB Group