alias refresh.tray {
var %a = $window(-1).w,%b = %a - 256
; ^ Screen width and same minus 256
var %c = $window(-1).h,%d = %c - 48
; ^ Screen height and same minus 48
var %x = $mouse.dx $mouse.dy
; Stores current position
while %b < %a {
: loop until cursor is at far right of screen
while %d < %c {
; loop until cursor is at bottom of screen
dll mouseevents.dll movemouse %b %d
; ^ moves cursor downwards in 10 pix increment (/inc line below)
inc %d 10
}
%d = %c - 50
; Reset height var
dll mouseevents.dll movemouse %b %d
; ^ moves cursor to the right in 10 pix increment (/inc line below)
inc %b 10
}
dll mouseevents.dll movemouse %x
; Restores cursor position
}