Sign in to follow this  
Followers 0
FMS

Reading checkboxes

4 posts in this topic

Dear reader,

I´ve a problem whit reading chexboxes en hopes someone can help me whit this.

The problem is that i don´t know wish ID to take.

Iff i run desk.cpl and want to know whish is the master monitor.

Iff i know i want to change it to the other >_<

I know it is control read function ( i think )

But now whis ID to choose and is it the right function????

can anyone help me whit this?

thnx in advanced :(

greez FMS


as finishing touch god created the dutch

Share this post


Link to post
Share on other sites



is this what u mean u need?

Case $Button
            If _IsChecked($CheckBox1) Then
                ;do what eva u want
            EndIf
            If _IsChecked($Checkbox2) Then
                ;do what eva u want
            EndIf

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

i a sort of way yes >_<

This is what i have this far.(as u c i m learning at the time :()

Maybe a little bit clearer 4 u.

The thing is,.... the only thing i need now is to goto the Tab settings

and read the checkboxes from which is the main monitor.

so iff i dont know which ID i need for reading the checkboxes it´s a little bit hard :(

So if monitor 1 is the main i want to change it to monitor 2 :D

#RequireAdmin

Send("#r")
;WinWaitActive("Run")
Sleep(10)
Send("desk.cpl")
Send("{ENTER}")
While not WinActive("Display Properties")
    Sleep(10)
WEnd
MsgBox(0,"!!!!","End of script")
Edited by FMS

as finishing touch god created the dutch

Share this post


Link to post
Share on other sites

If ControlCommand ( "title", "text", controlID, "IsChecked") = True Then


as finishing touch god created the dutch

Share this post


Link to post
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
Sign in to follow this  
Followers 0