sathish Posted March 1, 2013 Posted March 1, 2013 Hi Forum Members, Good Morning to all, I am new to autoit (Basically a perl developer), I have a query in window, in which several check boxes are there, i want to check a particular box, whether it is enabled or disabled, Window Screenshot: Here is the Window Properties expandcollapse popup>>>> Window <<<< Title: Define Styles Class: #32770 Position: 380, 195 Size: 449, 378 Style: 0x94C800C4 ExStyle: 0x00010101 Handle: 0x00090534 >>>> Control <<<< Class: Button Instance: 24 ClassnameNN: Button24 Name: Advanced (Class): [CLASS:Button; INSTANCE:24] ID: 156 Text: Position: 275, 224 Size: 30, 16 ControlClick Coords: 10, 4 Style: 0x50010002 ExStyle: 0x00000004 Handle: 0x000305BE >>>> Mouse <<<< Position: 668, 452 Cursor ID: 0 Color: 0xFFFFFF >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< OK Cancel Help &Apply &Factory settings &Use for new equations &Simple A&dvanced Style Font Character Style Bold Italic &Text . . . . . . . . . . . Times New Roman Fun&ction . . . . . . . Times New Roman &Variable . . . . . . . Times New Roman &L.C. Greek . . . . . Symbol Tiger U.C. &Greek . . . . . Symbol Tiger Sym&bol . . . . . . . . Symbol Tiger Vector-&Matrix . . . . Times New Roman &Number . . . . . . . Times New Roman &Extra Math . . . . . MT Extra User &1 . . . . . . . . Courier New User &2 . . . . . . . . Times New Roman Language/Keyboard: Te&xt style . . . . . . &Other styles . . . . . . >>>> Hidden Text <<<< &Primary font: Times New Roman &Greek and math fonts: Italic &variables Italic &lower-case Greek I have done some autoit scripts in past (1 year ago), usually the send keys etc, I used the Control Command to check and Uncheck radio buttons and Check box using the following commands ControlCommand ( "Translators", "&Translation to other language (text) :", 31, "CHECK") ControlCommand ( "Translators", "T&ranslator:", 42, "Selectstring", 'Tex -- Plain Tex') ControlCommand ( "Translators", "Include translator &name in translation", 41, "UNCHECK") ControlCommand ( "Translators", "Include MathType &data in translation", 40, "UNCHECK") But I can't able to get the status of the check box, Please guide me, Thanks & Regards Sathish V.
PhoenixXL Posted March 1, 2013 Posted March 1, 2013 But I can't able to get the status of the check boxTry thisControlCommand ( "title", "text", controlID, "IsChecked" ) My code: PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners. MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression.
JohnOne Posted March 1, 2013 Posted March 1, 2013 Tried everything except "IsChecked" eh? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
sathish Posted March 1, 2013 Author Posted March 1, 2013 Try this ControlCommand ( "title", "text", controlID, "IsChecked" ) Thanks for your Kind help, Now it's working fine, here is the completed code If ControlCommand("Define Styles", "", "Button24", "IsChecked", "") = 0 Then MsgBox(0, "", "not checked") Else MsgBox(0, "", "checked") EndIf
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