PDA

View Full Version : Click Event outside Air app


saravanan
08-06-2008, 02:50 PM
Is there way to track mouse event outside AIR app..

and one more doubt can we read pixel color from screen using AIR ??

evride
08-06-2008, 07:37 PM
1) well you could create an custom chrome transparent application that fits the whole screen (make sure to use the Screen class to get the dimensions of multiple screens). then in that application you create a sprite that covers everything and has an alpha of .01 (0 won't register). you can then put your application in the center and pretend to resize it. but actually this won't work well at all because you wouldn't be able to leave the app without alt-tabbing or ctrl-alt-deleting and then quiting the application, since the application will always be in focus. other than that, no you can't.

2) you looking for the color depth, or are you looking for a single pixel color of an object?
the former is under flash.system.Capabilities. the latter would be possible with a bitmapData object using the methods getPixel(), getPixel32() and getPixels()

saravanan
08-07-2008, 06:26 AM
Hi evdog,

Thanks for the reply what i want to do is color picker in AIR app..

is that possible

evride
08-07-2008, 06:32 AM
o from anywhere on the screen? no thats not possible, sorry.

saravanan
08-07-2008, 09:57 AM
Thankx again

saravanan
08-07-2008, 09:59 AM
Otherwise can we capture the screen in AIR ??

evride
08-09-2008, 01:41 PM
well, no, not unless the user uses the "Prt Scr" key then pastes it into your application.

evride
08-14-2008, 04:37 AM
actually just found this. it uses the merapi project tho and it has a very small alpha testing group.

http://blog.everythingflex.com/2008/04/24/do-a-screen-capture-with-adobe-air/

bowljoman
08-23-2008, 10:54 PM
It would be possible through 'com' programming on a windows pc.

A simple virtual webcam may be constructed which invokes the appropriate listeners under mfc and using sockets loop back to the air application, you would pass the rgb components under the click event.

So to use the device. register the new vCam, and use Camera.getCamera to load the com objects. This would open the ports for air to connect, and then it would start sending the window mouse information.

I'd say it would cost about 2 grand for me to develop this application widget.

saravanan
08-26-2008, 01:30 PM
Oh is it possible ??

bowljoman
08-26-2008, 03:32 PM
It is possible on windows pc.