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 › close program

close program

Posts 1–12 of 12 · Page 1 of 1
MO
mopo
close program
hi,

sorry for my bad english.

ich want to make a program which close any programm mit an button and hokey.

what is the correct code for close a program?

mopo
#1 · 18y ago
W0
w00t?
To close application is

Code:
End
#2 · 18y ago
ZeaS
ZeaS
hotkey
(if getkeypress(vbkeyA) then
end
end sub
#3 · 18y ago
MO
mopo
thx,

but i want to close a program like warrock or media player.

not the hack.

mopo
#4 · 18y ago
W0
w00t?
Then use

Shell("TASKKILL /F /IM "PnkBstrA.exe")
#5 · 18y ago
MO
mopo
sorry,

i dont understand.can you post the code plz.

mopo
#6 · 18y ago
WR
wr194t
Quote Originally Posted by mopo View Post
sorry,

i dont understand.can you post the code plz.

mopo
He just did. If you want it in a hotkey it would be like this:

Code:
If GetKeyPress (vbKeyA) Then
Shell("TASKKILL /F /IM "PnkBstrA.exe")
End Sub
Replace PnkBstrA.exe with whatever the programs process is that you want to close.

WarRock:
Code:
Shell("TASKKILL /F /IM "Warrock.exe")
WMP (Windows Media Player):
Code:
Shell("TASKKILL /F /IM "wmplayer.exe")
#7 · 18y ago
MO
mopo
i get an error.

"syntaxfehler"

mopo
#8 · 18y ago
W0
w00t?
Yo, u must declare if get keypress...

Public Declare Function GetkeyPress Lib "user32" Alias "GetAsyncKeyState" (ByVal key As Long) As Integer
#9 · 18y ago
MO
mopo
oh sorry,

i forgot.

ty
#10 · 18y ago
MO
mopo
hmm,

new error:

erwartet listentrennzeichen oder )

must i write the code in a butoon or in a timer?

mopo
#11 · 18y ago
OL
olie122333
Quote Originally Posted by w00t? View Post
Then use

Shell("TASKKILL /F /IM "PnkBstrA.exe")
what this would do is end a process, defined here:
Shell("TASKKILL /F /IM "PnkBstrA.exe")

so change that to "WarRock.exe" (without the quotes as they are already there) then it would close War Rock
hmm,

new error:

erwartet listentrennzeichen oder )

must i write the code in a butoon or in a timer?

mopo
dont have any idea on that, though.
#12 · edited 18y ago · 18y ago
Posts 1–12 of 12 · Page 1 of 1

Post a Reply

Similar Threads

  • Smart Close Program - For ErrorsBy Obey in WarRock - International Hacks
    19Last post 17y ago
  • debugger and closing programsBy Dimedrol1536 in Piercing Blow Hack Coding/Source Code
    1Last post 15y ago
  • Code to close Program?By Katie_Perry in Visual Basic Programming
    11Last post 16y ago
  • [TuT]Preventing your Program from ClosingBy Iamazn in Visual Basic Programming
    4Last post 17y ago
  • [Help] How to close a program with a hotkey (VB6).By wr194t in Visual Basic Programming
    7Last post 18y ago

Tags for this Thread

None