移动和调整应用程序自动热键的大小
move and resize a application autohotkey
如何使用 Autohotkey 语言移动和调整应用程序的大小。
1 - 我想 运行 申请,然后
2 - 在宽度高度值中调整它的大小,
3 - 在 Windows 桌面上的 x y 坐标位置。
我可以 运行 一个应用程序并执行一个 Autohotkey 键盘快捷键宏来移动 Window 但是我如何调整一个 Window 的宽度和高度值。
到目前为止的 Autohotkey 代码如下所示。
; [^ = Ctrl] [+ = Shift] [! = Alt] [# = Win]
f5::
RunWait "C:\test.txt"
send !{space}m
send {left}
Mousemove 500,250
MouseClick left,0,0
return
查看 WinWait 和 WinMove 的 ahk 文档。 运行 的文档提供了有关存储新启动的程序进程 ID 的详细信息。
下面将 window 移动到 500x、250y 并将其调整为 200w x 100h。
f5::
run, C:\test.txt, , , o_pid
WinWait, ahk_pid %o_pid%
WinMove, ahk_pid %o_pid%, ,500, 250, 200, 100
return
如何使用 Autohotkey 语言移动和调整应用程序的大小。
1 - 我想 运行 申请,然后
2 - 在宽度高度值中调整它的大小,
3 - 在 Windows 桌面上的 x y 坐标位置。
我可以 运行 一个应用程序并执行一个 Autohotkey 键盘快捷键宏来移动 Window 但是我如何调整一个 Window 的宽度和高度值。
到目前为止的 Autohotkey 代码如下所示。
; [^ = Ctrl] [+ = Shift] [! = Alt] [# = Win]
f5::
RunWait "C:\test.txt"
send !{space}m
send {left}
Mousemove 500,250
MouseClick left,0,0
return
查看 WinWait 和 WinMove 的 ahk 文档。 运行 的文档提供了有关存储新启动的程序进程 ID 的详细信息。
下面将 window 移动到 500x、250y 并将其调整为 200w x 100h。
f5::
run, C:\test.txt, , , o_pid
WinWait, ahk_pid %o_pid%
WinMove, ahk_pid %o_pid%, ,500, 250, 200, 100
return