指定窗口下激活脚本的使用方法集合

指定窗口下激活脚本的使用方法集合
; 例 1
IfWinExist, Untitled - Notepad
{
    WinActivate  ; 自动使用上面找到的窗口.
    WinMaximize  ; 同上
    Send, Some text.{Enter}
    return
}

; 例 2
IfWinNotExist, Calculator
    return
else
{
    WinActivate  ; 前面的"IfWinNotExist"也设置了上次找到的窗口.
    WinMove, 40, 40  ; 把它移动到新位置.
    return
}

; 例 3
if WinExist("ahk_class Notepad") or WinExist("ahk_class" . ClassName)
    WinActivate  ; 使用最近找到的窗口.

MsgBox % "The active window's ID is " . WinExist("A")

; 例 4: 等同于 IfWinNotExist, Calculator
If !WinExist("Calculator")
    return

 

给TA捐赠
共{{data.count}}人
人已捐赠
其他

CEnumerator类

2018-1-3 13:20:23

其他

通过注册表删除用户输入的 Internet Explorer URL 历史

2018-1-3 13:34:07

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索