Hiding the mouse on two screens

I have a FLEX project that I export to AIR. It has two separate windows that talk to each other, located on different screens. I dynamically resize the windows (setting them to fullScreen after moving them to the needed screen). After, I call Mouse.hide() on both windows. However, the mouse doesn't actually hide unless I click on both screens.
The problem is that this is a kiosk, and there is no way to click on the other screen because our only interface is a touch screen on one of the screens. I tried to move focus between the windows, but that didn't seem to work. So, I tried this:
[CODE]
        // Switch focus
        controlScreen.alwaysInFront = false;
        controlScreen.enabled = false;
        videoScreen.alwaysInFront = true;
        videoScreen.enabled = true;
        videoScreen.activate();
        // Put focus back
        videoScreen.alwaysInFront = false;
        controlScreen.alwaysInFront = true;
        controlScreen.enabled = true;
        controlScreen.activate();
[/CODE]
This, however, doesn't work. Does anybody have an idea what I could do to make the mouse actually disappear? I've tried calling Mouse.hide() in several different places and at different times during the program run, and it's no good...
If you need more details, ask. I'd be happy to share more.

Turns out each window has a cursorManager object. So, to remove the cursors, we first have to clear the cursor managor of all custom cursors, then hide the system mouse in each window. So:
[CODE]
        // first, we remove all connection to cursors through the cursorManager, then we hide the system manager, leaving us without any visible cursor.
        this.cursorManager.removeAllCursors();
        Mouse.hide();
[/CODE]
If you then add a function in the other screen (I called mine loadedAndPlaced() ), you can call that after you set and resize the other window that you had to create using actionScript. This worked beautifully.

Similar Messages

  • Hiding the Mouse on Start of Movie

    Hello All,
    I have a flash program that runs on a PC that is connected to a TV. In case it helps at all, the PC is running OpenSuSE 12.1/KDE 4.
    The PC is acting as a kiosk like device where no user is actually sitting at the PC doing stuff. If we ever need to do anything with it
    we do it remotley using something like VNC or Remote Desktop or SSH, etc....
    So what happens is when the PC is powered on it boots up and automatically logs in the default user. Then I set Firefox to start
    automatically on boot and I set it's Homepage to the URL where the swf file lives (*which is located on another Server). Also, Firefox
    automatically goes into Fullscreen mode mode using the Firefox Plugin "Full Fulscreen".
    The issue is that, after the PC boots up and Firefox starts and the Flash movie begins playing, I can see the Mouse pointer sitting in the
    middle of the screen which does NOT go away. So I found some code online that will hide the mouse after 'n' seconds. But the problem
    is that when the Flash movie starts the mouse will NOT disappear after 'n' seconds. It is possible to get it to disappear, but in order to do
    so I would have to tap the mouse so that it moves even the slightest, then after it stops moving it then disappears after 'n' seconds...
    Since there really isn't any person who starts the movie manually, or since no one sitting in front of it with a mouse in their hand this won't
    do what I wanted it to do....
    Here is what I have so far in order to hide the mouse:
    // Added this line after testing the code below. But still didn't hide the pointer when the movie was started
    //Mouse.hide();                   // Hide the mouse automatically when started (*no time limit for this one)
    var timeLimit:int = 3;         // Integer to hold what the Time Limit will be
    // Add the EventListener for when the Mouse is moved:
    stage.addEventListener(MouseEvent.MOUSE_MOVE, onMove);
    // Create a Timer Object and multiply timeLimit by 1000 to get seconds:
    var timer:Timer = new Timer(timeLimit * 1000);
    // Add the EventListener for the Timer:
    timer.addEventListener(TimerEvent.TIMER, onInactiveMouse);
    // Function "onMove()":
    //        *This will show the Mouse, stop the timer, then restart the timer...
    function onMove(event:MouseEvent):void {
            trace("In onMove() --- Showing the Mouse Now...");
            Mouse.show();
            timer.stop();
            timer.start();
    // Function "onInactiveMouse()":
    //        *This will hide the Mouse when the TimeLimit has been reached...
    function onInactiveMouse(event:TimerEvent):void {
            trace("In onInactiveMouse() --- Hiding the Mouse Now...");
            Mouse.hide();
    So I guess my question is, is there a way to hide the mouse without a Human having to intervene and move the mouse pointer?
    Also, I don't know if it was just some weird thing that happens, but say the movie is up and I move the mouse so it then disappears after n seconds.
    Then the Frame changes and under where the mouse is hiding a TextField appears (*NOT an input TextField, just a Dynamic Text) suddenly the mouse
    reappears, but it appears as the text selection pointer (*i.e. the one that looks like an Upper-Case "i"). And it won't disappear unless I move the pointer
    again, Strange..!  I guess I could fix this by changing all my TextFields to be NOT selectable, but I was just curious if anyone else had experienced this?
    Anyway, any thoughts/suggestions would be greatly appreciated!
    Thanks in Advance,
    Matt

    I decided which way I'm going to go with this and it seems to be doing the trick
    I'm using this C/C++ program I found online, which I eneded up tweeking a little bit since it was a pretty old code so some things were
    a bit out dated like the libraries, and a few other things. It uses the "X11" library in order to access elements of the screen including input
    devices like the mouse and keyboard.
    You simply execute the command on the CLI and pass it an X and Y Coordinate. Then once executed it will simply move the mouse to those
    coordniates specified, and apparently emulate a Right-Click from the mouse. I'm not exactly sure if it will actually do the right-click, but for my
    purposes just moving the mouse ever so slightly will be enough to bring the Flash Movie inside Firefox into focus.
    I then created a simple Shell Script which will run on boot up and will sit in a loop checking if Firefox is running, if it is found running, then it waits
    about 10 seconds or so, then executes the "clickMouse" program and moves the mouse to the specified coordinates. I tested it once or twice
    and it seems to be doing the trick.
    Here is the uncompilied code for the C program:
         *Once compilied you execute the program and pass it an X and Y Coordinate like this -->   "./clickMouse 1000 500"
    #include <X11/Xlib.h>
    #include<stdio.h>
    #include<unistd.h>
    #include <stdlib.h>
    #include <string.h>
    #include <unistd.h>
    #include <X11/Xlib.h>
    #include <X11/Xutil.h>
    void mouseClick(int button)
        Display *display = XOpenDisplay(NULL);
        XEvent event;
        if(display == NULL)
            fprintf(stderr, "Errore nell'apertura del Display !!!\n");
            exit(EXIT_FAILURE);
        memset(&event, 0x00, sizeof(event));
        event.type = ButtonPress;
        event.xbutton.button = button;
        event.xbutton.same_screen = True;
        XQueryPointer(display, RootWindow(display, DefaultScreen(display)), &event.xbutton.root, &event.xbutton.window, &event.xbutton.x_root, &event.xbutton.y_root, &event.xbutton.x, &event.xbutton.y, &event.xbutton.state);
        event.xbutton.subwindow = event.xbutton.window;
        while(event.xbutton.subwindow)
            event.xbutton.window = event.xbutton.subwindow;
            XQueryPointer(display, event.xbutton.window, &event.xbutton.root, &event.xbutton.subwindow, &event.xbutton.x_root, &event.xbutton.y_root, &event.xbutton.x, &event.xbutton.y, &event.xbutton.state);
        if(XSendEvent(display, PointerWindow, True, 0xfff, &event) == 0) fprintf(stderr, "Error\n");
        XFlush(display);
        usleep(100000);
        event.type = ButtonRelease;
        event.xbutton.state = 0x100;
        if(XSendEvent(display, PointerWindow, True, 0xfff, &event) == 0) fprintf(stderr, "Error\n");
        XFlush(display);
        XCloseDisplay(display);
    int main(int argc,char * argv[])
         int i=0;
         int x , y;
         x=atoi(argv[1]);
         y=atoi(argv[2]);
         Display *display = XOpenDisplay(0)
         Window root = DefaultRootWindow(display);
         XWarpPointer(display, None, root, 0, 0, 0, 0, x, y);
         mouseClick(Button1);
         XFlush(display);
         XCloseDisplay(display);
         return 0;
    I'm not too proficient in C, a little bit more in C++, so I didn't realy change much from the original code except add a "main()" section to this one in order
    to execute the "mouseClick()" function.
    F.Y.I.
    I kept the Actionscript code for the Mouse.hide() stuff, so this C program works with the Mouse.hide() code...
    Thanks Again,
    Matt

  • Safari 5 keeps hiding the mouse pointer...

    Safari 5 keeps hiding the mouse pointer.
    Have to click continuously in the Finder to restore it...very annoying.
    Somebody help...?

    HI Rafael,
    From the Safari Menu Bar click Safari/Empty Cache.
    Relaunch Safari.
    Carolyn

  • How to pass the value between two screen in dialog programming.

    hi everybody,
    In case of dialog programming I have two screens 200 & 300.I want to get the value of textfield in screen 200 in scrren 300 in a label or in textfield.
    Thanks
    byee

    Aashish,
      Welcome to SDN!!!!
      SAP does automatic data transfer when u have the variable defined in the Program and same variable(name) being used in any number of screens in the same program.
    U donot want to worry abt Data Transfers!!!
    If this does not solve ur requirement, let us know.
    Thanks
    Kam

  • Hiding the Cursor in Full-Screen

    This is probably something that has been covered in the past, but how can the mouse cursor be hidden in full-screen? In Win32 API it's very simple, just ShowCursor(FALSE/TRUE); but in Java?

    and to further confuse matters, heres the optimal solution :D
          Toolkit t = Toolkit.getDefaultToolkit();
          Dimension d = t.getBestCursorSize(1,1);
          if(d.width!=0 && d.height!=0)
             NO_CURSOR = t.createCustomCursor(new BufferedImage(d.width,d.height,BufferedImage.TYPE_INT_ARGB),new Point(0,0),"NO_CURSOR");
          else
             NO_CURSOR = null;
          }(its optimum because the createCustomCursor() implementation makes a special case if the image supplied is a BufferedImage and is of the desired width & height [it avoids the rescaling operation])

  • Call the program first two screens and return

    Hi all,
    I am coding an Zprogram in that i have to call an Standard Report Program ( ex:- RFFOUS_T ) and execute.
    and in  that standard program  i need to execute upto the first two screeens only after the first two screens i need to come back to my Zprogram
    How can i do this.
    Regards
    Ajay

    Hi Ajay,
    SUBMIT  RFFOUS_T  WITH SELECTION-TABLE i_rspar AND RETURN.
    where i_rspar contains the value u want to pass to next report programs output screen
    with structure as         i_rspar  TYPE  STANDARD TABLE OF rsparams.
    Try with it
    it may help you.

  • Hiding the mouse in Fullscreen mode

    Is there a way that i could hide the mouse pointer in fullscreen mode?
    thanks...

    No one outside of Apple knows what plans they have - if any - for iPhoto.
    iPhoto menu -> Provide iPhoto Feedback
    for feature requests.
    Regards
    TD

  • Mouse wrangling, can the mouse be confined to an area of a swf

    I want to be able to make the mouse only able to move around
    on part of the stage namely the bottom 75px. So I want ot to be
    able to move 100% on the X axis but I want to restrict the movement
    along the y axis. Is there a way to do this without using the mouse
    hide function?

    This is such a bizarre and strange question that we get quite
    often. The mouse is a tool that sits on the users desk top. Do you
    really think there is some way to have a giant claw or something
    come out of the computer and only allow the user's hand to move in
    specific places? Because in effect that is what you are asking.
    The user and their mouse will move where and when they want,
    there is no way for any program or anything to control that.
    The only control you have is over what is represented on the
    screen by that motion – and that is accomplished in flash by
    hiding the mouse.

  • Using Maverick in two screen setup sometimes the mouse arrow follows the menu bar when I switch screens, and sometimes not. Sometimes the menu bar is on one screen and the mouse is on the other. What am I missing?

    Am looking for a simple way to move the mouse arrow to the other screen. Must I go to Apple/System prefs? I assume the mouse arrow and the menu bar should stay together. OK, but how do I access the dock when it is not on the screen with the mouse arrow? Is the Dock unmoveable? What is needed, I guess, is a master screen with mouse, dock and menu bar, and the option to select which screen is master with all those commands available.

    You're Welcome...
    Another silly suggestion...
    Have you done a Restart since you were fiddling around with various settings...?

  • Just bought new iMac. When browsing in Safari, sometimes the text suddenly gets super large. I'm doing nothing except reading the screen, tho I have my hand on the mouse. I can get back to normal size by clicking "actual size" in View. What gives?

    Just bought brand new new iMac. When browsing in Safari, sometimes the text suddenly gets super large. I'm doing nothing except reading the screen, tho I usually have my hand resting lightly on the mouse. I can get back to normal size by clicking "actual size" in View. But then it does it again a minute or two later. What gives? Something seems defective--but what?

    From System Preferences, Mouse, Point & Click, Secondary click.  Go to it hover over Secondary click and watch the short video sequence change it left right, left right, you will see exactly what is does. No I do not think your Mouse is defective, you simply need to take control of your Mouse finger.

  • I use a two button mouse with my Mac Book Pro.  It works fine, but after installing Lion, the mouse wheel goes in reverse of what it did (rolling the wheel towards your palm goes up not down the page).  Anyone know how to fix this?

    I use a two button mouse with my Mac Book Pro.  It works fine, but after installing Lion, the mouse wheel goes in reverse of what it did (rolling the wheel towards your palm goes up not down the page).  Anyone know how to fix this?

    First sentence in OPs question:
    I use a two button mouse with my Mac Book Pro
    I guess the track pad settings would look similar to my screen shot?
    Regards,
    Colin R.

  • I have a mac mini and just purchased a moshi hdmi connector for my LED TV. The problem is, I wanted to be able to take my mouse from one screen to another, not just as a mirror image! Is it possible to do this some how?

    I have a mac mini and just purchased a moshi hdmi connector for my LED TV. The problem is, I wanted to be able to take my mouse from one screen to another, not just as a mirror image! Is it possible to do this some how?

    The Apple Support Communities are an international user to user technical support forum. As a man from Mexico, Spanish is my native tongue. I do not speak English very well, however, I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    If you have two displays attached, then the function to change from mirrored to extended Desktop will appear in System Prefs/Displays.

  • 15" i7 Macbook Pro from early 2011.takes the mac laptop two or three tries to boot successfully. It would turn on, show gray screen, shut down, turn on again, show gray screen, shutdown, and then turn on, show gray screen, before it can finally get

    Hello All,
    I have a 15" i7 Macbook Pro from early 2011. The past few weeks, it has been getting increasingly difficult to get on my computer. It takes the mac laptop two or three tries to boot successfully. It would turn on, show gray screen, shut down, turn on again, show gray screen, shutdown, and then turn on, show gray screen, before it can finally get to the dark gray log-in screen. Even when I finally get logged in to start working, thinking it would be okay now, it shuts down randomly.
    I've ruled out the possibility of a software problem because I've just done a clean re-install of Mac OS X Mavericks on my computer just yesterday.
    I did upgrade the RAM recently, about a month and a half ago, from 4GB to 16GB, I went to the apple store four days after that upgrade to have them do a hardware test, and clean the inside of my laptop, which helped with previous heat issues. When they did the hardware test, the hardware was all registered as fine from their system.
    I've tried resetting the SMC, PRAM, and doing the internet recovery hardware test, but to no avail. I thought I could at least find out what parts needed to be replaced from the hardware test but it seems that when the hardware test is almost finished, the computer just shuts down, So I am unable to see the results.
    My computer is also having battery issues, under battery condition, it says "replace now," parts have been ordered, waiting for arrival. But if the battery health is low, it should still boot up fine, it would just hold a significantly less charge.
    Could this be a hard drive issue?
    Has anyone had similar symptoms and how was it resolved?
    Does anyone know what I can do to alleviate this issue?
    I haven't had time to take it to Apple because I'm currently taking a 21 credit semester academically. I'm an art and design student so my computer is basically the bane of my existence. Help! Any constructive advice is welcomed!
    Thank you so much for your input!
    -Christina C.

    Problem description:
    The Hard Disk is failing.
    EtreCheck version: 2.0.11 (98)
    Report generated November 4, 2014 at 7:59:28 AM EST
    Hardware Information: ℹ️
      MacBook Pro (15-inch, Early 2011) (Verified)
      MacBook Pro - model: MacBookPro8,2
      1 2.2 GHz Intel Core i7 CPU: 4-core
      16 GB RAM Upgradeable
      BANK 0/DIMM0
      8 GB DDR3 1600 MHz ok
      BANK 1/DIMM0
      8 GB DDR3 1600 MHz ok
      Bluetooth: Old - Handoff/Airdrop2 not supported
      Wireless:  en1: 802.11 a/b/g/n
    Video Information: ℹ️
      Intel HD Graphics 3000 - VRAM: 512 MB
      Color LCD 1440 x 900
      AMD Radeon HD 6750M - VRAM: 1024 MB
    System Software: ℹ️
      OS X 10.9.5 (13F34) - Uptime: 0:3:43
    Disk Information: ℹ️
      TOSHIBA MK7559GSXF disk0 : (750.16 GB)
      S.M.A.R.T. Status: Verified
      EFI (disk0s1) <not mounted> : 210 MB
      HDV4 (disk0s2) /  [Startup]: 749.30 GB (712.10 GB free)
      Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
      MATSHITADVD-R   UJ-898 
    USB Information: ℹ️
      Apple Inc. FaceTime HD Camera (Built-in)
      Apple Inc. BRCM2070 Hub
      Apple Inc. Bluetooth USB Host Controller
      Apple Inc. Apple Internal Keyboard / Trackpad
      Apple Computer, Inc. IR Receiver
    Thunderbolt Information: ℹ️
      Apple Inc. thunderbolt_bus
    Gatekeeper: ℹ️
      Mac App Store and identified developers
    Kernel Extensions: ℹ️
      /Library/Application Support/Avast/components/fileshield/unsigned
      [loaded] com.avast.AvastFileShield (2.1.0 - SDK 10.9) Support
      /Library/Application Support/Avast/components/proxy/unsigned
      [loaded] com.avast.PacketForwarder (1.4 - SDK 10.9) Support
    Launch Agents: ℹ️
      [not loaded] com.adobe.AAM.Updater-1.0.plist Support
      [loaded] com.avast.userinit.plist Support
    Launch Daemons: ℹ️
      [invalid?] com.adobe.SwitchBoard.plist Support
      [loaded] com.avast.init.plist Support
      [loaded] com.avast.uninstall.plist Support
      [loaded] com.avast.update.plist Support
      [invalid?] com.perion.searchprotectd.plist Support
    User Launch Agents: ℹ️
      [invalid?] com.avast.home.userinit.plist Support
      [loaded] com.google.keystone.agent.plist Support
      [invalid?] com.jdibackup.ZipCloud.autostart.plist Support
    User Login Items: ℹ️
      None
    Internet Plug-ins: ℹ️
      AdobePDFViewer: Version: 10.1.1 Support
      QuickTime Plugin: Version: 7.7.3
      JavaAppletPlugin: Version: 14.9.0 - SDK 10.7 Check version
      Default Browser: Version: 537 - SDK 10.9
    User Internet Plug-ins: ℹ️
      TroviNPAPIPlugin: Version: 1.0 - SDK 10.9 Support
      Google Earth Web Plug-in: Version: Unknown
    Safari Extensions: ℹ️
      Avast Online Security
      Trovi Search for Safari
    3rd Party Preference Panes: ℹ️
      None
    Time Machine: ℹ️
      Time Machine not configured!
    Top Processes by CPU: ℹ️
          16% mds
          7% WindowServer
          1% loginwindow
          1% fontd
          1% com.avast.daemon
    Top Processes by Memory: ℹ️
      120 MB com.avast.daemon
      86 MB Google Chrome
      52 MB Finder
      52 MB WindowServer
      41 MB Google Chrome Helper
    Virtual Memory Information: ℹ️
      13.45 GB Free RAM
      1.34 GB Active RAM
      944 MB Inactive RAM
      1.43 GB Wired RAM
      1.11 GB Page-ins
      0 B Page-outs

  • I have two screen on my PC. Adobe always opens on the second screen. I would like to change this. Ho

    I have two screens on my PC Adobe always opens on the second screen. How do I change this to open on the first screen.

    It should (should) stay where you close it from, especially if you have it maximized on that monitor. I can't guarantee that because I'm having the same problem with Firefox this morning. I always open it on my secondary montior, and today it will only open on the primary.

  • On startup Mac Pro I get a blue screen and a cursor on the upper left. The mouse cursor shows up independently. Is it likely a video card failure?

    On startup Mac Pro I get a blue screen and a cursor on the upper left. The mouse cursor shows up independently. Is it likely a video card failure?

    I managed to boot the computer and get the desktop to show. I now have a "repaired" computer. There are several problems that have cropped up. One is that I can only start up now in Safe Boot mode. Is there a way to turn it off? Also, I do not have a sound list, so I can't access anything requiring audio. Google Chrome only shows up as a white screen. Pictures that loaded before don't load in browsers, etc. Any suggestions? I figure I should reinstall Mac OS Lion for starts, maybe even do a mirror backup and reformat the drive. I think this drive has turned into scrambled eggs...what a headache!

Maybe you are looking for

  • Invoice Footer printing on every page of invoice instead of first page only

    Hi, I am working on an AR invoice report. I have a RTF template (template is 1 page only) and the output is PDF. The invoice has invoice header ( bill to , pay to ) and invoice line details. On the bottom of the first page of every invoice , I need t

  • Controller Card

    Dear All, We have the attached configuration in our cisco 7206 router to facilitate voice calls. VXC-2TE1+ port has been inserted in Slot 1. Now from one port s1/0 the outgoing calls are not going out but incoming calls are coming through with out an

  • OS X Yosemite and CS5 Indesign

    I have just installed OS X Yosemite on my iMac and while the CS5 Photoshop and Illustrator app.s work the Indesign one doesn't and that's the urgent one that i need. Help please. I have just installed Java for OS X 2014-001.

  • Can someone at Adobe please deactivate CS3 for me?

    Hi, I own several websites built with CS3. Yesterday the license stopped working. I've spent all of yesterday and half of today trying all the suggestions on Adobe's site and others. Short of reformatting my hard drive and reinstalling windows, I don

  • New computer, nano can't load previous songs?

    I just got this computer. All the software is updated on it for my nano. Unfortunately, the songs I have loaded on my nano won't come up on the new computer. Is there any way to do this or am I just up the preverbial creek? Thanks for any help. Jefbu