Jump to content

[Question] Why `send('#L') ` does not work?


Recommended Posts

I do not know why Send("#L") does not work.  I remember a previous discussion about it. And it seems it is still not working (tested on Win7).

 But you can use :

_WinAPI_LockWorkStation()

 

Link to comment
Share on other sites

10 hours ago, Nine said:

I do not know why Send("#L") does not work

There are a lot of hot key combinations that do not work under Windows 7, probably more under W10. I developed a suite of special functions over a decade ago and was frustrated when it stopped working under W7. I have never tried the Windows key functions but would not be surprised if several of them do not work in AutoIt.

HotKeySet("^!{F1}", HotKeySet("^!{F2}", HotKeySet("^!{F3}" and HotKeySet("^!{F4}" do not work.

Phil Seakins

Link to comment
Share on other sites

On 11/18/2021 at 4:54 PM, pseakins said:

Do you want to literally send a # and an L or do you want to send the Windows logoff command? If you do not want to send the Windows command you would need to add the send raw flag;

Send("#L", 1)

 

I want to send the Windows logoff command, but I can not make it.

Link to comment
Share on other sites

  • 2 weeks later...
  • Developers
3 hours ago, ad777 said:
ShellExecute(@WindowsDir & "\System32\logoff.exe")

also this works.☺️

Logoff is something different than Workstation Lock. ! ;) 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...