如果您处于全屏模式,正在做一些工作,突然需要跳转到任务栏以切换到另一个程序或使用位于系统托盘菜单中的实用程序。按Start或Ctrl+Esc将显示打开开始菜单的任务栏。当您正在执行一些需要集中注意力的任务(例如编程)时,打开的开始菜单会有些分散您的注意力。
那么,有什么方法可以实现这一点吗?有什么调整吗?有什么注册表编辑吗?
附言:我尝试过很多实用程序,例如 7+ Taskbar Tweaker,但都不起作用!
答案1
- 按Windows+T聚焦应用程序
- 按Windows+B聚焦通知区域
两者都将显示没有开始菜单的任务栏
答案2
按两次 ALT 键可显示不带开始菜单的任务栏。要实现此目的,我们需要使用 autohotkey。
使用 Rapidhotkey 功能,发送 Win 键 + B,以激活没有开始菜单的任务栏。设置所需的点击次数 (2) 以及点击之间允许的时间 (0.3)。
~Alt::RapidHotkey("myLabel", 2, 0.3, 1)
myLabel:
Send #b
Return
要使用 RapidHotkey 函数,请在脚本中包含以下 2 个函数。为方便起见,请复制粘贴到下面。详情请参阅 Autohotkey 论坛。
; Rapid hotkey library
RapidHotkey(keystroke, times="2", delay=0.2, IsLabel=0)
{
Pattern := Morse(delay*1000)
If (StrLen(Pattern) < 2 and Chr(Asc(times)) != "1")
Return
If (times = "" and InStr(keystroke, """"))
{
Loop, Parse, keystroke,""
If (StrLen(Pattern) = A_Index+1)
continue := A_Index, times := StrLen(Pattern)
}
Else if (RegExMatch(times, "^\d+$") and InStr(keystroke, """"))
{
Loop, Parse, keystroke,""
If (StrLen(Pattern) = A_Index+times-1)
times := StrLen(Pattern), continue := A_Index
}
Else if InStr(times, """")
{
Loop, Parse, times,""
If (StrLen(Pattern) = A_LoopField)
continue := A_Index, times := A_LoopField
}
Else if (times = "")
continue := 1, times := 2
Else if (times = StrLen(Pattern))
continue = 1
If !continue
Return
Loop, Parse, keystroke,""
If (continue = A_Index)
keystr := A_LoopField
Loop, Parse, IsLabel,""
If (continue = A_Index)
IsLabel := A_LoopField
hotkey := RegExReplace(A_ThisHotkey, "[\*\~\$\#\+\!\^]")
IfInString, hotkey, %A_Space%
StringTrimLeft, hotkey,hotkey,% InStr(hotkey,A_Space,1,0)
backspace := "{BS " times "}"
keywait = Ctrl|Alt|Shift|LWin|RWin
Loop, Parse, keywait, |
KeyWait, %A_LoopField%
If ((!IsLabel or (IsLabel and IsLabel(keystr))) and InStr(A_ThisHotkey, "~") and !RegExMatch(A_ThisHotkey
, "i)\^[^\!\d]|![^\d]|#|Control|Ctrl|LCtrl|RCtrl|Shift|RShift|LShift|RWin|LWin|Alt|LAlt|RAlt|Escape|BackSpace|F\d\d?|"
. "Insert|Esc|Escape|BS|Delete|Home|End|PgDn|PgUp|Up|Down|Left|Right|ScrollLock|CapsLock|NumLock|AppsKey|"
. "PrintScreen|CtrlDown|Pause|Break|Help|Sleep|Browser_Back|Browser_Forward|Browser_Refresh|Browser_Stop|"
. "Browser_Search|Browser_Favorites|Browser_Home|Volume_Mute|Volume_Down|Volume_Up|MButton|RButton|LButton|"
. "Media_Next|Media_Prev|Media_Stop|Media_Play_Pause|Launch_Mail|Launch_Media|Launch_App1|Launch_App2"))
Send % backspace
If (WinExist("AHK_class #32768") and hotkey = "RButton")
WinClose, AHK_class #32768
If !IsLabel
Send % keystr
else if IsLabel(keystr)
Gosub, %keystr%
Return
}
Morse(timeout = 400) { ;by Laszo -> http://www.autohotkey.com/forum/viewtopic.php?t=16951 (Modified to return: KeyWait %key%, T%tout%)
tout := timeout/1000
key := RegExReplace(A_ThisHotKey,"[\*\~\$\#\+\!\^]")
IfInString, key, %A_Space%
StringTrimLeft, key, key,% InStr(key,A_Space,1,0)
If Key in Shift,Win,Ctrl,Alt
key1:="{L" key "}{R" key "}"
Loop {
t := A_TickCount
KeyWait %key%, T%tout%
Pattern .= A_TickCount-t > timeout
If(ErrorLevel)
Return Pattern
If key in Capslock,LButton,RButton,MButton,ScrollLock,CapsLock,NumLock
KeyWait,%key%,T%tout% D
else if Asc(A_ThisHotkey)=36
KeyWait,%key%,T%tout% D
else
Input,pressed,T%tout% L1 V,{%key%}%key1%
If (ErrorLevel="Timeout" or ErrorLevel=1)
Return Pattern
else if (ErrorLevel="Max")
Return
}
}
答案3
这里是简单的 AutoHotKey 脚本,当按下 Capslock 键时显示任务栏:
Capslock::
Send {LWin down}{b}{LWin up}
Send {Tab down}{Tab up}
return
答案4
执行Start+ D( Windows key+ D) 是否有用?这会将您带到桌面,并将所有内容最小化。它会让我退出全屏模式……至少,youtube 全屏模式。不确定其他程序是否如此。