argv1

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

11 posts in this topic

#1 ·  Posted

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



#2 ·  Posted

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

#3 ·  Posted

that works, thank you very much

Share this post


Link to post
Share on other sites

#5 ·  Posted

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

#6 ·  Posted

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

#7 ·  Posted

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

#8 ·  Posted

1 minute ago, Floops said:
Send("^a")

 

Thank you! :)

Share this post


Link to post
Share on other sites

#9 ·  Posted

You're welcome :)

1 person likes this

Share this post


Link to post
Share on other sites

#10 ·  Posted

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

#11 ·  Posted

@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