forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


REGread error

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Wed Jan 25, 2006 11:53 am    Post subject: REGread error Reply with quote

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 Shocked
Thanks in advance..
Back to top
View user's profile Send private message Visit poster's website
Hooligan
VDS Developer
VDS Developer


Joined: 28 Oct 2003
Posts: 480
Location: California

PostPosted: Wed Jan 25, 2006 1:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Wed Jan 25, 2006 1:31 pm    Post subject: Reply with quote

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 Wink

Thanks for spotting that out.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group