I've created a script to shoot the most active window over to your mouse, and also shoot your mouse over to the window.
Move window to mouse:
Code: Select all
#w::
{
WinGetTitle, Title2, A
; Activate top window
WinActivate, %Title2%
; This un-maximizes fullscreen things to prevent UI bug.
WinRestore, %Title2%
; Mouse screen coords = mouse relative + win coords therefore..
WinGetPos, xtemp, ytemp,,, A ; get active windows location
MouseGetPos, X, Y ; get mouse location
;; Calculate actual position
;; -16 on x and y pos allows you to doubleclick and close window(most of the time)
xpos:=X+xtemp-16
ypos:=Y+ytemp-16
WinMove, %Title2%, , %xpos%, %ypos% ; move window to mouse
}
Code: Select all
#q::
{
WinGetTitle, Title2, A
; Activate top window
WinActivate, %Title2%
;WinGetPos, xtemp, ytemp,,, A
; 10 is speed, 16, 16 is a good place to doubleclick and close window.
MouseMove, 16, 16, 10
Return
}
I will be trying to have it do it automatically when it detects a new window under 600x600pxl. like a dialog box.
Best