HoratioCaine Posted November 18, 2021 Share Posted November 18, 2021 (edited) Hi, I want to `send('#L') ` , and it does not work. I read the documentation, and can not found the reason. It only says that it is not allowed to simulate ctrl+alt+delete. How can I make it? BEST WISHES~ Edited November 18, 2021 by HoratioCaine Link to comment Share on other sites More sharing options...
pseakins Posted November 18, 2021 Share Posted November 18, 2021 5 minutes ago, HoratioCaine said: I want to `send('#L') ` 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) Phil Seakins Link to comment Share on other sites More sharing options...
Nine Posted November 18, 2021 Share Posted November 18, 2021 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() Danp2 and SkysLastChance 2 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
pseakins Posted November 18, 2021 Share Posted November 18, 2021 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. HoratioCaine 1 Phil Seakins Link to comment Share on other sites More sharing options...
HoratioCaine Posted November 22, 2021 Author Share Posted November 22, 2021 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 More sharing options...
HoratioCaine Posted November 22, 2021 Author Share Posted November 22, 2021 On 11/18/2021 at 8:45 PM, Nine said: 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() Thanks~ Link to comment Share on other sites More sharing options...
ad777 Posted December 3, 2021 Share Posted December 3, 2021 On 11/22/2021 at 9:42 AM, HoratioCaine said: Thanks~ ShellExecute(@WindowsDir & "\System32\logoff.exe") also this works.☺️ iam ِAutoit programmer. best thing in life is to use your Brain to Achieve everything you want. Link to comment Share on other sites More sharing options...
Developers Jos Posted December 3, 2021 Developers Share Posted December 3, 2021 3 hours ago, ad777 said: ShellExecute(@WindowsDir & "\System32\logoff.exe") also this works.☺️ Logoff is something different than Workstation Lock. ! HoratioCaine and ad777 1 1 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 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