You are here

Modify official app (XMPlayPortable)

1 post / 0 new
Bennieboj
Bennieboj's picture
Offline
Last seen: 4 years 9 months ago
Joined: 2010-09-16 07:28
Modify official app (XMPlayPortable)

Hi people,

I'm having a little "problem": whenever I use XMPlayPortable, it's located at the right top corner of my screen, but whenever I change to another pc with different screen dimensions, my player isn't at the right place. (too far to the right, left, ..)

In fact this can be fixed: I get the screenheight ant screenwidth using Custom.nsh:

${SegmentFile}

${SegmentInit}
    System::Call user32::GetSystemMetrics(i0)i.r0
    System::Call user32::GetSystemMetrics(i1)i.r1

    ${SetEnvironmentVariable} ScreenHeight $0
    ${SetEnvironmentVariable} ScreenWidth  $1
!macroend

Then I could use these enviromental variables (and the height and width of my player, if needed hardcoded) to change some numbers in the xmplay.ini file (windowX and windowY).
Normally this wouldn't be a problem, but since this is an official app there ain't a launcher.ini file in the installation, which I can edit.
I don't know what you guys are doing in that file, so I can't recreate it.

Anyone who can help me with this? Or can you guys include it into an official build perhaps?