MiCCAS Posted January 7, 2008 Share Posted January 7, 2008 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 More sharing options...
star2 Posted January 7, 2008 Share Posted January 7, 2008 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 More sharing options...
Developers Jos Posted January 7, 2008 Developers Share Posted January 7, 2008 (edited) did you check the parameters for Regread() ? you have one too many.. Edited January 7, 2008 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 More sharing options...
MiCCAS Posted January 7, 2008 Author Share Posted January 7, 2008 Never mind, got it working thanks. Link to comment Share on other sites More sharing options...
MiCCAS Posted January 7, 2008 Author Share Posted January 7, 2008 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 Link to comment Share on other sites More sharing options...
MiCCAS Posted January 7, 2008 Author Share Posted January 7, 2008 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? Link to comment Share on other sites More sharing options...
rasim Posted January 9, 2008 Share Posted January 9, 2008 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now