window存在则最大化,不存在则打开
Maximize window if exists, open if it does not
我的问题很简单,但在花了一些时间阅读 AutoHotkey 帮助后找不到答案,我决定 post 在这里。
我想要一个脚本来打开尚未打开的网页。如果网页已打开,则将浏览器最大化到该页面。
这是我的代码:
!^j::
IfWinExist, https://webpage/index.php
WinActivate
IfWinNotExist, https://webpage/index.php
Run, https://webpage/index.php
Return
感谢任何帮助。
好的,我解决了。我在使用函数时遇到了一些问题,并要求提供网络路径,而不是网络标题。所以这是新代码。
!^j::
If WinExist("The Title")
WinActivate
else
Run, https://webpage/index.php
Return
我的问题很简单,但在花了一些时间阅读 AutoHotkey 帮助后找不到答案,我决定 post 在这里。
我想要一个脚本来打开尚未打开的网页。如果网页已打开,则将浏览器最大化到该页面。
这是我的代码:
!^j::
IfWinExist, https://webpage/index.php
WinActivate
IfWinNotExist, https://webpage/index.php
Run, https://webpage/index.php
Return
感谢任何帮助。
好的,我解决了。我在使用函数时遇到了一些问题,并要求提供网络路径,而不是网络标题。所以这是新代码。
!^j::
If WinExist("The Title")
WinActivate
else
Run, https://webpage/index.php
Return