Jump to content

If Statementsand Registry


 Share

Recommended Posts

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.

Link to comment
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]

Link to comment
Share on other sites

  • Developers

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

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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()?

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...