| View previous topic :: View next topic |
| Author |
Message |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Wed Jan 25, 2006 11:53 am Post subject: REGread error |
|
|
I realize theres a DLL that will read the colors/bits but I found the setting in the registry that tells 16 or 32, but can't seem to get @regexists() and @regread() working.
I get a runtime ERROR 13 on the below registry exists and read also:
| Code: | Title Win XP Video Display Info
%%reg_exists_bits = @REGEXISTS(LOCAL\SYSTEM\ControlSet001\Hardware Profiles\0001\System\CurrentControlSet\Control\VIDEO\{15B38A34-658E-4CF4-963D-EF0CCE032498}\0000\Mon10000084,DefaultSettings.BitsPerPel)
IF @equal(%%reg_exists_bits,1)
%%reg_bits = @regread(LOCAL\SYSTEM\ControlSet001\Hardware Profiles\0001\System\CurrentControlSet\Control\VIDEO\{15B38A34-658E-4CF4-963D-EF0CCE032498}\0000\Mon10000084,DefaultSettings.BitsPerPel)
INFO %%reg_bits
ELSE
INFO Not Found!
END
EXIT |
I tried HLM and LOCAL both, and the syntax should be all right since I copy/paste all of it from the registry (copy key name)and replaced the HKEY_LOCAL_MACHINE with HLM and or LOCAL.
Anyone a VDS5 registry brain
Thanks in advance.. |
|
| Back to top |
|
 |
Hooligan VDS Developer


Joined: 28 Oct 2003 Posts: 480 Location: California
|
Posted: Wed Jan 25, 2006 1:14 pm Post subject: |
|
|
Apparently you experianced a brain-fart...
You need a comma between "HLM" and "system\currentcontrol..."
| Code: | | %%reg_exists_bits = @REGEXISTS(LOCAL,SYSTEM\ControlSet001\Hardware Profiles\0001\System\CurrentControlSet\Control\VIDEO\{15B38A34-658E-4CF4-963D-EF0CCE032498}\0000\Mon10000084,DefaultSettings.BitsPerPel) |
Enjoy...
Hooligan _________________ Hooligan
Why be normal? |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Wed Jan 25, 2006 1:31 pm Post subject: |
|
|
Yeah lol
I fixed that before, but somehow messed up again, anyways that don't work now for some reason (not dependible I guess).
I got CodeScripts DSU works perfect
Thanks for spotting that out. |
|
| Back to top |
|
 |
|