Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 02:23

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[C#][Waiting for Process]

Discussion on [C#][Waiting for Process] within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2010
Posts: 514
Received Thanks: 65
[C#][Waiting for Process]

Hi guys ! Can anyone give me code that wait for process ? I need this
szymek111 is offline  
Old 05/15/2013, 16:27   #2


 
elite*gold: 0
Join Date: Feb 2010
Posts: 7,221
Received Thanks: 6,758
Timer -> check processlist
#SoNiice is offline  
Old 05/15/2013, 17:09   #3
 
elite*gold: 100
Join Date: Aug 2005
Posts: 595
Received Thanks: 208
Or incase you want todo something when the process starts, spawn him yourself
dready is offline  
Old 05/17/2013, 07:38   #4
 
elite*gold: 0
Join Date: Sep 2006
Posts: 70
Received Thanks: 6
using something suchas this could work for ya
Code:
using System.Diagnostics;
            var pName = "League of Legends";
            bool isRunning = false;

            Console.Write("Waiting for " + pName + " to launch...");
            while (!isRunning)
            {
                foreach (Process clsProcess in Process.GetProcesses())
                {
                    if (clsProcess.ProcessName == "Chrome")
                    {
                        isRunning = true;
                    }
                }
                Thread.Sleep(1000);
            }
redskull010101 is offline  
Old 05/17/2013, 11:32   #5


 
elite*gold: 0
Join Date: Feb 2010
Posts: 7,221
Received Thanks: 6,758
That's a better performance at waiting for processes.
#SoNiice is offline  
Old 05/17/2013, 12:14   #6



 
Shawak's Avatar
 
elite*gold: 0
The Black Market: 259/0/0
Join Date: Apr 2010
Posts: 10,291
Received Thanks: 3,611
Shorter version:

Code:
using System.Diagnostics;

            var pName = "League of Legends";
            Console.Write("Waiting for " + pName + " to launch...");
            while (Process.GetProcessesByName(pName).Length=0)
            {
                Thread.Sleep(100);
            }
Shawak is offline  
Reply


Similar Threads Similar Threads
DayZ Process killer (anti 30seconds waiting)
03/03/2013 - DayZ - 17 Replies
Hello guys. As I was bored I had the idea to do a program, that kills the arma2oa.exe with hotkeys fast so you can escape to zombies and they can't hit you. More informations you can see in the program. Enjoy! YOU DONT HAVE TO MINIMIZE THE GAME NOW BEFORE. YOU CAN CHOOSE YOUR HOTKEY. TAB, SPACE or INSERT Key Licensekey: XHJWZ-AHQGW-IJKLM-O574P-AS45P
Visual Basic 2010-Waiting for Process Label
05/30/2011 - .NET Languages - 6 Replies
#closed
Mit Process Explorer /Process Hacker Hs umgehen
05/22/2010 - General Gaming Discussion - 1 Replies
Ich habe hier im Forum gelesen, das man mit Process Explorer bzw. Process Hacker das HS umgehen kann. Leider ist mir irgendwie schleierhaft wie das gehen soll. Vllt erbarmt sich jemand und erklärt es (:, da man den sogenannten Bypasser nur noch las Premium Dings Da bei Upload.to runterladen kann :rolleyes:
[FRIENDLY WAITING ROOM]Cheat Engine waiting updates here..
07/06/2009 - Grand Chase - 49 Replies
Since,many of us are really craving for teh updated MLE or other Engine. I would like to create this thread to fix and clean this GC Area section..As we could see..Many threads are being revived and some are fake threads.. At this thread..We all are working as one.I promise..If i got and hunt the new engine i'll be updating this thread soon..This thread will be permanent in case of losing Engine again. TAKE NOTE: We are all taking this engines for granted. We are enjoying games because of...



All times are GMT +2. The time now is 02:23.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.