请问一下如何判定当前激活的窗口的文件路径呢?
autohotkey吧
全部回复
仅看楼主
level 1
我写了一个双击关闭标签页的脚本,但是智能判断激活的EXE,我想要用路径判定。。这样我有些支持双击关闭的chrome壳浏览器双击关闭就可以正常使用了
#NoTrayIcon
#NoEnv
#SingleInstance force
#IfWinActive ahk_exe chrome.exe
~LButton::
{
MouseGetPos,xpos, ypos
WinGet,Mom,MinMax
If ((ypos>45) or (Mom<1))
return
If (A_PriorHotkey="~LButton") and (A_TimeSincePriorHotkey<250)
send ^w
}
2021年10月08日 10点10分 1
level 1
WinGet,idexist,ProcessPath ,A
tooltip,%idexist%
2021年10月08日 12点10分 2
好的我去查一下。。
2021年10月08日 13点10分
您好,这个我试着成功了,但是尝试用IfInString, var, SearchString加fileopen的方式不太顺利
2021年10月09日 11点10分
@大司马郭祀 我的问题,SearchString需要前后加%。。
2021年10月09日 11点10分
1