2 Attachment(s)
DayZ Lag Switch using AutoHotkey
So I put together a quick AutoHotkey script to enable and disable a lag switch with a time you could add to on yourself. All you have to do is go to the firewall menu and add new rules on the inbound and outbound to block the connection to the game.
This is the inbound photo just locate your DayZ .exe through steamapps and add that as a program on the new rule.
https://www.mpgh.net/forum/attachmen...3&d=1580031308
Do the same but on the outbound section on the firewall.
https://www.mpgh.net/forum/attachmen...4&d=1580031319
Make sure once you create the program rule in your Firewall, if it shows a Circle with a line through it you must go to it and disable it so it shows no circle next to the name. If you're in your inbound section and it shows a green check mark next to the program rule double click it and the "Allow the connection" should be ticked make sure you tick "Block the connection" and apply.
Then you will want to create a new AHK scrip and put this in.
Code:
Toggle = 0
if not A_IsAdmin
{
Run *RunAs "%A_ScriptFullPath%"
ExitApp
}
Gui,Font,Normal s20 c0xFF0000 Bold,Segoe UI
Gui,Add,Text,x26 y282 w270 h50 Center Right c0xFF0000,
Gui,Font,Normal s16 c0x0,Tahoma
Gui,Add,Text,x104 y70 w350 h50,Lag Switch
Gui,Font
Gui,Add,Button,x110 y130 w90 h50 c0xFF0000,Enable
Gui,Font
Gui,Add,Text,x115 y110 w300 h13,Fuck Em Lag Em
Gui,Show,x933 y315 w310 h290 ,
Gui,Font,Normal Bold,Segoe UI
Gui,Add,Text,X130 Y200 w300 h13, Set Time
Gui,add,Slider, x0 y230 w310 ToolTip TickInterval1 Line2 Range1-10 vTimer2 gLagSlide
Gui, Add, Text, vMsVar, ms
Return
GuiClose:
ExitApp
Return
LagSlide:
Timer2 := Timer2*1000
GuiControl, Text, MsVar , %Timer2%
GuiControl, Move, MsVar, W300
return
Toggle := 0
~XButton1::
if (Toggle){
goto, Timer1
}
soundbeep, 523, 130
Toggle := 1
run, netsh advfirewall firewall set rule name="Lagger" new enable=yes,, hide
GuiControl, disable, Enable
SetTimer, Timer1, %Timer2%
return
Timer1:
soundbeep 223, 120
Toggle := 0
run, netsh advfirewall firewall set rule name="Lagger" new enable=no,, hide
GuiControl, enable, Enable
SetTimer, Timer1, Off
return
end::
Toggle := !toggle
if (Toggle){
soundbeep, 150, 160
ExitApp
return
}
You can change the key where it shows ~XButton1:: and you can also change the time next to "Sleep, 4000" If you name the program in your inbound and outbound "Make sure they are the same name" if you have it as a different name than the one I have displayed you can change it in the code where it says "Lagger" Change those to whatever name you put for the program.
You can end the script by pressing the "End" key, also if you want to stop the lag before the 4 seconds are up you can just hit whatever key you assign it to again and it will stop the lag. "try to not go above 4 seconds or you could get disconnect from the server"
Lots of ways to do this undetected
You can also use batch scripts to do this same thing just block DayZ in windows firewall with it so many ways you can lag if he ends up banning for this.