Skip to main content
Participating Frequently
April 26, 2011
Question

Mouse.hide does not work on a Mac at startup

  • April 26, 2011
  • 1 reply
  • 783 views

If you make your Air application a Login Item so that it opens at startup on a Mac the mouse will not hide. This is mentioned elsewhere on this forum and all over the web, but i've not found a solution for it yet. The same file however will function correctly if double clicked - the mouse will then hide. I've tried all of the solutions on this discussion http://blog.formatlos.de/2008/11/16/air-hiding-the-mouse/ (the one about using automator is mine and does work, but its a workaround not a solution).

Can someone from Adobe comment here, this must be a bug. One thing that would solve it is using Air to move the cursor, then calling Mouse.hide, but I can't see any way to do this.

Using: OS X 10.6.7, most up to date versions of Air (at the time of writing)

This topic has been closed for replies.

1 reply

Participating Frequently
April 26, 2011

The best workaround i've come up with so far is to use an Automator app to move the mouse - this must also be opened on startup by setting it as a login item:

Record a “watch me do” workflow that moves the mouse and clicks (you can move it and click anywhere, but do it quick to minimize the weirdness!).

Put a delay on the mouse hiding in the actionscript. Because opening times are a bit of an unknown, i hide the mouse a number of times after intervals like so:


function mouseHide0(){
Mouse.hide();
}
setTimeout(mouseHide0, 2000);

function mouseHide1(){
Mouse.hide();
}
setTimeout(mouseHide1, 5000);

function mouseHide2(){
Mouse.hide();
}
setTimeout(mouseHide2, 10000);