Adobe AIR to detect URL of active browser/tab

2019-09-14 15:50发布

问题:

Using Adobe AIR + related technologies, is it possible to detect the URL of the active tab/window of the active browser?

For instance, if my user is surfing in IE8 on www.example.com/subdirectory/, can I retrieve that data for use in my Adobe AIR RIA?

回答1:

Not easily.

In theory you could use NativeProcess and run some local machine code to figure it out; assuming the browser exposes it via some API. OF course, I'm not sure how you'd trigger that code from AIR if the browser was the active window.