Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Attaching a window to another
#3
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
Code:
Copy      Help
;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.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)