Search code examples
autohotkeygoogle-hangouts

Resizing Google Hangouts app on Win 10 with Autohotkey


I need to resize Google Hangouts app in Win 10. through Autohotkey

Currently it is 260*460, and I need it to be 1150*750.

Here are the Window spy data:

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

I tried something like the following, but it didn't work:

[code]
#Persistent
Loop
{

WinWaitActive, ahk_class Chrome_WidgetWin_1
WinMove, ahk_class Chrome_WidgetWin_1, , 1150, 750

}

Return
[/code]

Solution

  • ; WinMove, WinTitle (or) ahk_class WinClass, WinText, X, Y , Width, Height, ExcludeTitle, ExcludeText
    WinMove, ahk_class Chrome_WidgetWin_1, , , , 1150, 750