使用 Autohotkey 在 Win 10 上调整 Google 环聊应用的大小
Resizing Google Hangouts app on Win 10 with Autohotkey
我需要在 Win 10 中调整 Google 环聊应用程序的大小。通过 Autohotkey
目前是260*460,我需要1150*750
这里是 Window 间谍数据:
>>>>>>>>>>( Window Title & Class )<<<<<<<<<<<
Hangouts
ahk_class Chrome_WidgetWin_1
>>>>>>>>>>>>( Mouse Position )<<<<<<<<<<<<<
On Screen: 901, 600 (less often used)
In Active Window: -759, 580
>>>>>>>>>( Now Under Mouse Cursor )<<<<<<<<
Color: 0xF0F0F0 (Blue=F0 Green=F0 Red=F0)
>>>>>>>>>>( Active Window Position )<<<<<<<<<<
left: 1660 top: 20 width: 260 height: 460
>>>>>>>>>>>( Status Bar Text )<<<<<<<<<<
>>>>>>>>>>>( Visible Window Text )<<<<<<<<<<<
Chrome Legacy Window
>>>>>>>>>>>( Hidden Window Text )<<<<<<<<<<<
>>>>( TitleMatchMode=slow Visible Text )<<<<
>>>>( TitleMatchMode=slow Hidden Text )<<<<
我试过类似下面的方法,但没有用:
[code]
#Persistent
Loop
{
WinWaitActive, ahk_class Chrome_WidgetWin_1
WinMove, ahk_class Chrome_WidgetWin_1, , 1150, 750
}
Return
[/code]
; WinMove, WinTitle (or) ahk_class WinClass, WinText, X, Y , Width, Height, ExcludeTitle, ExcludeText
WinMove, ahk_class Chrome_WidgetWin_1, , , , 1150, 750
WinMove 命令需要这些参数:
WinMove, WinTitle, WinText, X, Y [, Width, Height, ExcludeTitle, ExcludeText]
参数WinText
、X
和Y
可以省略,在这种情况下你可以将它们留空,但你仍然必须使用逗号来表示它们。
您只将参数 WinText
留空,值为 1150 和 750 的参数被解释为参数 X
和 Y
。
解决方案是添加这两个未使用的参数 X
和 Y
:
WinMove, ahk_class Chrome_WidgetWin_1, , , , 1150, 750
例如,如果您还想将 window 移动到位置 200、100,则同时使用 X
和 Y
参数:
WinMove, ahk_class Chrome_WidgetWin_1, , 200, 100, 1150, 750
我需要在 Win 10 中调整 Google 环聊应用程序的大小。通过 Autohotkey
目前是260*460,我需要1150*750
这里是 Window 间谍数据:
>>>>>>>>>>( Window Title & Class )<<<<<<<<<<<
Hangouts
ahk_class Chrome_WidgetWin_1
>>>>>>>>>>>>( Mouse Position )<<<<<<<<<<<<<
On Screen: 901, 600 (less often used)
In Active Window: -759, 580
>>>>>>>>>( Now Under Mouse Cursor )<<<<<<<<
Color: 0xF0F0F0 (Blue=F0 Green=F0 Red=F0)
>>>>>>>>>>( Active Window Position )<<<<<<<<<<
left: 1660 top: 20 width: 260 height: 460
>>>>>>>>>>>( Status Bar Text )<<<<<<<<<<
>>>>>>>>>>>( Visible Window Text )<<<<<<<<<<<
Chrome Legacy Window
>>>>>>>>>>>( Hidden Window Text )<<<<<<<<<<<
>>>>( TitleMatchMode=slow Visible Text )<<<<
>>>>( TitleMatchMode=slow Hidden Text )<<<<
我试过类似下面的方法,但没有用:
[code]
#Persistent
Loop
{
WinWaitActive, ahk_class Chrome_WidgetWin_1
WinMove, ahk_class Chrome_WidgetWin_1, , 1150, 750
}
Return
[/code]
; WinMove, WinTitle (or) ahk_class WinClass, WinText, X, Y , Width, Height, ExcludeTitle, ExcludeText
WinMove, ahk_class Chrome_WidgetWin_1, , , , 1150, 750
WinMove 命令需要这些参数:
WinMove, WinTitle, WinText, X, Y [, Width, Height, ExcludeTitle, ExcludeText]
参数WinText
、X
和Y
可以省略,在这种情况下你可以将它们留空,但你仍然必须使用逗号来表示它们。
您只将参数 WinText
留空,值为 1150 和 750 的参数被解释为参数 X
和 Y
。
解决方案是添加这两个未使用的参数 X
和 Y
:
WinMove, ahk_class Chrome_WidgetWin_1, , , , 1150, 750
例如,如果您还想将 window 移动到位置 200、100,则同时使用 X
和 Y
参数:
WinMove, ahk_class Chrome_WidgetWin_1, , 200, 100, 1150, 750