![]() I also used a timer instead of a never ending loop, again it means less work (and I think it looks cleaner). I added a variable to save the state so there is much less excess work. The way you wrote it, you are going to do the Netflix many many times while you are watching the movie. TrayTip, Netxfix, Screen Saver Enabled!, 10, 1 SetTimer, ScreenSaveActivate, -9000000 run only onceĭllCall("SystemParametersInfo", Int,16, UInt,NULL, "UInt *",SSACTIVE, Int,0) checkĭllCall("SystemParametersInfo", Int,17, Int,0, UInt,NULL, Int,2) disableĭllCall("SystemParametersInfo", Int,17, Int,1, UInt,NULL, Int,2) enable TrayTip, Netfix, Screen Saver Disabled`, Enjoy The Show!, 10, 2ĭllCall("SystemParametersInfo", Int,17, Int,0, UInt,NULL, Int,2) disable screensaver WinWaitNotActive, Netflix: Netflix Movie Viewer WinWaitActive, Netflix: Netflix Movie Viewer SetWorkingDir %A_ScriptDir% Ensures a consistent starting directory. ![]() SendMode Input Recommended for new scripts due to its superior speed and reliability. #NoEnv Recommended for performance and compatibility with future AutoHotkey releases. Pretty simple stuff, lifted the real goods from SKAN (thank you!) (. Fall asleep while watching? No prob, it bumps the screen saver back on after 2.5 hours! Does exactly what MS should have done in the first place! This turns the screen saver off when you watch a Netflix streaming movie, then turns it back on when you're done.
0 Comments
Leave a Reply. |