Autohotkey Can';t激活Windows资源管理器窗口

Autohotkey Can';t激活Windows资源管理器窗口,autohotkey,Autohotkey,由于某些原因,我无法激活Windows资源管理器窗口: (即默认文件管理器。不要与Internet Explorer混淆) 有没有办法解决这个问题?谢谢 我在Win7上试过,32位。可能它会在较新的Windows版本上工作(我不知道) 显示此MsgBox的信息是什么 f2:: list := "" numberOfwindows := "" wins := "" WinGet, id, list, ahk_class CabinetWClass ahk_exe explorer.exe Loop

由于某些原因,我无法激活Windows资源管理器窗口:

(即默认文件管理器。不要与Internet Explorer混淆)

有没有办法解决这个问题?谢谢

我在Win7上试过,32位。可能它会在较新的Windows版本上工作(我不知道)


显示此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

当资源管理器窗口处于活动状态时,哪些信息显示Window Spy?@user3419297
ahk_class CabinetWClass ahk_exe Explorer.exe
,如我的代码所示。我还尝试了一个新的类-不起作用。非常奇怪。它显示了
资源管理器窗口的数量=
,即
=
之后没有任何内容。请尝试以管理员身份运行脚本,添加到自动执行部分。感谢您的帮助。但目前没有任何变化:在
=
之后没有任何变化。顺便问一下,它对您有用吗?是的,在Win7 64位和Win10 64位上都有效。卸载AHK并重新启动后,以管理员身份重新安装它可能会有所帮助。
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