|
Can you write code, like C#?
Write a simple program that, when it starts up. uses a timer to send a safe key stroke (like Ctrl or whatever). That is usually sufficient to make the screen saver/lock (which I assume you can't change in Windows settings) think you made a key stroke. I would recommend using a timer interval that changes each time between 15 and 60 seconds, using a random number generator. The screen saver/lock coder might be smart enough to look for a repeat of the same interval.
|
|
|
|
|
I like Mouse Jiggler. https://mouse-jiggler.en.lo4d.com/windows The Zen feature makes it very nice. Keep in mind that it can stop working when using VMs or Remote Desktops.
|
|
|
|
|
I hacked the following powershell together to fix this. The trick is that you don't need to move the mouse, you only need to move the mouse cursor to prevent the screensaver. Windows!
Quote: $prevent_screensaver = {
#########################################################
# Prevent-Screensaver
#########################################################
# This script moves the mouse cursor
# for specified number of minutes which makes
# Windows think you are at your desktop
# so the screensaver does not start and the desktop
# does not get locked.
#########################################################
# Makes the script move the mouse (press .) for 120 minutes.
########################################################
# (c) Dmitry Sotnikov + T.H. Schmidt
# https://dmitrysotnikov.wordpress.com
########################################################
$minutes = 120
[void] [System.Reflection.Assembly]::LoadWithPartialName(System.Windows.Forms)
$myshell = New-Object -com Wscript.Shell
for ($i = 0; $i -lt $minutes; $i++) {
Start-Sleep -Seconds 60
$Pos = [System.Windows.Forms.Cursor]::Position
[System.Windows.Forms.Cursor]::Position = New-Object System.Drawing.Point((($Pos.X) + 1) , $Pos.Y)
}
}
# stub that will send the e-mail for logging
$email = {
$emailTo = $Env:USERNAME+"@justice.vic.gov.au"
#echo $emailTo
$messagecontent = @"
This message informs that the screensaver was locked out on PC:
"@
$emailFrom = "noreply@x.y.x"
$subject="Screensave bypass notification"
$smtpserver="mailserver.dns.name"
$smtp=new-object Net.Mail.SmtpClient($smtpServer)
$smtp.Send($emailFrom, $emailTo, $subject, $messagecontent)
}
# Pops up the dialog and makes the user agree to the conditions
Add-Type -AssemblyName PresentationCore,PresentationFramework
$ButtonType = [System.Windows.MessageBoxButton]::YesNo
$MessageboxTitle = "User Agreement"
$Messageboxbody = "I understand that while the screensaver is disabled on my PC it is my responsibility to ensure it is secure and supervised at all times and I promise I will be a good boy / girl"
$MessageIcon = [System.Windows.MessageBoxImage]::Warning
$button = [System.Windows.MessageBox]::Show($Messageboxbody,$MessageboxTitle,$ButtonType,$messageicon)
# calls the prevent_screensaver sub if the user selected yes.
if ($button -like "Yes") {
#echo $button
&$email
&$prevent_screensaver
}
else {
#echo "Selected: No"
#&$email
}
Hope that helps. I take no responsibility for the Security implications of this script.
|
|
|
|
|
|
...and started using lettuce leaves as a replacement.
Today was just the tip of the iceberg, what happens tomorrow romaines to be seen!
If you can't laugh at yourself - ask me and I will do it for you.
|
|
|
|
|
Celery ask you again tomorrow?
|
|
|
|
|
If you served in the military, you would know how to use sandpaper
Director of Transmogrification Services
Shinobi of Query Language
Master of Yoda Conditional
|
|
|
|
|
MadMyche wrote: If you served in the military, you would know how to use sandpaper
He'd still have toilet paper but not sandpaper.
|
|
|
|
|
I'm not gonna endive into this one.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
I always wondered why so many plants have thorns, even on the leaves.
Now we know.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
and even in the name, like rhubarb!
GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)
|
|
|
|
|
That's about all lettuce is good for. Might as well use it.
Nah, I kid. I'll eat Caesar salad...aka the least healthy salad available.
|
|
|
|
|
dandy72 wrote: Nah, I kid. I'll eat Caesar salad...aka the least healthy salad available. You eat grass, I'll take bacon.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
I don't split meals with others, especially when bacon is involved. Or you might get stabbed in the hand with a fork. Bacon is serious business, and a Caesar salad without it is entirely pointless.
|
|
|
|
|
This Kale's for some serious thought.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Why use lettuce? Cos you had no cabbage, I guess...
|
|
|
|
|
You should try cabbages, 'cos they're better.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Are there no coronavirus cases on Antarctica because they are already ice-olated?
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
|
I can't remember that far back!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
FWIW, Nunavut, in northern Canada, still has no reported case.
[Edit]
What's going on in Quebec? Population of 8.5M, 4600+ infected. Next province with the most cases (2800) is Ontario, with a population of 14.5M.
|
|
|
|
|
They're French, and kiss as a greeting? I suspect cultural behaviours have a big part to play...
|
|
|
|
|
Dunno, can Ants on Arctica actually get it? Or just when they're not on Arctica?
GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)
|
|
|
|
|
My electric bill is going to go up.
The only thing that was on during the day was my refrigerator.
Now I have my entire network to power up.
And the refrigetor is opened alot more.
And the coffee maker has to work harder to keep up with me.
And on a slightly more serious note...
My medication dosages are too low- sitting at home on the couch I am not getting the exercise I normally do at the office. The numbers I have compiled show I need about 17% more insulin than normal.
Director of Transmogrification Services
Shinobi of Query Language
Master of Yoda Conditional
|
|
|
|
|
3D Print yourself a really big hamster wheel, and use a standing desk.
Voila! Two problems solved at a stroke - you can use the wheel to power the coffeemaker!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|