Re: AXPosition and AXSize during window drags
Re: AXPosition and AXSize during window drags
- Subject: Re: AXPosition and AXSize during window drags
- From: John Louch <email@hidden>
- Date: Sun, 25 Nov 2007 09:15:56 -0800
- Thread-topic: AXPosition and AXSize during window drags
> on 2007-11-25 11:23 AM, John Louch at email@hidden wrote:
>
>>> ... Is there any other way I can get continuous position
>>> and size information regarding UI elements in another application?
>>
>> You can poll in between mouse down and mouse ups.
>
> Forgive my ignorance, but poll what?
>
> Perhaps I wasn't clear. The 'left mouse dragged' event tap is firing very
> rapidly, repeatedly during a single drag session. I read AXPosition every
> time another 'left mouse dragged' event arrives during the drag session. But
> the position remains unchanged in Cocoa applications, on each successive
> 'left mouse dragged' event, until the 'left mouse up' event at the end of
> the drag session. When I target the Finder with my same code, however, the
> AXPosition value is different every time a new 'left mouse dragged' event
> arrives.
>
> If you're saying there is some other system or Carbon API that I can poll to
> get the actual AXPosition of another Cocoa application's window, can you
> point me to it?
Sorry I misunderstood. I thought you were talking about observers for
getting the position and size changes. If AXPosition and AXSize do not
change till the end of drag or resize, then polling with AX wont help. I am
not sure if carbon has a way to get the bounds or position of a window from
another application.
Thanks,
jl
>
> --
>
> Bill Cheeseman - email@hidden
> Quechee Software, Quechee, Vermont, USA
> www.quecheesoftware.com
>
> PreFab Software - www.prefabsoftware.com
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Accessibility-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
--------------------------------------------------
John Louch Internet #: email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden