Advertisement
Guest User

Untitled

a guest
Sep 26th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #include <Misc.au3>
  2. #include <AutoItConstants.au3>
  3.  
  4. While 1
  5. if _IsPressed(05) Then
  6. Run('C:\Windows\System32\netsh.exe advfirewall firewall set rule name="blocknet" new enable="yes"', "", @SW_HIDE)
  7. ToolTip("LAGSWITCH ON", 0, 0)
  8. Do
  9. Sleep(10)
  10. until Not _IsPressed(05)
  11. Run('C:\Windows\System32\netsh.exe advfirewall firewall set rule name="blocknet" new enable="no"', "", @SW_HIDE)
  12. ToolTip("")
  13. EndIf
  14. WEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement