Thanks for your ideas and comments, the script is working perfectly now, looking like this:
Code:
;2005-09-20 move active window around with Ctrl+Windows+left/right/up/down
;move active window xx pixels right
;replace # (Windows key) with ^# (Ctrl + Windows keys) if you like
#right::
wingetpos x, y,,, A ; get coordinates of the active window
x += 25 ; add this distance to the x coordinate
mousegetpos, mx, my
winmove, A,,%x%, %y% ; make the active window use the new coordinates
mousemove, %mx%, %my%, 0
return ; finish
; move active window xx pixels left
#left::
wingetpos x, y,,, A
x -= 25
mousegetpos, mx, my
winmove, A,,%x%, %y%
mousemove, %mx%, %my%, 0
return
; move active window xx pixels up
#Up::
wingetpos x, y,,, A
y -= 25
mousegetpos, mx, my
winmove, A,,%x%, %y%
mousemove, %mx%, %my%, 0
return
; move active window xx pixels down
#Down::
wingetpos x, y,,, A
y += 25
mousegetpos, mx, my
winmove, A,,%x%, %y%
mousemove, %mx%, %my%, 0
return
;2005-09-20 move active window around with Ctrl+Windows+left/right/up/down