Window co-ordinates on Mac OSX

13 views
Skip to first unread message

Umesh Chandak

unread,
Apr 19, 2013, 5:12:35 AM4/19/13
to firebre...@googlegroups.com
Hi ,
Is there a way by which I can get plugin window co-ordinates in reference from main screen ?

e.g. If my window is at starting location 100,100 on desktop so I want to get these 100,100 coordinates.

I wan to know if its possible in Mac OSX.

Thanks.
Regards,
Umesh.

Richard Bateman

unread,
Apr 19, 2013, 10:10:33 AM4/19/13
to firebre...@googlegroups.com

Unfortunately, to the best of my knowledge there is no way to do that on Mac OS.  The issue is that drawing actually takes place in a primitive in a different process and so there is no way to get access to anything that actually knows the screen coordinates.

Richard

--
 
---
You received this message because you are subscribed to the Google Groups "firebreath-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebreath-de...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Umesh Chandak

unread,
Apr 20, 2013, 12:49:10 PM4/20/13
to firebre...@googlegroups.com
I was asking this to do workaround for issue I am facing related to few plugins not getting created as mentioned in thread "OnLoad Callbacks not getting called".

I am planning to simulate mouse click internally because of which my plugin will be created successfully.

To do this I want to know some safe co-ordinates on screen.
I can can do it two ways :
1. On one of my plugin created. But as you said its not possible.
2. On Browser client windows. So is it possible to get browsers co-ordinate.

Thanks.
Regards,
Umesh. 
Reply all
Reply to author
Forward
0 new messages