Guest
[Entry]
"I let myself decompile the @IvoFlipse's AltTab.zip script, and then tweak it a bit to move the mouse to the center of the window, here's the result:
; After Alt-Tab, move mouse to center of newly activated window. ; superuser.com/questions/14868/software-to-move-mouse-to-centre-of ; - updated based on http://www.favessoft.com/AltTab.zip; ; - modified to try to move to center of window. ~!Tab:: KeyWait, Alt KeyWait, Tab WinGetPos,x,y,width,height,A While (x < 0 Or y < 0) { Sleep,100 WinGetPos,x,y,width,height,A IfGreater,A_Index,2,Break } MouseMove,width/2,height/2 return"
|