Hello everybody!
I'm using the ChatGPT AutoHotkey Utility and loving it. Sometimes I have to work with just one screen, so it would be great if I could move de window of the answer tray.
Is that possible? How should I include in the .ahk file?
I'm sorry if I'm asking something basic, but I'm a total beginner.
Thanks in advance,
Jorge
Moving a window
Re: Moving a window
This was created when I was just learning AutoHotkey, not sure if it will be helpful to you.
Code: Select all
#Requires AutoHotkey v2
CoordMode "Mouse"
^m:: ; Ctrl+M
{
MouseGetPos , , &id
WinGetPos , , &WW, &WH, 'ahk_id ' id
while getKeyState("m", "P") {
MouseGetPos &x, &y
winMove x-(WW/2), y-(WH/2), , , 'ahk_id ' id
sleep 10
}
}