Register for your free account! | Forgot your password?

You last visited: Today at 02:04

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

Advertisement



Process wait

Discussion on Process wait within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
EasyForEver's Avatar
 
elite*gold: 0
Join Date: Oct 2012
Posts: 136
Received Thanks: 18
Process wait

any one know code process wait by name can add it in ConsoleApplication ?
EasyForEver is offline  
Old 10/23/2012, 18:30   #2
 
elite*gold: 0
Join Date: Jul 2012
Posts: 284
Received Thanks: 127
Threading.Thread.Sleep(time in milliseconds)
3Angle is offline  
Old 10/23/2012, 19:18   #3
 
elite*gold: 0
Join Date: Jan 2010
Posts: 250
Received Thanks: 21
Hm do you mean
?
bammes is offline  
Old 10/23/2012, 19:22   #4
 
elite*gold: 0
Join Date: Oct 2012
Posts: 130
Received Thanks: 13
Yes i think he mean this
Tiion♥ is offline  
Old 10/23/2012, 19:30   #5
 
EasyForEver's Avatar
 
elite*gold: 0
Join Date: Oct 2012
Posts: 136
Received Thanks: 18
Quote:
Originally Posted by bammes View Post
Hm do you mean
?
yes i maen this but i need this code

no one know ?
EasyForEver is offline  
Old 10/27/2012, 09:24   #6
 
elite*gold: 0
Join Date: Jul 2012
Posts: 284
Received Thanks: 127
You must be a beginner without any knowegde... That is the function code!
3Angle is offline  
Old 10/27/2012, 12:56   #7
 
elite*gold: 14
The Black Market: 108/0/1
Join Date: May 2011
Posts: 2,671
Received Thanks: 818
Do you mean "Wait" that the console doesn't close automatically?
If yes, try Console.ReadLine().
vwap is offline  
Old 10/27/2012, 13:25   #8
 
elite*gold: 0
Join Date: Jan 2010
Posts: 250
Received Thanks: 21
Quote:
Originally Posted by EasyForEver View Post
yes i maen this but i need this code

no one know ?


erstes Ergebnis -_-
bammes is offline  
Old 10/28/2012, 02:42   #9
 
coladose's Avatar
 
elite*gold: 106
Join Date: Jun 2010
Posts: 2,256
Received Thanks: 3,866
If you mean like waiting for a process to start do it like this:

PHP Code:
 Public Function ProcessWait(ByVal ProcName As String) As Boolean
        Process
.EnterDebugMode()
        
Dim time As Integer 50
        
If ProcName "" Or ProcName.Contains(".exe") = True Then
            
Return -1
            
Exit Function

        Else

            Do 
Until Process.GetProcessesByName(ProcName).Length 0

                SLeep
(time)

            
Loop
            
Return True
            
Exit Function
        
End If

    
End Function

Public 
Sub SLeep(ByVal Time As Integer)
        
Dim Start As Date DateTime.Now()

        Do 
Until DateDiff(DateInterval.SecondStartNow) > Time 1000
            System
.Threading.Thread.Sleep(10)
        
Loop

    End Sub

'#################################
'
Your code would be like this
'#################################

Dim ProcName As String = String.Empty
ProcName = "calc"

Do Until ProcessWait(ProcName) = True
Sleep(50)
Loop

MsgBox("Process: " & ProcName & ".exe found!")

..... 
coladose is offline  
Reply


Similar Threads Similar Threads
Wait? Yes Or No?
07/16/2012 - Need for Speed World - 15 Replies
Hi guys, im on lvl 28, i want to buy a t3 igc car im on 720,457 Which car shud i car? shud i get ford or corvette at lvl 35 or shud i wait for evora lvl 40 (i think) i want the car stats gud i think ford has a gud stats
Wait or not?
07/14/2012 - Need for Speed World - 8 Replies
If you remember those 2x free purchase items codes, well, I redeemed one and I bought a car, and now I have 1 free purchase so, should I wait for T4 cars, or buy a M1 Procar/GTS/911 GT2 ? PS: I already have a 911 GT3 RS with 3 ultra parts(my T3 king).
All Hack don't work. We must wait, Just wait
04/16/2011 - CrossFire Hacks, Bots, Cheats & Exploits - 3 Replies
All Hack don't work. We must wait, Just wait but its nothing xD Big FAKE !!!!!
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:
C# how to pause a process/freeze process
12/08/2008 - CO2 Programming - 2 Replies
ya so i was semi bored and after little bit of looking around i didnt find to many examples of how to do this so attached is a demo project to show you how. basically it comes down to calling ResumeThread() and SuspendThread() (API functions) on all the threads of a process...simple enough http://img388.imageshack.us/img388/9762/exampleil 6.png please note when you enter the process name there's no ".exe" to the end Warning: this isn't idiot proof . .



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


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.