Advertisement
aveyo

steamwebhelper_killer

Feb 14th, 2015
13,568
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!-- : class="re0">SteamWebHelper Killer by AveYo v2.0rc
  2. :: When you want to play games without lag, cpu, memory spikes caused by steamwebhelper, launch this.
  3. :: But if you do long trading sessions and other community stuff inside Steam - disable it or set a 30+ timer.
  4. ::
  5. :: Only need to run it once, it will be scheduled to run every x minutes, even after reboot.
  6. :: To disable, run this script again and press CANCEL / enter 0 as timer.
  7. ::
  8. :: Updating this as it's still needed on many systems, even after Valve's performance patches.
  9. :: Finally fixed the in-game stutter on timer, with a smarter schedulled command - the host process will remain alive. Even a 1 minute timer is stutter-free now.
  10. :: Default timer is set to 4 minutes like the original, anything less will require you to refresh/reopen the steam window too often (annoyiance).
  11. @ECHO OFF &SETLOCAL ENABLEEXTENSIONS
  12. ::
  13. :: Change default timer below:
  14. SET REPEAT_TASK_EVERY_MINUTES=4
  15. ::
  16.  
  17. CALL :_INIT_
  18. echo Info: This script sets a system task so it requires administrative rights
  19. CALL :VBSLAUNCHER %REPEAT_TASK_EVERY_MINUTES% %_XPFallback%
  20. exit
  21.  
  22. :_INIT_
  23. FOR /F "tokens=4-5 delims=. " %%i IN ('ver') DO SET _LABEL=A^v^eY^o^'s St^ea^m^W^e^bH^e^lp^e^r^ K^il^ler^ v^2.^0r^c &SET _WINVERSION=%%i%%j
  24. MODE 80,20 &COLOR 70 &CLS &echo. &TITLE CMD: %_LABEL%
  25. IF %_WINVERSION% LSS 60 (SET _XPFallback="/V1 /F") ELSE SET _XPFallback="/F"
  26. GOTO :eof
  27.  
  28. :VBSLAUNCHER
  29. cscript //nologo "%~f0?.wsf" %*
  30. GOTO :eof
  31. ----- embeded scripts method by DosTips user Liviu --->
  32. <job><script language="VBScript">
  33. sKillerTimer = Trim(InputBox("To enable Killer, press OK" &vbCrLf&vbCrLf& "To disable Killer, press CANCEL" &vbCrLf&vbCrLf& "To do nothing, close the CMD window" &vbCrLf&vbCrLf& "If activated, will autorun after how many minutes:"  , "AveYo`s SteamWebHelper Killer", Wscript.Arguments(0)))
  34. Set UAC = CreateObject("Shell.Application")
  35. If Not IsNumeric(sKillerTimer) Or sKillerTimer="0" Then
  36. UAC.ShellExecute "SCHTASKS.EXE", "/Delete /TN SteamWebHelper_Killer_by_AveYo /F", "", "runas", 0
  37. Else
  38. sNow = DateAdd("n", 1, Now)
  39. sHour = Hour(sNow)
  40. sMinute = Minute(sNow)
  41. If sHour < 10 Then sHour = "0" & sHour
  42. If sMinute < 10 Then sMinute = "0" & sMinute
  43. sKillerStart = sHour & ":" & sMinute & ":00"
  44. sWinXP = "" '"/V1 /F"
  45. UAC.ShellExecute "SCHTASKS.EXE", "/Create /RU ""System"" /SC MINUTE /MO " &sKillerTimer& " /TN SteamWebHelper_Killer_by_AveYo /TR ""WMIC.EXE process WHERE (name=" &Chr(39)& "steamwebhelper.exe" &Chr(39)& " AND commandline LIKE " &Chr(39)& "%Valve Steam Client%" &Chr(39)& ") call terminate"" /ST " &sKillerStart& " /NP " &Wscript.Arguments(1), "", "runas", 0
  46. End If
  47. </script></job>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement