razormoon Posted October 22, 2008 Posted October 22, 2008 I've Googled this forever and got the halfest assed answers. Especially under Vista (screensaver process)... Detect PC is locked: If ProcessExists("logonui.exe") then 'PC IS LOCKED! EndIf Detect Screensaver: (Under Vista) $CurrentProcesses = ProcessList() For $WhereTheF = 1 to $CurrentProcesses[0][0] $CHRPos = StringInStr($CurrentProcesses[$WhereTheF][0], ".", 0, -1) $ProcessEXT = StringMid($CurrentProcesses[$WhereTheF][0], $ChrPos + 1, StringLen($CurrentProcesses[$WhereTheF][0] - $CHRPos) If $ProcessEXT = "SCR" 'HERE IS YOUR SCREENSAVER!' EndIf Next Enjoy!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now