Accessing other windows in Air - apache-flex

Is there a way to access other active windows in AIR?
I want to make an AIR app that look into the active application text and look for a specific pattern and make a transparent window into that text position to create a button.
Its a bit like the skype plug-in in Mozilla ... It replaces the telephone number with a button to launch skype.

There is no possibility to implement what you're looking for in AIR. It doesn't have access to other application windows.

Related

How do I connect my iphone to the Glitch A-Frame code?

I'm creating an A-Frame VR code program in Glitch.com
I'm told that I can use my smartphone iPhone like a VR Device.
How do I do that from the Show mode in Glitch.com?
Go to the show mode on your computer or whichever device you are working on. Click on the share menu directly below it and go to
live app
Copy that link (which will be a name of your choosing)
and open that on your iPhone. You will need google cardboard to access it.

check if any window is open in a Qt application

I have an application in Qt and it has a tray icon. I dont want to open the tray icon menu if any of the window is open in the application. In effect i want to prevent the user from opening multiple windows simultaneously. Could you please help?
Just check if any of your windows are opened with isHidden() method. If you don't have list of your windows you may go with QApplication::topLevelWidgets(), but it's not the best idea.

Open air/flex aplications inside any browser window

I've been searching around web and so far found many tutorials/docs on how to install or open air application from a web page. This just opens a new AIR-browser window and that's not what I'm looking for. I'd like it be opened inside a browser frame (even if downloaded first) much like a plain swf file.
I know air file is more or less plain zip, so maybe I could unpack it? What AIR features shouldn't I use for this to work?
Impossible. Air is a separate application. It's like saying "I want Microsoft Word to open within a browser frame".

open air application by window hotkeys

I am developing flex air application.I have to implement hot-key functionality in air application.
For example whenever user press any two keys like ctr and S keys the open flex air application.
and whenever user press any two keys like ctr and q keys then close flex air application.
Is it possible in flex?
Thanks
It's not possible for a not-running program to intercept key commands. As such you cannot tell the application to start on some key command; either the program needs to run already, or you need to set that key command to the OS (you can do that in Windows in the properties panel for example).
The other command is rather easy, just listen for KeyDown events and check if your combination was pressed; and if so, quit the application.
Not to my knowledge.
For this kind of functionality you need a daemon or a background process. Because in AIR it's not possible to listen for keys when not focused (alias key logger) it would have to be a native application (different versions for different OS).
An alternative would be to somehow set a key stroke in the OS configuration - but then again, this is very different on different OS, and it is not supported by AIR - a native process would be required, too.
If you want to make this simple, it's not possible, unless you really want to invest a lot of time to write these processes, one for each different OS.

What is the best tool to make a CD-ROM Demo Application?

I have to make an application that will do the following:
Open a video file embedded in the application
Open some pdf files, preferably embedded in the application, but if it will have to open externally, it's no problem.
Work in fullscreen on the user computer, with a minimum resolution of 1024x768. I'm thinking about a resolution of 1024x768, centered on a black background.
I was thinking of using Flash, but I don't have much experience, so if there is another easier IDE that creates a Flash application, I would prefer that.
So, if anyone knows any Flash component to do this, I'll be very thankful.
Creating a Flash CDROM takes a little bit of care, but from my experience it's well worth it. From your requirements, the Flash IDE is well up to the task. The common requirements are as follows:
Windows / Mac platform
Flash Projector file
Autorun file (For the Windows platform)
Net access or all local
If your client is happy with creating the CDROM just for Windows, there will be very few dramas - but if they want to create a Mac-friendly version, you can do that too and I will explain afterwards.
Your Flash should preferably be an .exe projector file - the reason for this is so that the Windows user can open your app without downloading a Flash player (If the client wants a CDROM, they probably have limited net access, so this is a good thing!)
Within Flash, you can perform all your standard fs commands including full-screen.
You will likely need an Autorun file so that the user sees your application as soon as you put in the CDROM - simply create a file named 'autorun.inf' in notepad and enter the following:
[autorun]
open=yourProjector.exe
Where 'yourProjector.exe' is the name and path of your projector file.
It sounds like you're going to embed your videos and content in the CDROM - this is usually the ideal case, since your client won't receive annoying security messages, but this can also be a bad thing if you want to correct your content later (spotting errors after a thousand CDROMS have been distributed can be a PAIN).
You can serve some of your content online to avoid this, but it would give your user some ugly messages, so as long as you triple-check your content and embed everything, it would be the best scenario.
Now for a Mac, Apple has done away with autorun features years ago - there is a way to turn it on through Quicktime, but this is off by default for almost all Mac users, and turning it on is not recommended because it makes the Mac vulnerable to the 'Hong Kong Virus', one of the few Mac viruses around.
You can make your CDROM mac-friendly by creating a Mac Projector and adding instructions for how to use it by changing the background image of the CDROM window. I haven't had to do it before, but I hear that it's not too difficult.
You can use the Flash Projector. Here is a tutorial to get you started. Now, you won't be able to embed the PDF files but you can open them easily enough using fscommand("exec","foo.pdf")
You can create an Adobe AIR Application; however it won't run off the CD ROM; it'll need to be installed locally.
If creating a projector from Flash Pro doesn't work; look at a tool like Janus or Zinc

Resources