01-10-2012, 09:43 AM
I have found a very easy and simple way to maintain two windows attached so that I can move them as they would be a single window, by only moving the windows named QMP:
Function qmp_reposition
The nice thing is that I have saved this code not as a macro, but as a function; in this way it behaves very smoothly. If anybody has suggestions to improve this code, answer here, please. Thank you.
Function qmp_reposition
;Start
int x y
GetWinXY(win("QMP") x y)
mov (x-373) (y-32) "+Now Playing"
wait 0 WV win("QMP" "PlayerCanvas")
goto Start
The nice thing is that I have saved this code not as a macro, but as a function; in this way it behaves very smoothly. If anybody has suggestions to improve this code, answer here, please. Thank you.