cbird1057

Q: Screen Sharing and Unwanted Menu Bar

When using full screen mode with a shared computer, the screen sharing menu bar drops down over the shared computer's menu bar whenever the mouse hits the top of the screen. This makes working awkward since it's not unusual to hit the top of the screen when trying to use the menu bar in the remote session.

 

Is there any way to alter this behavior? Either by imposing a multi-second delay before the screen sharing menu bar drops down or by requiring a special set of keys to be held down before the behavior is triggered?

 

Thanks in advance for any solutions or hints.

iMac, OS X Mavericks (10.9.5)

Posted on Apr 21, 2016 5:51 PM

Close

Q: Screen Sharing and Unwanted Menu Bar

  • All replies
  • Helpful answers

  • by rccharles,

    rccharles rccharles Apr 22, 2016 11:34 AM in response to cbird1057
    Level 6 (8,486 points)
    Classic Mac OS
    Apr 22, 2016 11:34 AM in response to cbird1057

    What remote client are you using?   I use Realvnc server and Realvnc client.

     

    R

  • by cbird1057,

    cbird1057 cbird1057 Apr 22, 2016 1:20 PM in response to rccharles
    Level 1 (12 points)
    Mac OS X
    Apr 22, 2016 1:20 PM in response to rccharles

    I'm using the Apple Screen Sharing that comes bundled with OS X.

     

    Sorry, I'm not budgeted for additional purchases. Must be nice, tho.

  • by rccharles,Helpful

    rccharles rccharles Apr 23, 2016 2:15 PM in response to cbird1057
    Level 6 (8,486 points)
    Classic Mac OS
    Apr 23, 2016 2:15 PM in response to cbird1057

    The realvnc client is free.  You can try the sever for free.  You can use the server for free, if you can live with the restriction that you must initiate the session from the server .  The point is to try other options and see if you can narrow down the problems.

     

    There are other vnc clients such as chicken of the vnc.

     

    R

  • by cbird1057,

    cbird1057 cbird1057 Apr 23, 2016 2:14 PM in response to rccharles
    Level 1 (12 points)
    Mac OS X
    Apr 23, 2016 2:14 PM in response to rccharles

    RealVNC worked very nicely! I liked how the interface had a *small* dropdown tab that included an option to display the menu bar. This is something Apple might consider instead of displaying the menu bar every time the mouse hits the top of the screen. A bit of an overkill in the UI department IMHO.


    Indeed, the restriction that I must initiate the session from the server was the deal breaker, since I found myself running up and down the stairs to enter credentials. Very perceptive of you to recognize that, R.


    Thanks for your help! I'm reading some threads from people who are unable to make the menu bar display when hovering over the top of the screen, so maybe there's a solution there.

  • by rccharles,

    rccharles rccharles Apr 23, 2016 4:39 PM in response to cbird1057
    Level 6 (8,486 points)
    Classic Mac OS
    Apr 23, 2016 4:39 PM in response to cbird1057

    I wrote up an apple script I could initiate remotely.  Worked about 85% of the time.  I'll dig it up if you like. The problem was that it uses a simulated mouse click to click on the realvnc menu item.  The menu items move.  Now, if you could figure out to fix the location of the menu item or identify where the menu item is, the script would work better.  Finding the location of the menu item might be possible, but I never learned how to read the underlying data structure. [ more like a data mess not structure ]

     

    You can use the free realvnc client for free.  Did you try connecting to apple share? I've set the client to use key f1 to get to the menu.  That way I don't accidentally get the realvnc menu bar.

     

    R

  • by Roote,

    Roote Roote Apr 23, 2016 6:04 PM in response to cbird1057
    Level 2 (417 points)
    Apr 23, 2016 6:04 PM in response to cbird1057

    Hi cbird1057. If you are willing to adapt UI interaction from mouse to keyboard, you can perform menu navigation on the remote computer you are screen sharing via the keyboard . To focus the menu bar, press either Control-F2 or FN-Control -F2 depending on  whether you have selected or deselected "Use all F1, F2. etc. keys as standard function keys" from  > System Preferences > Keyboard. Type a menu name to move focus to it, or use the Left Arrow and Right Arrow keys. Press Return to open the selected menu. Type a menu item's name or use the Up Arrow and Down Arrow keys to move focus. Press the Return key to choose the selected menu item. Press the Esc key to exit menu focus.

  • by rccharles,

    rccharles rccharles Apr 24, 2016 10:19 AM in response to Roote
    Level 6 (8,486 points)
    Classic Mac OS
    Apr 24, 2016 10:19 AM in response to Roote

    Thanks.  I'll have to try it out & post the resulting Apple Script.

     

    R

  • by rccharles,

    rccharles rccharles Apr 24, 2016 11:06 AM in response to rccharles
    Level 6 (8,486 points)
    Classic Mac OS
    Apr 24, 2016 11:06 AM in response to rccharles

    Here is my current applescript.  What I do is to use ssh to login to my remote system.  Then, I run the following script from the command line.  My remote system is running 10.4.11.

     

    
    log "  --- Starting on " & ((current date) as string) & " --- "
    
    
    -- play sound seems to let a process hang around
    try
        set theLoc to ((path to system folder) as string) & "Library:Sounds:"
      
      
        -- Play Sound
        -- http://microcosmsoftware.com/playsound/
      
        tell application "Play Sound"
            play theLoc & "Basso.aiff" repeat 4
        end tell
      
    end try
    
    
    -- Go after screen resolution
    do shell script "/usr/sbin/system_profiler SPDisplaysDataType | grep 'Resolution'" -- get info
    tell the result to set {DisplayWidth, DisplayHeight} to {word 2, word 4} -- get resolution
    repeat with i from 1 to 20
        if DisplayWidth = 800 then
            (move mouse {474 + (i * 5), 14})
        else
            -- one icon size is about... 30 horizonal. bigger number is to the right
            (move mouse {726 + (i * 10), 11})
        end if
      
        click mouse
        delay 2
      
        tell application "System Events"
            repeat 6 times
                key code 125 -- cursor down        key code 125
                delay 1
            end repeat
            delay 2
            keystroke return
            delay 3
            -- command a to hilight input field
            repeat 12 times
                --key code 97 -- a
                --delay 1
            end repeat
            keystroke "192.168.0.100:5900"
            -- if you went to press return after typing the password
            delay 3
            keystroke return
          
            -- incase we get an error message. should probably be ok, in good case.
            delay 3
            keystroke return
          
        end tell
        delay 3
        --tell "System Events" to set frontmost of process "My Application" to true
        set currentApp to path to frontmost application
        set myPath to (path to me) as alias
        log "currentApp & myPath"
        log currentApp
        log myPath
        activate myPath
      
        set theResult to display dialog "Remote session running?" buttons {"Yes", "No"} default button "Yes" giving up after 7
        log theResult
        if button returned of theResult is "Yes" then exit repeat
      
    end repeat
    
    (*
        First, there is the XTools scripting addition, which will give AppleScript the ability to move the mouse.
      
        http://www.lestang.org/osax/XTool/
        XTool-2.0.dmg.tgz
      
        Installation :
    
        Drag XTool.osax from insite the image to one of the following locations (create the directory if it does not exist) :
    
        a : ~/Library/ScriptingAdditions/
        b : /Library/ScriptingAdditions/
        c : /System/Library/ScriptingAdditions/
    
        I have it in directory /System/Library/ScriptingAdditions/
        My other two directories do not exit: ~/Library/ScriptingAdditions/ &
            /Library/ScriptingAdditions/
    
    .     Next, you will need to place a script application into your login items (System Preferences > Accounts > Login Items) that will move the mouse when you log in:
    
    
    
    
    
    
    
    *)
    
    
    
  • by rccharles,

    rccharles rccharles Apr 24, 2016 11:21 AM in response to Roote
    Level 6 (8,486 points)
    Classic Mac OS
    Apr 24, 2016 11:21 AM in response to Roote

    The control + f2 gets me to the current running app, but ...

     

    I am interested in getting to a menu item icon [ current name ? ]

     

    I need to click on the vnc icon.  The only way I know how to do this is to use a cursor click.  Need someother way.

     

    Screen Shot 2016-04-24 at 2.17.34 PM.png

  • by cbird1057,

    cbird1057 cbird1057 Apr 24, 2016 1:31 PM in response to cbird1057
    Level 1 (12 points)
    Mac OS X
    Apr 24, 2016 1:31 PM in response to cbird1057

    Thanks all you nice folks for the hints and suggestions! I believe it will take some time to come up with a solution for this, bit the F2 menu technique has some potential. I never even knew it existed (learn something new ALMOST every day). All of this will come in handy some day.

  • by Roote,

    Roote Roote Apr 24, 2016 7:21 PM in response to rccharles
    Level 2 (417 points)
    Apr 24, 2016 7:21 PM in response to rccharles

    Hi rccharles. If using OS X's native Screen Sharing app, you can access menulets on the remote computer via the keyboard with Control-F8 or FN-Control-F8. You may need to press the Down Arrow key rather than Return to open the selected menulet. Toggle between Control Mode and Observe Mode with Option-Command-X. While in Observe Mode you can access the local computer's menu bar menus or its menulets via the keyboard shortcuts.