【问题标题】:Resizing Google Hangouts app on Win 10 with Autohotkey使用 Autohotkey 在 Win 10 上调整 Google Hangouts 应用程序的大小
【发布时间】:2016-03-28 16:58:45
【问题描述】:

我需要在 Win 10 中调整 Google Hangouts 应用程序的大小。通过 Autohotkey

目前是260*460,我需要1150*750。

这里是 Window spy 数据:

>>>>>>>>>>( 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]

【问题讨论】:

    标签: autohotkey hangout


    【解决方案1】:

    WinMove 命令需要这些参数:

    WinMove, WinTitle, WinText, X, Y [, Width, Height, ExcludeTitle, ExcludeText]
    

    参数WinTextXY 可以省略,在这种情况下您可以将它们留空,但您仍然必须使用逗号来表示它们。

    您只将参数 WinText 留空,值 1150 和 750 的参数被解释为参数 XY

    解决方案是添加这两个未使用的参数XY

    WinMove, ahk_class Chrome_WidgetWin_1, , , , 1150, 750
    

    例如,如果您还想将窗口移动到位置 200、100,那么也可以使用 XY 参数:

    WinMove, ahk_class Chrome_WidgetWin_1, , 200, 100, 1150, 750
    

    【讨论】:

      【解决方案2】:
      ; WinMove, WinTitle (or) ahk_class WinClass, WinText, X, Y , Width, Height, ExcludeTitle, ExcludeText
      WinMove, ahk_class Chrome_WidgetWin_1, , , , 1150, 750
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-10-04
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多