2009-11-19 19:31:23 +0000 2009-11-19 19:31:23 +0000

答案 (12)

解决方案找到了!

得分 23
2009-11-19 20:37:37 +0000

使用AutoHotkey脚本,你可以重新映射Win+L快捷方式,然后为Sleep创建另一个快捷方式(我选择的是Win+S,一般情况下,除非你使用OneNote,否则不会使用):

#l:: ; Win+L
Shutdown, 0 ; this is the code for Log Off
return

#s:: ; Win+S
DllCall("PowrProf\SetSuspendState", "int", 0, "int", 0, "int", 0) ; DLL call to sleep
return

在AutoHotkey的帮助文件中,有更多关于DLL调用的细节:

; Call the Windows API function "SetSuspendState" to have the system suspend or hibernate.
; Windows 95/NT4: Since this function does not exist, the following call would have no effect.
; Parameter #1: Pass 1 instead of 0 to hibernate rather than suspend.
; Parameter #2: Pass 1 instead of 0 to suspend immediately rather than asking each application for permission.
; Parameter #3: Pass 1 instead of 0 to disable all wake events.
DllCall("PowrProf\SetSuspendState", "int", 0, "int", 0, "int", 0)
Advertisement
得分 13
2011-08-11 01:45:11 +0000

另一个休眠的快捷方式是:

⊞ Win + D, Alt + F4, H, Enter

得分 2
2014-09-07 22:39:41 +0000

你可以使用Alt+F4快捷键,然后在弹出的对话框中选择你想要的东西,或者你也可以通过以下操作使其中的一个成为你的默认值:

  • 点击开始按钮
  • 在底部电源设置按钮旁边的箭头上点击右键,在这个上下文菜单中选择属性。应该是唯一的一个 –在那个对话框中,在电源按钮的操作栏中选择 “睡眠”(或任何你想要的默认值),然后应用它,然后点击确定。

当你准备好让你的电脑进入睡眠状态或你选择的任何东西,使用Alt+F4键盘快捷键,然后点击回车。无论你在第一步中设置的是什么,都将成为默认的操作,当你按下回车键时,默认的操作将被应用。

Advertisement
得分 1
2009-11-19 20:33:18 +0000
Advertisement

本教程适用于Windows Vista,但应该也适用于Windows 7。 创建Vista注销快捷方式

Advertisement
得分 1
2015-11-20 07:50:53 +0000
Advertisement

在运行

shutdown /l

内创建一个快捷方式,然后

set to shortcut key to WIN+ALT+L

完成

得分 0
2014-05-14 13:00:24 +0000

Win+R “shutdown /L",命令行注销,也可以作为自定义用户快捷方式图标使用。

Advertisement
得分 0
2017-08-15 19:32:22 +0000
Advertisement
注销快捷方式(Win 10/8/7/Vista)

按Ctrl+Alt+Delete,然后按Alt+L: Alt+K - 切换用户* : Alt+W - **注销* : Alt+L - **修改密码…* : Alt+C - **启动任务管理*r: Alt+T

Ctrl+Alt+Delete screen

得分 -1
2012-02-20 15:56:43 +0000

在windows7系统下,从cmd提示符中查看 “关机 "命令。

不幸的是,虽然它有休眠选项,但不包括 "睡眠"。

得分 -1
2013-06-21 15:27:49 +0000

创建一个快捷方式…..把文件的位置写成logoff.exe,然后给快捷方式起个名字….大功告成…右击快捷方式,进入属性…更改图标,选择一个图标图片作为快捷方式…

,如果你想让它成为一个热键,那么右击快捷方式,注意到热键框…点击它…然后按组合键…砰…大功告成…欢迎你。

得分 -2
2016-10-24 14:12:13 +0000

也许是埋在这里的某个地方,也许是我不明白这个要求,但注销部分很简单。最简单的方法是在屏幕上创建一个快捷方式,并在屏幕上显示一个图标,你可以把它叫做Logout User或者其他你喜欢的东西。这个快捷方式应该简单地包含C:\windows\system32\shutdown.exe /L /F,双击图标,你就可以注销了。