移动并调整应用程序自动热键的大小 [英] move and resize a application autohotkey
问题描述
如何使用自动热键语言移动和调整应用程序大小.
How can i Move and Resize a Application with Autohotkey Languages.
1-我要运行一个应用程序,然后
1 - i want to run a application, and then
2-用宽度高度"值调整其大小,
2 - resize it in a Width Height Value,
3-在Windows桌面上,其位置在x y坐标中.
3 - on the Windows Desktop with a position in a x y coordinate.
我可以运行应用程序并执行Autohotkey键盘快捷键宏来移动窗口,但如何调整宽度和宽度值的窗口大小.
i Can run a Application and do a Autohotkey Keyboard Shortcut Macro to move the Window but How Can i Resize a Window With a Width Height Value.
自动热键代码如下.
; [^ = 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文档.运行文档提供了有关存储新启动的程序Process ID的详细信息.
Look at the ahk documentation for WinWait and WinMove. The documentation for run gives details on storing the newly launched programs Process ID.
下面的代码将窗口移至500x,250y,并将其大小调整为200w x 100h.
The below moves the window to 500x, 250y and resizes it to 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
这篇关于移动并调整应用程序自动热键的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!