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 › MultiPlayer Game Hacks & Cheats › Steam Games Hacks & Cheats › PLAYERUNKNOWN'S BATTLEGROUNDS (PUBG) Hacks & Cheats › Python hotkey script for powershell lag switch

Python hotkey script for powershell lag switch

Posts 1–8 of 8 · Page 1 of 1
XE
xekoxxx
Python hotkey script for powershell lag switch
Code:
import pythoncom, pyHook, winsound, os, sys

def hooking(event):
	if event.Key == 'F1':
		print "Working..."
		os.system("lagg.bat")
		winsound.Beep(1000,200)
		print "ON"
		return True
	if event.Key == 'F2':
		print "Working..."
		os.system("lagg1.bat")
		winsound.Beep(1000,200)
		print "OFF"
		return True
	if  event.Key == 'Escape':
		sys.exit()
	return True
# return True to pass the event to other handlers

# create a hook manager
hm = pyHook.HookManager()
# watch for all mouse events
hm.KeyDown = hooking
# set the hook
hm.HookKeyboard()
# wait forever
pythoncom.PumpMessages()
Requirements: Python 2.7, pyHook package (pip install pyhook)
You have to put lagg.bat and lagg1.bat in the same directory with your script. (lagg.bat is on, lagg1.bat is off, find it in Syruz's post)
Press F1 and F2 to run the bat files.
#1 · edited 9y ago · 9y ago
ffriozi
ffriozi
Warning after this script become public Battle Eye will be awere of it too...

If you get banned don't come here complain.

You have been warned.
#2 · 9y ago
BR
breakzz
Quote Originally Posted by xekoxxx View Post
Code:
import pythoncom, pyHook, winsound, os, sys

def hooking(event):
	if event.Key == 'F1':
		print "Working..."
		os.system("lagg.bat")
		winsound.Beep(1000,200)
		print "ON"
		return True
	if event.Key == 'F2':
		print "Working..."
		os.system("lagg1.bat")
		winsound.Beep(1000,200)
		print "OFF"
		return True
	if  event.Key == 'Escape':
		sys.exit()
	return True
# return True to pass the event to other handlers

# create a hook manager
hm = pyHook.HookManager()
# watch for all mouse events
hm.KeyDown = hooking
# set the hook
hm.HookKeyboard()
# wait forever
pythoncom.PumpMessages()
Requirements: Python 2.7, pyHook package (pip install pyhook)
You have to put lagg.bat and lagg1.bat in the same directory with your script. (lagg.bat is on, lagg1.bat is off)
Press F1 and F2 to run the bat files.
the term "hook" scares me real bad lol... can someone confirm this is safe? You are actually running executable file which can be detected by BattleEye isnt it?

How different is this from Syruz's .bat method? Need more explanation por favor
#3 · 9y ago
XE
xekoxxx
Quote Originally Posted by breakzz View Post
the term "hook" scares me real bad lol... can someone confirm this is safe? You are actually running executable file which can be detected by BattleEye isnt it?

How different is this from Syruz's .bat method? Need more explanation por favor
You can run it in python without compiling it. This is Syruz's method, i just add the hotkey for those who need.
Anyway i've used this since Syruz's 1st LS method without being banned. So, yeah...
#4 · edited 9y ago · 9y ago
BR
breakzz
Quote Originally Posted by xekoxxx View Post
You can run it in python without compiling it. This is Syruz's method, i just add the hotkey for those who need.
Anyway i've used this since Syruz's 1st LS method without being banned. So, yeah...
I assume this has same crash/net freeze issue then right?

Thanks!
#5 · 9y ago
XE
xekoxxx
Quote Originally Posted by breakzz View Post
I assume this has same crash/net freeze issue then right?

Thanks!
Yes. I just help people with the hotkey stufffs. But if you are using Mexor's VPN method, the script will also work!
#6 · edited 9y ago · 9y ago
BR
breakzz
Quote Originally Posted by xekoxxx View Post
Yes. I just help people with the hotkey stufffs. But if you are using Mexor's VPN method, the script will also work!
Thanks!
#7 · 9y ago
ffriozi
ffriozi
Quote Originally Posted by xekoxxx View Post
You can run it in python without compiling it. This is Syruz's method, i just add the hotkey for those who need.
Anyway i've used this since Syruz's 1st LS method without being banned. So, yeah...
Not the method of the lag switch.
i mean the code to call the .bat could be added to BE backlisted if they want to.

Even more so that he is now public.
#8 · 9y ago
Posts 1–8 of 8 · Page 1 of 1

Post a Reply

Similar Threads

  • LAG SWITCH !!! (Helps for escape mode)By frans003 in CrossFire Discussions
    4Last post 15y ago
  • Lag Switch for Playstaition 3 and xBox 360 BETABy iLove2Hack4U_YT in General Console Game Hacking
    6Last post 11y ago
  • Can I get banned for using a lag switch in MW2? (PC STEAM)By Wizid in Call of Duty Modern Warfare 2 Help
    3Last post 12y ago
  • Can I get banned for using a lag switch on MW2? (PC STEAM)By Wizid in Call of Duty Modern Warfare 2 Help
    2Last post 12y ago
  • virtual lag switch for gold bunnyBy sd999444 in Dragon Nest Hacks & Cheats
    119Last post 14y ago

Tags for this Thread

None