How to check Mirror Displays checkbox

I have the following:
tell application "System Preferences"
activate
set current pane to pane "Displays"
tell application "System Events"
try
tell application process "System Preferences"
click radio button "Arrangement" of tab group 1 of window "Cinema HD"
tell window "Cinema HD"
click checkbox "Mirror Displays" of tab group 1 of window "Cinema HD"
end tell
end tell
end try
end tell
end tell
The only thing that doesn't work is the checkbox line. I've also tried it as checkbox 1, BTW.
What am I doing wrong?

Hi, Pierre--
No, I used UI Browser.
However, I think I may have found the issue, although not the solution. Remember that mirroring is available only when you have 2 monitors, which I do. But that means the Displays open 2 windows, in my case, one named "Cinema HD", the other "Samsung". They both have the "Mirror Displays" checkbox.
I tried doing:
click radio button "Arrangement" of tab group 1 of window "Cinema HD"
tell window "Samsung"
click checkbox "Mirror Displays" of tab group 1
end tell
tell window "Cinema HD"
click checkbox "Mirror Displays" of tab group 1
end tell
end tell
But that again, doesn't work.

Similar Messages

  • How to check whether a checkbox is checked

    This code:
          if (checkBoxCSharpShown.IsChecked)
            checkBoxCSharpShown.IsChecked = false;
    elicits:
    "Cannot implicitly convert type 'bool?' to 'bool'. An explicit conversion exists (are you missing a cast?)"
    How can I check whether the checkBox is checked?
    Delphi ancient/C# newbie

    So why is this so complicated? Why doesn't a check box have a true/false value? The answer is that a checkbox can (optionally and not by default) be a three-state control.
    When ThreeState is true, the checkbox has three states:
    Checked
    Not Checked
    Indeterminate
    They correspond to these tests:
    bool checked = IsChecked.HasValue && IsChecked.Value == true
    bool unchecked = IsChecked.HasValue && IsChecked.Value == false
    bool indeterminate = IsChecked.HasValue == false
    One of the ways a three-state checkbox is used is in a property dialog. If the user selects multiple items (all having some boolean property called 'Active'--for instance), what should the proprety dialog show for that selection if the value of Active is different among the selected items? Should it show True? That wouldn't work, they are not all True, same for False. So instead the property dialog would show Indeterminate, indicating that the collection of Active values is neither True, nor False.
    Now having said all of that I'll refer you to:
    CheckBox.Checked
    This is true or false. If the ThreeState property is True, Checked returns True for True or Indeterminate.

  • How do I mirror display wirelessly on MacBook pro or iPad?

    How do I mirror the display of a MacBook Pro or iPad?

    Wrong forum.
    MacBook Pro
    MacBook Pro Apple Support

  • How to check if the checkbox is checked.

    Hi, I am running blank with this one.
    I have a checkbox item called P46_PAGE2 with static LOV STATIC:;1
    How do I check if it is check using Javascript.
    Thanks in advance

    if ($x('P46_PAGE2_0').checked){
    <your code>
    }Check out this blog entry about the Checkbox in APEX:
    http://dgielis.blogspot.com/2008/02/checkbox-in-apex.html

  • How to check whether a checkbox is checked or not

    hi all,
            how should i check whether a checkbos is checked or not. if it is checked then a parameter should be made as enabled can i make it in report program..
    thanks and regards,
    yogesh

    HI
    PARAMETERS: P_CK AS CHECKBOX USER-COMMAND CHK,
                             P1 MODIF ID AAA,
                             P2 MODIF ID BBB.
    AT SELECTION-SCREEN OUTPUT.
        LOOP AT SCREEN.
           CASE SCREEN-GROUP1.
              WHEN  'AAA'.
                 IF P_CK = 'X'.
                    SCREEN-ACTIVE = 0.
                 ENDIF.
              WHEN 'BBB'.
                   IF P_CK = SPACE.
                    SCREEN-ACTIVE = 0.
                 ENDIF.           
             ENDCASE.
             modify screen. 
        ENDLOOP.
    Max

  • How to check if a checkbox is checked

    Hello,
    I have got the following problem. I have got a page with three checkboxes and just want to check when i click a button at the end of the page if one of these checkboxes is checked and set a coresponding variable in the sessionbean to remember this. I imported the projekt from creator 1 where you could check this with the checkbox.isSelected() method in creator 2 this should be the checkbox.isChecked() method but he just wont set my value when i click the button at the end of the page. I already tried to move the isChecked method into the valueprocesschange method or the actionevent for the button (where it belongs) but nothing helps. Have you any suggestions what i could be making wrong?
    Thanks in advance for help
    Acinonyx

    Try
    checkbox1.getSelected()
    this is the function that works in JSC 2.

  • In struts how to check if a checkbox must be selected?

    i want to be be able to give an error message the checkboxes arent selected using struts html:error tag how do that..

    Try
    checkbox1.getSelected()
    this is the function that works in JSC 2.

  • How do i mirror displays on a regular tv?

    I upgraded to OS X Mavericks and I can't mirror my computer with my tv anymore.

    Hi abcatie,
    It sounds like you’ve run into an issue mirroring your Mac’s display onto your TV since upgrading to OS X Mavericks. There are several options available for mirroring your display onto a TV, the first article below will walk you through wirelessly mirroring your Mac’s display with an Apple TV and the second will walk you though configuring a directly connected external TV.
    OS X Mavericks: Wirelessly mirror your Mac screen to your HDTV
    OS X Mavericks: Connect multiple displays to your Mac
    If you run into any issues after following along with one of the articles above, just replay with details about the way your devices are configured and what you’re seeing.
    -Jason

  • No Video When 'Mirror Displays' Checked

    I have a macbook pro with 10.5.7. I connected an acer 22" lcd. OSX extends my desktop and the monitor works perfectly fine.
    When I check 'mirror displays', I completely lose video on both monitors. I have to pull the plug on the acer to make video come back on my macbook pro. When I reconnect, I lose video every time now.
    How can I somehow uncheck 'mirror displays' without the other monitor connected so that when I do connect it, it at least extends my desktop again? The option and tab is gone unless a second display is connected. however, if i connect it, i lose video and cant get to it to uncheck! is the a plist or something I can edit?

    Hello rsvirani
    Welcome to Apple Discussions
    Reset the SMU as instructed in the first article and then restart holding the Command, Option, P, and R keys as described in the second article to reset your Mac's PRAM and NVRAM.
    Resetting the SMC > http://support.apple.com/kb/HT1411
    Resetting your Mac's PRAM and NVRAM > http://support.apple.com/kb/HT1379
    Also see what's stored in PRAM > http://support.apple.com/kb/HT1242
    The display and video settings are stored in PRAM
    Dennis

  • Until external monitor update, how to mirror display?

    What is the preferred method of mirroring FCP X on an HDMI monitor? I would assume that I need a thunderbolt to HDMI cable? Then what?
    Cheers.
    Tom

    System Preferences > Displays > Arrangement. Then click the Mirror Displays checkbox...

  • Mirror Displays not working

    After recently purchasing a new LCD television, I noticed the composite video out from my MacBook was not ideal - there were two sets of wavy horizontal lines.
    I then bought a mini DVI to VGA adapter to use with the television's VGA input, which produced a much higher quality output, free of the horizontal lines.
    The problem I have encountered is that I can only mirror the displays, not use different resolutions as I could with video out. I noticed some strange irregularities when changing resolutions. When attempting to uncheck "Mirror Displays" and perform some other tasks in the "LCDTV" window, there is a beep and then nothing happens. The "Mirror Displays" checkbox remains unchecked but no action is taken.
    I am using Leopard, version 10.5.1. Is it possible that the problem is attributed to the LCD television? Is there any way to diagnose what the problem is?
    Thanks.

    I assume you specified the screen in vlc's video preferences and that screen is enabled when you play the video.  I'm guessing it's probably a bug (yet another bug) in vlc 2.x which I also assume you are using.  I long since gave up on vlc 2.x and stuck with vlc 1.1.12 which never has problems selecting my desired screen for full screen display (my TV).
    I suggest you look at and possibly post this problem to the vlc mac forum.

  • I have a late 2011 model MacBook Pro running Mountain Lion.  I love the AirPlay mirroring feature with Apple TV...BUT, how do I mirror with TVs that don't have Apple TV?  I used to run a cable from my mini display port to the HDMI input of a TV.

    I have a late 2011 model MacBook Pro running Mountain Lion.  I love the AirPlay mirroring feature with Apple TV...BUT, how do I mirror with TVs that don't have Apple TV?  I used to run a cable from my mini display port to the HDMI input of a TV.  This feature seems to be lost in the Mountain Lion upgrade.  Did Apple feel that once Mountain Lion came out that EVERYONE would have Apple TV?  There are no settings in System Preferences/Display like there used to be...only for AirPlay Mirroring.

    Running a cable to the HDMI port is still supported. (and still works on mine).
    If the Arrangement tab in System Preferences > Displays isn't present then it doesn't recognize the physical connection.  Double check all cables.  If that doesn't work try a PRAM reset:
    http://support.apple.com/kb/ht1379

  • How to obtain count of displayed checkboxes...

    OK, I give up. I checked the manuals, the forum, done a number of tests, and can not find the answer...
    I have a page that lists parents, and for those parents whose account is locked a checkbox will appear next to their name, allowing that parent to be selected so their account can be unlocked.
    SELECT
    CASE
    WHEN acct_locked = 'Y' THEN apex_item.checkbox(3,p_id)
    ELSE ' '
    END UNLOCK,
    p_id "View Stu",
    p_id "User ID",
    p_password "Pswd",
    CASE
    WHEN acct_locked = 'Y' THEN 'YES'
    WHEN acct_locked = 'N' THEN 'NO'
    ELSE NVL(acct_locked,' ')
    END "Acct Locked",
    I have a button at the bottom of the region that says 'Unlock Selected Users'.
    I only want to display the button if there are locked users (checkboxes displayed on the screen).
    I know I can use 'FOR i in 1..APEX_APPLICATION.G_F03.count' to see how many checkboxes have been selected. Is there a way to check a field to see how many checkboxes are displayed?
    That way if the displayed checkboxes count is > zero I can display the button that says 'Unlock Selected Users' - on other words, only display the button if there are users who need to be unlocked.
    Any other solutions would be greatly appreciated...
    TIA

    Andy,
    I did not manually create the checkboxes, they were automatically created by APEX in the following CASE statement in my SELECT for the region:
        CASE
        WHEN acct_locked = 'Y' THEN apex_item.checkbox(3,p_id)
        ELSE ' '
        END UNLOCK,
    I do not know what name/ID that APEX assigns to the checkboxes, only that to reference the value in the checkboxes on my Processes I have to use the following format:
        APEX_APPLICATION.G_F03(i)
    I did a View Page Source in my browser, and it appears that APEX uses javascript to construct the region portion of the page. There isn't anything that is identifiable to me.
    <script type="text/javascript">
    <!--
    var rowStyle = new Array(1);
    var rowActive = new Array(1);
    var rowStyleHover = new Array(1);
    rowStyle[1]='';
    rowStyleHover[1]='';
    rowActive[1]='N';
    function row_mouse_over1224265375934797690(rowNode,currentRowNum) {
    rowActive = 'Y';
    for( var i = 0; i < rowNode.childNodes.length; i++ ) {
    if (rowNode.childNodes.tagName=='TD') {
    rowStyleHover[currentRowNum] = rowNode.childNodes[i].style.backgroundColor;
    rowNode.childNodes[i].style.backgroundColor = '';
    function row_mouse_out1224265375934797690(rowNode,currentRowNum) {
    rowActive = 'N';
    for( var i = 0; i < rowNode.childNodes.length; i++ ) {
    if (rowNode.childNodes[i].tagName=='TD') {
    rowNode.childNodes[i].style.backgroundColor = rowStyleHover[currentRowNum];
    // -->
    </script>

  • Mirrored Display. How to sleep MBP display without closing LID to keep the machine vented?

    I just got my hands on a 15" MBP and I currently have a third party Display that I have connected to my Display output port. Mirrored display, and tried the clamshell mode but machine got quite hot by running in it that way. I was wondering if there is any way to keep the lid open while the mirrored mode on the external Display still runs?
    Also, if there are any third party software that does give me flexibility as to which display to sleep and such, and at least have control over the display output options, that would be a gem. Appreciate it if anyone has that info?
    Thanks a lot for taking time to help! Happy holiday and a great year to come for all!
    Miles of smiles,
    Jimbo

    Captfred,
    I've tried what the article suggests but it only seems to work if you want to wake the computer when it is sleeping or the screen saver is on.
    What I am trying to find out is how to start the computer when it is turned off without having to open it. I would imagine that there would be some key combination on the keyboard or perhaps a way to program the on/off button on the side of the Apple external display to do that.
    Any ideas ?
    Thanks in advance.

  • How to check a checkbox field value in fw9 PDF form

    Hi,
    I got a PDF given form IRS (http://www.irs.gov/pub/irs-pdf/fw9.pdf). While creating a widget to this pdf form to sign it, I merged the custum data to those PDF form fields using API setMergeFields.
    All the data fields are merged fine except the checkboxes. I tried by passing the values to the merge_fields array as 'On', '1', 'checked', 'checkbox(checked)' but no luck
    What is wrong here in checking the chexbox field in this fw9 PDF or How to check a checkbox field in a form?
    Thank you,

    Hi Simon,
    I re-added and edited the fields of fw9 form by pdf printer. While doing so, I made fields as ready only so that, the data cannot be edited in the form through the widget but will be merged the data to fields only be the code. Wherein Im using the widget only for signature but not for form filling.
    Here, Im able to merge my custom data to all fields while creating widget but not to the fields of checkboxes. The checkboxes fields which are made ready-only are not allowing me to merge the value as checked by the API.
    Please help me,
    Thanks you,

Maybe you are looking for