argv1 Posted May 3, 2017 Share Posted May 3, 2017 Hi folks, I would like to lock my screen with Send("#l") on a windows 10 machine. Outside the script this works. Also other commands like Send("#x") or Send("#r") works while Send("#R") doesn't work. I also tried Send("{LWinDown}l") Send("{LWinUp}") Doesn't work either. :/ Link to comment Share on other sites More sharing options...
Floops Posted May 3, 2017 Share Posted May 3, 2017 Run("rundll32.exe user32.dll,LockWorkStation") Does this work? Works for me on Windows 7 Link to comment Share on other sites More sharing options...
argv1 Posted May 3, 2017 Author Share Posted May 3, 2017 that works, thank you very much Link to comment Share on other sites More sharing options...
jguinch Posted May 3, 2017 Share Posted May 3, 2017 Same thing than _WinAPI_LockWorkStation () Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
ur Posted May 3, 2017 Share Posted May 3, 2017 Is there anyway for the reverse??? I mean, to check if the machine is locked and unlock it. I may run that compiled exe periodically from task scheduler. Link to comment Share on other sites More sharing options...
hixxa321 Posted May 3, 2017 Share Posted May 3, 2017 I have also an question with Send, how to do Ctrl + A (select all) with Send()? Link to comment Share on other sites More sharing options...
Floops Posted May 3, 2017 Share Posted May 3, 2017 5 minutes ago, hixxa321 said: I have also an question with Send, how to do Ctrl + A (select all) with Send()? Send("^a") Link to comment Share on other sites More sharing options...
hixxa321 Posted May 3, 2017 Share Posted May 3, 2017 1 minute ago, Floops said: Send("^a") Thank you! Link to comment Share on other sites More sharing options...
Floops Posted May 3, 2017 Share Posted May 3, 2017 You're welcome hixxa321 1 Link to comment Share on other sites More sharing options...
ur Posted May 3, 2017 Share Posted May 3, 2017 59 minutes ago, ur said: Is there anyway for the reverse??? I mean, to check if the machine is locked and unlock it. I may run that compiled exe periodically from task scheduler. @Floops can you answer for this also Link to comment Share on other sites More sharing options...
Floops Posted May 3, 2017 Share Posted May 3, 2017 @ur hmm not from the top of my head. But I can look into it when I'm home if noone found an answer by then. Link to comment Share on other sites More sharing options...
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