5 ms·
installing apps is another thing that will be watched and limited. a one line powershell script will do this and would be less noticeable since the system and a
by brixon 6y ago
installing apps is another thing that will be watched and limited. a one line powershell script will do this and would be less noticeable since the system and admins run powershell stuff on the computer everyday anyway.
- TurkishPoptart 6y agoEcho "Keep-alive with Scroll Lock..." $WShell = New-Object -com "Wscript.Shell" while ($true) { $WShell.sendkeys("{SCROLLLOCK}") Start-Sleep -Milliseconds 300 $WShell.sendkeys("{SCROLLLOCK}") Start-Sleep -Seconds 240 }
- boogies 6y agooof, Powershell users have a very different definition of “one line” then I do. In bash I'd run while true; do xdotool key Pause; sleep 240; done
- majkinetor 6y agowhile(1) { (New-Object -c "Wscript.Shell").SendKeys("{Pause}"); sleep -m 240 } Note that you use xdotool which is external so you are cheating. On Winodws you can do better with AHK which is compared to xdotool like spaceship to bucycle.
- boogies 6y agoThat’s over 80 characters long. Note that comparing AHK to xdotool is like comparing a Titanic-sized roll of Flex Tape to duct tape. I don’t use boats that have taken a lot of damage, so I don't need Titanic-sized Flex Tape.
- majkinetor 6y agoThats because you cheated. You also don't know how to count. This is 78 chars and few more can be removed.
- boogies 6y agoI cheated? You edited your comment. root:~ # xclip -o while(1) { (New-Object -c "Wscript.Shell").SendKeys("{SCROLLLOCK}"); sleep -m 240 }root:~ # xclip -o | wc 0 9 87 root:~ # xclip -o | wc -c 87
- majkinetor 6y agoJust replaced scrollock to pause to be identical as your case. You need xWindows to count chars ? Noice :)
- deleted 6y ago[deleted]
- majkinetor 6y agoYou don't have to install apps, you can run them from directory.
- g00gler 6y agoI bring my own Mac, no dice on powershell :)