AutoHotkey Community

It is currently May 27th, 2012, 12:00 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: November 23rd, 2010, 12:01 am 
Offline

Joined: November 9th, 2009, 4:24 pm
Posts: 94
Is there any way to do a loop instance, if a specific process doesn't exist, run notepad.exe
so, the loop will always searching if a specific process exist or not. :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 23rd, 2010, 12:30 am 
Offline

Joined: June 7th, 2010, 3:40 pm
Posts: 553
Loop
{
Process,Exist,Notepad.exe
If !Errorlevel
Run,Notepad.exe
sleep,1000 ;1 second so you don't spam the CPU with checks
}


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 23rd, 2010, 1:34 am 
Offline

Joined: November 9th, 2009, 4:24 pm
Posts: 94
I see, but for example if I want to manage 3 process at same time: explorer.exe, calc.exe and rededit.exe
if none of those process EXIST, run notepad.exe, otherwise if someone of those exist, run cmd.exe

all this in a loop instance. :shock:


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, Google Feedfetcher, Yahoo [Bot] and 18 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group