BlazeLondon Posted February 23, 2006 Share Posted February 23, 2006 Can anyone point me in the directon of reading the state of a check box. I have 3 check boxes I want to do some IF THEN routines to allow only one to be selected If box a is selected then deselect boxes b and c And then at the end I want to action the selected box If box a is checked then do this if box b is checked then do that Cant see that in the help! Link to comment Share on other sites More sharing options...
GaryFrost Posted February 23, 2006 Share Posted February 23, 2006 Can anyone point me in the directon of reading the state of a check box. I have 3 check boxes I want to do some IF THEN routines to allow only one to be selected If box a is selected then deselect boxes b and c And then at the end I want to action the selected box If box a is checked then do this if box b is checked then do that Cant see that in the help! If BitAnd(GuiCtrlRead($A),$GUI_CHECKED) = $GUI_CHECKED Then ; do this EndIf If BitAnd(GuiCtrlRead($B),$GUI_CHECKED) = $GUI_CHECKED Then ; do that EndIf SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
BlazeLondon Posted February 23, 2006 Author Share Posted February 23, 2006 If BitAnd(GuiCtrlRead($A),$GUI_CHECKED) = $GUI_CHECKED Then ; do this EndIf If BitAnd(GuiCtrlRead($B),$GUI_CHECKED) = $GUI_CHECKED Then ; do that EndIf THANK YOU ! Thats out of my league, is there anything I can read in the help that will describe what you did!? Link to comment Share on other sites More sharing options...
GaryFrost Posted February 23, 2006 Share Posted February 23, 2006 THANK YOU ! Thats out of my league, is there anything I can read in the help that will describe what you did!? Look for GuiCtrlRead in the help SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
BlazeLondon Posted February 23, 2006 Author Share Posted February 23, 2006 Look for GuiCtrlRead in the helpHey look what I did mum!Well it kind of works in a bizarre sort of way!LOLnick.au3 Link to comment Share on other sites More sharing options...
GaryFrost Posted February 23, 2006 Share Posted February 23, 2006 (edited) Try this #include <GUIConstants.au3> ;#NoTrayIcon GUICreate("fun", 640, 480) $mylist = GUICtrlCreateList("", 5, 165, 629, 165, BitOR($LBS_SORT, $WS_BORDER, $WS_VSCROLL, $LBS_NOTIFY)) GUIStartGroup() $outlook = GUICtrlCreateRadio("Somebody works on this computer and it has Microsoft Outlook or Outlook Express e-Mail.", 5, 350) $exchange = GUICtrlCreateRadio("This computer is an unattended Server and has Microsoft Exchange Installed.", 5, 368) $nonms = GUICtrlCreateRadio("This computer is an unattended Server and has a non Microsoft e-Mail system installed.", 5, 386) GUISetState() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit Case Else ;;;;; EndSelect WEnd GUIDelete() Exit Edited February 23, 2006 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
BlazeLondon Posted February 23, 2006 Author Share Posted February 23, 2006 Hey look what I did mum!Well it kind of works in a bizarre sort of way!LOLStill scratching my head, if i reverse the order of the if ... then statements the problem goes upside down! Link to comment Share on other sites More sharing options...
BlazeLondon Posted February 23, 2006 Author Share Posted February 23, 2006 Still scratching my head, if i reverse the order of the if ... then statements the problem goes upside down!Okay radio button is better!Do you offer advice on a paid for basis?Whereby I could ask questions as I go through this project and pay for your time to answer them?I feel like I should give something back really Link to comment Share on other sites More sharing options...
GaryFrost Posted February 23, 2006 Share Posted February 23, 2006 Okay radio button is better!Do you offer advice on a paid for basis?Whereby I could ask questions as I go through this project and pay for your time to answer them?I feel like I should give something back really All I ask is that once you've learned enough to help others on the forum to do so. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
BlazeLondon Posted February 23, 2006 Author Share Posted February 23, 2006 All I ask is that once you've learned enough to help others on the forum to do so.Is it possible with AutoIT to search all folders on a hard drive for *.tmp; *.bak and then put the folders it finds them in inside an array?like $array containsc:\windows\tempc:\mydocu~1\nick\locals~1\tempOr some other way maybe? 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