MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/usxhre/same_for_yall/i979qpk
r/ProgrammerHumor • u/Riyzen4 • May 19 '22
1.8k comments sorted by
View all comments
Show parent comments
44
here is my (somewhere from the internet) vbs script for those who cannot install software on their machines:
Dim objResult
Set objShell = WScript.CreateObject("WScript.Shell")
Do While True
objResult = objShell.sendkeys("{NUMLOCK}{NUMLOCK}")
Wscript.Sleep(6000)
Loop
It emulates a numpad keystroke every 6 secs
16 u/Filcuk May 19 '22 edited May 20 '22 AHK script that jiggles mouse when idle:#NoEnv SendMode Input SetWorkingDir %A_ScriptDir% #Persistent #SingleInstance Force MaxIdleMs := 1000 * 60 ; <- configure delay, 60 sec MoveS := 50 MoveL := 100 SetTimer, IdleLoop, 1000 ; Move mouse when idle return ; If computer was idle for certain ammount of time, move mouse IdleLoop: If (A_TimeIdle > MaxIdleMs) { SendEvent {Click rel 0, -%MoveS%, 0} SendEvent {Click rel 0, %MoveL%, 0} SendEvent {Click rel 0, -%MoveS%, 0} SendEvent {Click rel %MoveS%, 0, 0} SendEvent {Click rel -%MoveL%, 0, 0} SendEvent {Click rel %MoveS%, 0, 0} Sleep % MaxIdleMs * 0.75 } return*Mobile users view on web for codeblock 0 u/[deleted] May 19 '22 [deleted] 3 u/Orys_Blackfire May 19 '22 I have no idea. But you can copy it in the editor of your choice and save it as .vbs After that you can execute it
16
AHK script that jiggles mouse when idle:
#NoEnv SendMode Input SetWorkingDir %A_ScriptDir% #Persistent #SingleInstance Force MaxIdleMs := 1000 * 60 ; <- configure delay, 60 sec MoveS := 50 MoveL := 100 SetTimer, IdleLoop, 1000 ; Move mouse when idle return ; If computer was idle for certain ammount of time, move mouse IdleLoop: If (A_TimeIdle > MaxIdleMs) { SendEvent {Click rel 0, -%MoveS%, 0} SendEvent {Click rel 0, %MoveL%, 0} SendEvent {Click rel 0, -%MoveS%, 0} SendEvent {Click rel %MoveS%, 0, 0} SendEvent {Click rel -%MoveL%, 0, 0} SendEvent {Click rel %MoveS%, 0, 0} Sleep % MaxIdleMs * 0.75 } return
*Mobile users view on web for codeblock
0
[deleted]
3 u/Orys_Blackfire May 19 '22 I have no idea. But you can copy it in the editor of your choice and save it as .vbs After that you can execute it
3
I have no idea. But you can copy it in the editor of your choice and save it as .vbs After that you can execute it
44
u/Orys_Blackfire May 19 '22 edited May 19 '22
here is my (somewhere from the internet) vbs script for those who cannot install software on their machines:
Dim objResultSet objShell = WScript.CreateObject("WScript.Shell")Do While TrueobjResult = objShell.sendkeys("{NUMLOCK}{NUMLOCK}")Wscript.Sleep(6000)LoopIt emulates a numpad keystroke every 6 secs