Spaces + AXUI API (accessibility)

  • Hello All,

    I am the author of Zooom and a few customers have asked me whether or
    not its possible to have my application automatically initiate a
    spaces 'switch'.

    Perhaps a tiny bit of background is in order though - in order to
    understand the perspective I'm coming from:  The basic background/crux
    of Zooom is that one holds down some special key combination (e.g the
    Alt and Command key) - and Zooom will locate the window under the
    mouse and then allow you to move or resize that window without having
    to be very precise about locating things like the title bar (to move)
    or the grow area (to resize).

    So I started to try to find some more info about the Spaces system,
    and whether or not there is an API that could let me kick off a spaces
    shift / switch.  There does not seem to be any API that'd let me do
    this, and some recent messages appear to confirm this (see thread on
    this list titled: Notification when switching Spaces?).  However, it
    never hurts to ask...

    Thus:

    a) Is there some way of duplicating the [apparently] built in Finder
    behaviour where dragging a window to the edge of a display (and
    holding it momentarily there, hard up against the edge) initiates a
    spaces switch?

    On a related point, Zooom uses the Event Tap API to figure out where
    the mouse is, and a problem is that the Event Tap API will never tell
    me that my mouse has gone over the edge of the screen display area,
    which is intuitive and sensible (until this question came along :-)) -
    but I was wondering, even *if* there was an answer to question (A),
    then:

    b) Is there a way to tell if the mouse cursor has (or would have)
    exceeded the physical co-ordinate space of the display?

    Thanks for any answers and/or insight.

    --
    John Clayton
    http://www.coderage-software.com/
previous month november 2007 next month
MTWTFSS
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    
Go to today