Results 1 to 8 of 8
  1. #1
    xekoxxx's Avatar
    Join Date
    Aug 2016
    Gender
    male
    Posts
    13
    Reputation
    10
    Thanks
    1

    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.
    Last edited by xekoxxx; 06-02-2017 at 09:53 PM.

  2. #2
    ffriozi's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Posts
    293
    Reputation
    18
    Thanks
    848
    My Mood
    Amazed
    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.

  3. #3
    breakzz's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    46
    Reputation
    10
    Thanks
    6
    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

  4. #4
    xekoxxx's Avatar
    Join Date
    Aug 2016
    Gender
    male
    Posts
    13
    Reputation
    10
    Thanks
    1
    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...
    Last edited by xekoxxx; 06-02-2017 at 09:52 PM.

  5. #5
    breakzz's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    46
    Reputation
    10
    Thanks
    6
    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!

  6. #6
    xekoxxx's Avatar
    Join Date
    Aug 2016
    Gender
    male
    Posts
    13
    Reputation
    10
    Thanks
    1
    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!
    Last edited by xekoxxx; 06-03-2017 at 01:09 PM.

  7. #7
    breakzz's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    46
    Reputation
    10
    Thanks
    6
    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!

  8. #8
    ffriozi's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Posts
    293
    Reputation
    18
    Thanks
    848
    My Mood
    Amazed
    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.

Similar Threads

  1. [Release] Lag Switch for Playstaition 3 and xBox 360 BETA
    By iLove2Hack4U_YT in forum General Console Game Hacking
    Replies: 6
    Last Post: 10-07-2014, 07:49 PM
  2. [Help Request] Can I get banned for using a lag switch on MW2? (PC STEAM)
    By Wizid in forum Call of Duty Modern Warfare 2 Help
    Replies: 2
    Last Post: 10-10-2013, 03:30 PM
  3. Can I get banned for using a lag switch in MW2? (PC STEAM)
    By Wizid in forum Call of Duty Modern Warfare 2 Help
    Replies: 3
    Last Post: 10-06-2013, 03:10 AM
  4. [Detected] virtual lag switch for gold bunny
    By sd999444 in forum Dragon Nest Hacks & Cheats
    Replies: 119
    Last Post: 10-20-2011, 02:22 PM
  5. LAG SWITCH !!! (Helps for escape mode)
    By frans003 in forum CrossFire Discussions
    Replies: 4
    Last Post: 09-23-2010, 02:15 PM