Code: Select all
Move:
If WinExist(wTitle) {
SoundBeep, 1900
WinGetPos,,, w, h
Random, x, mon3Left, mon3Right-w
Random, y, mon3Top, mon3Bottom-h
WinRestore
WinMove,,, x, y, w, h
} Else {
SetTimer,, Off
SoundBeep, 1000
}
Return
Code: Select all
Move:
If WinExist(wTitle) {
SoundBeep, 1900
WinGetPos,,, w, h
Random, x, mon3Left, mon3Right-w
Random, y, mon3Top, mon3Bottom-h
WinRestore
WinMove,,, x, y, w, h
} Else {
SetTimer,, Off
SoundBeep, 1000
}
Return