Sign in to follow this  
Followers 0
MiCCAS

If Statementsand Registry

7 posts in this topic

Hi Guys,

I tried the following statement I keep getting errors:

If RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System",

"ConsentPromptBehaviorAdmin", "REG_DWORD") =00000000 Then

Return GUICtrlSetState(-1, $GUI_DISABLE)

EndIf

Basically I am trying to check if the registry area as described above has 00000000 and if so disable the button.

Share this post


Link to post
Share on other sites



RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System","ConsentPromptBehaviorAdmin")


[quote]Baby you're all that I want, When you're lyin' here in my armsI'm findin' it hard to believe, We're in heavenAnd love is all that I need , And I found it there in your heartIt isn't too hard to see, We're in heaven .Bryan Adams[/quote].............................................................................[u]AUTOIT[/u]

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

did you check the parameters for Regread() ? you have one too many.. :)

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Never mind, got it working thanks.

Share this post


Link to post
Share on other sites

did you check the parameters for Regread() ? you have one too many.. :)

Bah, I fix it and you guys help.. haah, yeah I just got it working thanks a lot guys :P

Share this post


Link to post
Share on other sites

Ok, do you guys know how to make it so that when I click a button that button become enabled? And when I click another button in that group the others because reenabled if they were disabled?

Share this post


Link to post
Share on other sites

Ok, do you guys know how to make it so that when I click a button that button become enabled? And when I click another button in that group the others because reenabled if they were disabled?

GuiCtrlGetState()?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0