是否有用于注销和待机的 Windows 7 键盘快捷键?

Gab*_*art 33 windows-7 keyboard-shortcuts standby logoff

我喜欢使用 Windows-L 键盘快捷键来锁定计算机。“注销”和“待机”是否有类似的快捷方式?是否可以将 Windows-L 重新映射到不同的功能?

小智 25

支持

  • 创建一个新的文本文件并将其放在上面

rundll32 pwrprof.dll,SetSuspendState

  • 将其另存为“standby.bat”并在桌面上创建它的快捷方式

  • 右键单击快捷方式,选择属性并将其快捷键编辑为CTRL + ALT + S

现在 CTRL+ ALT+S会把你的电脑处于待机状态。

注销

  • 创建一个新的文本文件并将其放在上面

注销

  • 将其另存为“logoff.bat”并在桌面上创建它的快捷方式

  • 右键单击快捷方式,选择属性并将其快捷键编辑为CTRL + ALT + L

现在CTRL+ ALT+L意志注销。

  • 您实际上并不需要创建批处理文件;您可以直接创建一个指向 `logoff` 可执行文件的快捷方式。 (10认同)

Sna*_*ark 23

使用AutoHotkey脚本,您可以重新映射Win+L快捷方式并为睡眠创建另一个快捷方式(我选择了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
Run Code Online (Sandbox Code Playgroud)

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)
Run Code Online (Sandbox Code Playgroud)


小智 13

Windows 7休眠快捷键更像是PlayStation的秘密功能!

? Win, ?, ?, 那么:

  • H - 休眠
  • S - 睡觉
  • U - 关掉
  • O - 锁
  • L - 注销

当您在途中丢失屏幕时,它会有所帮助!休眠的另一种快捷方式是:

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

  • 尽管从技术上讲“win, ->, ->, s”并不是真正的捷径,因为您只是通过键盘导航到睡眠按钮:\ (8认同)

mat*_*kie 5

有一个使用现有快捷键的键盘解决方案,但不是作为单个和弦(意味着在按下下一个之前释放每个键):

  • Win, , Enter- 上次使用的关机操作
  • Win, , - 选择关机动作

https://superuser.com/questions/16327/what-are-your-favourite-less-well-known-keyboard-shortcuts-in-windows找到它