Thread.Sleep(10 * 1000)
rocketscience! :cooleyes:
Hello all... I've been thinking how to delay dll's injection and then automatically injecting dll's after a specified executable run about 10 minutes in a future... Is there someone have a clues about it... I do very new in vb's... Thank for all attentions an long live mpgh.net...
Thread.Sleep(10 * 1000)
rocketscience! :cooleyes:
hack2learn (05-21-2011)
[highlight="VB.Net"]System.Threading.Thread.Sleep(1000) 'wait 1 second[/highlight]
hack2learn (05-21-2011)
No, both of the above posters are wrong. You do it like this:
First Import System.Threading.Thread namespace:
[highlight=vbnet]Imports System.Threading.Thread[/highlight]
Then you call the method like this:
[highlight=vbnet]Dim Minutes As Integer=((60*1000)*10)
Sleep(Minutes)
Msgbox("You mad ?")
[/highlight]
Thank very much Hassan... I'll try that... but i have another question for you, what is "Msgbox("You mad ?")" for?...
Last edited by hack2learn; 05-21-2011 at 08:23 AM.
No, you're wrong :3
System.Threading.Thread is not a namespace - it is a class.
And this, is the correct way to do it:
[highlight=vbnet]
Imports Boogas = System.Theading.Thread
Dim A As Integer = 1
Dim B As Integer = B * 10
Dim C As Integer = C * 10
Dim D As Integer = D * 10
Dim E As Integer = E * 30
Dim F As Integer = F * 2
Dim G As Integer = G * 10
Boogas.Sleep(G)
Msgbox("Y" + "o" + "u" + " " + "m" + "a" + "d" + "?")
[/highlight]
[MPGH]master131 (05-21-2011)