Jump to content
argv1

lock the screen via Send("#l") doens't work (win10)

Recommended Posts

argv1

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. :/

 

Share this post


Link to post
Share on other sites
Floops
Run("rundll32.exe user32.dll,LockWorkStation")

 

Does this work? Works for me on Windows 7

Share this post


Link to post
Share on other sites
ur

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.

 

Share this post


Link to post
Share on other sites
hixxa321

I have also an question with Send, how to do Ctrl + A (select all) with Send()?

Share this post


Link to post
Share on other sites
Floops
5 minutes ago, hixxa321 said:

I have also an question with Send, how to do Ctrl + A (select all) with Send()?

Send("^a")

 

Share this post


Link to post
Share on other sites
hixxa321
1 minute ago, Floops said:
Send("^a")

 

Thank you! :)

Share this post


Link to post
Share on other sites
ur
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

Share this post


Link to post
Share on other sites
Floops

@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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×