the application will be place automatically at right corner and cannot be resize.
Code: Select all
#Persistent
SetTimer, move_position, 0
move_position:
IfWinNotExist, ahk_class QWidget
return
SetTimer, move_position, Off
WinGetPos,,, Width, Height, ahk_class QWidget
Xpos := (1450)
Ypos := (A_ScreenHeight/2-Height/2)
WinMove, ahk_class QWidget,, %Xpos%, %Ypos%
WinSet, AlwaysOnTop, On, ahk_class QWidget
WinSet, Style, -0x40000, ahk_class QWidget
WinWaitClose, ahk_class QWidget
SetTimer, move_position, On
return
i want to add lock position so it will not be accidently move
is there a way or possible through ahk?
thank you !