Autohotkey to resize windows not working

Questions and discussion about PokerTracker 4 for Windows

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

Autohotkey to resize windows not working

Postby khudson » Wed Apr 05, 2023 11:16 pm

I'd like to use a hotkey to resize a few child windows, like filters, every time I open them. I've tried 3 AHK scripts using both relative and absolute position and they've worked on every window except PT. If the cursor is over PT, it just turns into the loading icon and doesn't move, and if I start it away from the window it follows its route but the cursor doesn't change at the edge of the window. I tried running PT and the script as admin. I'm open to any alternative if there's no fix for this. Thanks!

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


MouseClickDrag, WhichButton, X1, Y1, X2, Y2 , Speed, Relative


#=::
WinGet, window, ID, A
InputBox, width, Resize window, Enter width:, , 170, 130
if (width != "")
{
InputBox, height, Resize Window, Enter height:, , 170, 130
}
WinMove, ahk_id %window%, , , , width, height
return
khudson
 
Posts: 2
Joined: Thu Nov 03, 2022 1:58 am

Return to PokerTracker 4

Who is online

Users browsing this forum: cuzzko89, zednara and 70 guests

cron