Jump to content

How to Check the Status of Check BOX (Enabled/Diabled)


Recommended Posts

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

>>>> 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.

post-69004-0-81877400-1362120478_thumb.j

Link to comment
Share on other sites

But I can't able to get the status of the check box

Try this

ControlCommand ( "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.

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

×
×
  • Create New...