Edit: I've added 48Hz to the rar file:
http://www.xpmediace...?do=file&id=176
Hi everyone,
I'm so close to having this working, but I think I need some help from someone who writes VMC apps.
Background:
I was watching some US Xvids & the judder was driving me mad, so I ran the wizard & changed to 60Hz - not an elegant solution. I started to think that it must just be a simple registry change, so it shouldn't be too difficult to set up some shortcuts. After some research I found some good info about changing refresh rate for Power DVD, & some good info about launching games from within VMC. The result works outside of VMC, but it's hit & miss from within.
What I did (in a ham-fisted way):
Downloaded & installed AutoHotKey - it allows you to create a script & then convert it in to an exe.
I created a folder called c:\refreshrate\ & to put everything in (& changed scripts to reflect that).
Created a 50Hz & a 60Hz reg key:
50Hz:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Settings\DisplayService]
"RefreshRate"=dword:00000032
60Hz:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Settings\DisplayService]
"RefreshRate"=dword:0000003C
Lifted these AutoHotKey scripts & created 50hz.exe & 60hz.exe files. They both work perfectly!
I then created 50hz.mcl & 60hz.mcl files in c:\users\"current user"\AppData\Roaming\Media Center Programs\ in the format of:
<application
run="C:\\refreshrate\50hz.exe"
ThumbnailImage = "C:\\refreshrate\panel.png"
/>
The panel.png is the flat panel image copied from within the ehome folder (not sure what it's actually named in there).
The result is 2 programs (called 50hz & 60hz) in the program library (next to online media). When triggered, they seem to perform exactly as they do when you trigger the exe from outside of the MC gui, but actually changing the refresh rate is hit & miss (100% when using the exe's directly). They close the gui, make the change & then re-open the gui, but when checking regedit, the refresh rate usually hasn't changed.
My hair-brained theories:
- The registry change is being trigged before the gui is actually closed, locking the key. I tested this by adding 3 second pauses (using the choice command) in to the script & the result was the same.
- It's some sort of user security issue. I changed to a shortcut to the exe's in the mcl so that I could set the shortcut to run as administrator at all times - didn't seem to help.
Now, I know mcl is a bit last year, but the other ways of registering apps in VMC seem far too complicated - please correct me if I'm wrong.
If someone can get it working, how about putting the shortcuts on the videos line of the main menu?
Cheers,
Justin
Edited by logifuse, 17 June 2009 - 05:21 PM.




Latest Posts
This topic is locked









