window position

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
emrekarahan0001
Posts: 25
Joined: 18 Jan 2021, 14:19

window position

Post by emrekarahan0001 » 19 Jul 2021, 15:25

Hello.. if it is a full screen window, how can I move a window position to and from the location I have specified?

User avatar
mikeyww
Posts: 27372
Joined: 09 Sep 2014, 18:38

Re: window position

Post by mikeyww » 19 Jul 2021, 15:49

You can Send the key sequence to exit full-screen mode.

User avatar
emrekarahan0001
Posts: 25
Joined: 18 Jan 2021, 14:19

Re: window position

Post by emrekarahan0001 » 19 Jul 2021, 15:53

if page is maximize or minimize, this is not work..

Code: Select all

^z::
CenterWindow("ahk_exe chrome.exe")

CenterWindow(WinTitle)
{
    WinGetPos,,, Width, Height, %WinTitle%
    WinMove, %WinTitle%,, (A_ScreenWidth/2)-(Width/2), (A_ScreenHeight/2)-(Height/2)
}
Return

User avatar
emrekarahan0001
Posts: 25
Joined: 18 Jan 2021, 14:19

Re: window position

Post by emrekarahan0001 » 19 Jul 2021, 16:03

i got it done.. :thumbup:

Code: Select all

WinRestore, ahk_exe chrome.exe

Post Reply

Return to “Ask for Help (v1)”