켜기 끄기 둘다 동일하게 메모장 열고 내용 복붙후 .bat 파일로 저장




켜기
@echo off
set Delay=90
set Repeat=20

powershell -NoProfile -NonInteractive -ExecutionPolicy Bypass -Command "(Add-Type -MemberDefinition '[DllImport("user32.dll")] public static extern bool SystemParametersInfo(uint a, uint p, uint[] pv, uint f);' -Name 'N' -PassThru)::SystemParametersInfo(0x0033, 24, [uint32[]](24, 39, 0, %Delay%, %Repeat%, 0), 0x03)"
exit /b

끄기
@echo off
set Delay=0
set Repeat=0

powershell -NoProfile -NonInteractive -ExecutionPolicy Bypass -Command "(Add-Type -MemberDefinition '[DllImport("user32.dll")] public static extern bool SystemParametersInfo(uint a, uint p, uint[] pv, uint f);' -Name 'N' -PassThru)::SystemParametersInfo(0x0033, 24, [uint32[]](24, 34, 0, %Delay%, %Repeat%, 0), 0x03)"
exit /b

수치 조절은 켜기에서
set Delay=90
set Repeat=20 조절하면 됨





이런식으로 두고 쓰셈