This is brilliant!! Thank you @mikeyww I honestly didn't think this would be a possibility.
I'm curious now, using your method, about two things.
- Is there a way to have a consistent relative space between the bottom of the player and the bottom of the screen?
I'd like to put a rectangular graphic that spans most of the width of the screen but fits inside this space between the bottom of the player and the bottom of the screen probably with a slight consistent but relative padding on both top and bottom and the sides.
- Is there a way to have a consistent relative position from both the left and right sides of the screen where the image would start and end.
Looking at the player right now I'm thinking I would like the left edge of the image to start where the audio timeline starts and the right edge of the image to end where the timeline ends. For clarity I guess I'm essentially asking for a padding on both sides of the image but with these positions being relative to whatever resolution scaling is happening.
I added the image control to the code where I'm guessing you'd put it but added question marks to those area I'd be unsure of.
In regards to the stretching of the image file, I'm not concerned about that as the image is a simple color scheme.
Thank you in advance for your insight and thank you again for solving the first problem. I was seriously banging my head on my desk.
Code: Select all
SysGet, m, MonitorWorkArea
width := mRight - mLeft, height := mBottom - mTop
Gui, New,, Player
Gui, Add, ActiveX, x0 y0 w%width% h%height% vWMP, WMPLayer.OCX
Gui, Add, Picture, xm? y? w%width% h? vImg
Gui, Show
Gui, +LastFound
WinMove, 0, %mTop%
GuiControl, Move, WMP, x0 y0 w%gw% h%gh%
GuiControl, Move, Img, xm? y? w%gw% h?
Return
GuiSize:
gw := A_GuiWidth, gh := A_GuiHeight
Return
F4::
GuiEscape:
GuiClose:
SoundBeep, 1500, 20
ExitApp