Here is my simple code:
Code: Select all
x::ControlClick, x350 y350, WinTitle
Thanks in advance!
Code: Select all
x::ControlClick, x350 y350, WinTitle
Code: Select all
x::controlClick,% "x350 y" . a_screenHeight - 350,WinTitle
Nice solution, but it actually does not work.Masonjar13 wrote: ...
Code: Select all
SetTitleMatchMode, 2
#IfWinActive Paint
{
x::ControlClick, % "x350 y" . A_ScreenHeight - 350, Paint
}
Code: Select all
winTitle:="ahk_class MSPaintApp ahk_exe mspaint.exe"
#if winActive(winTitle)
x::
winGetPos,,,,wh
controlClick,% "x350 y" . wh - 350,% winTitle
return
Thanks, this one works!Masonjar13 wrote:Probably should have specified which corner you were referring to in your OP. You can get the offset using the same math, but replace a_screenHeight with the window height.Code: Select all
winTitle:="ahk_class MSPaintApp ahk_exe mspaint.exe" #if winActive(winTitle) x:: winGetPos,,,,wh controlClick,% "x350 y" . wh - 350,% winTitle return
Code: Select all
x::
...
....
...mode stuff to do
...
...ok im done
return
Users browsing this forum: No registered users and 425 guests