出于某种原因,我无法激活Windows资源管理器窗口:
(即默认文件管理器。不要与Internet Explorer混淆)
任何想法如何解决?感谢。
我在32位Win7上尝试过它。可能它适用于较新的Windows版本(我不知道)。
#singleInstance, force
f1::
; This works:
; (Even if multiple Notepad windows are opened)
; winActivate, ahk_class Notepad ahk_exe Notepad.exe
; This doesn't work:
; (Even if only one Explorer window is opened)
winActivate, ahk_class CabinetWClass ahk_exe explorer.exe
return
答案 0 :(得分:2)
有什么信息显示这个MsgBox?
f2::
list := ""
numberOfwindows := ""
wins := ""
WinGet, id, list, ahk_class CabinetWClass ahk_exe explorer.exe
Loop, %id%
{
numberOfwindows := A_Index
this_ID := id%A_Index%
WinGetTitle, title, ahk_id %this_ID%
wins .= A_Index A_Space title ? A_Index A_Space title "`n" : ""
}
MsgBox, number of explorer windows = %numberOfwindows%`n`n%wins%
return