PDA

View Full Version : ?? Setting Registry Key Values



Ron
October 13th, 2002, 12:55 PM
Hi Steve,

I tried to find the plugins that Mike sent me, but I cannot find the attachments anymore :sad: so I guess we have to ask Mike this question.

-Ron

Ron
October 13th, 2002, 12:55 PM
I'm not sure if he checks in here to often,.. let me know if this doesn't work, I have his email I can ask him.

-Ron

SteveV
October 13th, 2002, 12:55 PM
I have a handful of PowerDVD options that can only be "Toggled" via the UI (right click menu). This presents some automation issues since it's impossible to reliably keep track of the toggle state of an option at any given time.

I'm able to turn the options on and off using the appropriate Reg Key and was hoping to use MMcM's SetRegValue 1.0 plugin to handle changing key values. Unfortunately, it appears that the SetRegValue plugin will only write "String Values". I need to change a "DWORD Value". Does anyone have any thoughts?

Not that it matters but I'm trying to change the following key:


KEY_CURRENT_USERSoftwareCyberLinkPowerDVDUIKeepAsp ect

[EDIT Not sure why, but phpBB insists on adding 2 backslash characters in the key name. Note that the actual key name has only single backslashes]

As you might expect, changing the DWORD Value to 1 enables the option, 0 disables it. I have a couple of other options that are setup similarly that I'd like to automate as well.

Thanks -- Steve

<font size=-1>[ This Message was edited by: SteveV on 2001-11-12 22:27 ]</font>

SteveV
October 13th, 2002, 12:55 PM
UPDATE:

I'm using what I thought was version 1.1 of the SetRegValue. The Girder Download page indicates 1.1 is the current version and shows a release date of May 23 2001. The actuall RegSetValue.dll file properties show version 1.0.0.1 and a create date of May 13, 2001 (file size 24,576 bytes).

So bottom line is that I'm not sure if this is the most recent version.

-- Steve

SteveV
October 13th, 2002, 12:55 PM
Anyone?

SteveV
October 13th, 2002, 12:55 PM
Hi Ron,

Thanks for the reply. I've sent Mike a PM.

-- Steve

SteveV
October 13th, 2002, 12:55 PM
...I'm not sure if he checks in here to often,.. let me know if this doesn't work, I have his email I can ask him.

That'd be great if you wouldn't mind.

Thanks -- Steve

SteveV
October 13th, 2002, 12:55 PM
Thanks Mike.

-- Steve

MMcM
October 13th, 2002, 12:55 PM
The runtime code actually supports this. If bvalue1 is true, then REG_DWORD is set from lvalue1, else REG_SZ is set from svalue2. The key (and named value name) comes from svalue1.

The UI is too simple to represent this right now. It needs some radio buttons.

But it ought to work with the current version if you hand edit the file.