Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Programming › Visual Basic Programming › [Help]Sleep/Pause[Solved]

Question[Help]Sleep/Pause[Solved]

Posts 1–12 of 12 · Page 1 of 1
jakobkorber
jakobkorber
[Help]Sleep/Pause[Solved]
whats the wait code in visual basic 2008? thanks >.<
#1 · 16y ago
Obama
Obama
How long are you trying to make it wait for?
#2 · 16y ago
Void
Void
Sleep() function in the kernel32 library. I think for VB you have to declare these things manually. After you've done this.

Sleep(milliseconds)
#3 · 16y ago
Obama
Obama
In vb 2008
the code to pause a thread is simply:
Threading.thread.pause(1000)
Where 1000 = milliseconds
#4 · 16y ago
zmansquared
zmansquared
Obama is right. thanks for helping
#5 · 16y ago
NextGen1
NextGen1
[php]
' To Sleep
System.Threading.Thread.Sleep (1000)
'To Pause
System.Threading.Thread.Pause (1000)

' Code uses Miliseconds
[/php]

Obama was demonstrating the power of google


:waits for OP' to accept answer:

#6 · 16y ago
Obama
Obama
Quote Originally Posted by NextGen1 View Post
[php]
' To Sleep
System.Threading.Thread.Sleep (1000)
'To Pause
System.Threading.Thread.Pause (1000)

' Code uses Miliseconds
[/php]

Obama was demonstrating the power of google


:waits for OP' to accept answer:

Lies, I knew that
#7 · 16y ago
Unkn0wn_h4cker
Unkn0wn_h4cker
Here =)

Code:
Private Declare Sub Sleep Lib "kernel32" _
 (ByVal dwMilliseconds As Long)

Public Sub Wait(Seconds As Single)

 Dim lMilliSeconds As Long
 lMilliSeconds = Seconds * 1000
 Sleep lMilliSeconds

End Sub
or

Use Call Delay(integer)

Code:
Sub Delay(dblSecs As Double)
Const OneSec As Double = 1# / (1440# * 60#)
Dim dblWaitTil As Date

dblWaitTil = Now + OneSec * dblSecs
Do Until Now > dblWaitTil
DoEvents ' Allow windows messages to be processed
Loop
#8 · edited 16y ago · 16y ago
NextGen1
NextGen1
Quote Originally Posted by Unkn0wn_h4cker View Post
Here =)

Code:
Private Declare Sub Sleep Lib "kernel32" _
 (ByVal dwMilliseconds As Long)

Public Sub Wait(Seconds As Single)

 Dim lMilliSeconds As Long
 lMilliSeconds = Seconds * 1000
 Sleep lMilliSeconds

End Sub
or

Use Call Delay(integer)

Code:
Sub Delay(dblSecs As Double)
Const OneSec As Double = 1# / (1440# * 60#)
Dim dblWaitTil As Date

dblWaitTil = Now + OneSec * dblSecs
Do Until Now > dblWaitTil
DoEvents ' Allow windows messages to be processed
Loop
Yay, Someone else who can use Google
#9 · 16y ago
Unkn0wn_h4cker
Unkn0wn_h4cker
Yup,suits the cause ^.^ I normally make a simple pause code and make a sub for it and call it when I need it,but I couldn't be bothered typing
#10 · 16y ago
MA
Matrix10
Hey on mine

system.threading.thread.sleep(1000) works

and

threading.thread.sleep(1000) work but

these don't work

system.threading.thread.pause(1000)

or

threading.thread.pause(1000)
#11 · 16y ago
NextGen1
NextGen1
it may be system.threading.thread.suspend

I'm going by memory, I don't use them often
#12 · 16y ago
Posts 1–12 of 12 · Page 1 of 1

Post a Reply

Similar Threads

  • [Help]Thread.Sleep alternative[Solved]By l4sth4ck3r in Visual Basic Programming
    21Last post 16y ago
  • Help me to solve this ? :#By josias008 in Combat Arms Help
    9Last post 15y ago
  • [Help]Custom GUI[Solved]By martijno0o0 in Visual Basic Programming
    1Last post 16y ago
  • [Help] Missing Tabs [Solved]By zmansquared in Visual Basic Programming
    18Last post 16y ago
  • [Help]ComboBox Selections[Solved]By ppl2pass in Visual Basic Programming
    5Last post 16y ago

Tags for this Thread

None