I am trying to handle an event for when a PDF has downloaded and been fully displayed in Internet Explorer.
Which UIAutomation event will handle this?
If you are referring to the UIAutomation object in the .NET Framework, it supports managed code. Internet Explorer is written in C++ as unmanaged code. Some folks have managed to write extensions using managed code, in spite of clear advice to the contrary, however, I've not heard of anyone successfully controlling IE using managed code.
Earlier versions of IE could be automated using COM interfaces or VBA objects, however, these features have been increasing deprecated over the years.
In addition, few of those interfaces supported extensions. (PDF is not a natively supported file type for Internet Explorer, so automation would depend on the surfaces exposed by the application registered to handle PDF mime types for the individual user.)
Since Edge is now the official browser, it's unlikely that IE will be updated to support managed code extensions. Note that Edge does not currently support extensions and little information is available describing when, or if, that will change. (There have been vague promises in the past, but little additional information.)
If you're trying to accomplish a specific effect, consider posting a more specific question, one showing:
The code that you're trying to use,
The effect you're trying to achieve, and
The behavior you're seeing instead.
Hope this helps...
-- Lance
Related
Windows self integrated CHM viewer is fine, but it always use internal Internet Explorer, For some computers that have low version of Internet Explorer do not support advanced HTML and CSS features.
So is there some alternative software for CHM viewer?
There are a few alternatives to the Microsoft CHM Help viewer with various levels of quality and evolution throughout the years. It is highly plausible that the cross-platform ones such as Okular or xCHM are using a WebKit based web-browser to display the topic content. WebKit is the browser engine used by Google Chrome and therefore CEF.
That being said, a technical writer should carefully think if it makes sense to use a third-party CHM help viewer, as it would imply:
The installation of a potentially large and unknown application on the end-user's computer;
Possible difficulties for the end-user to operate this new application, which would be dramatic as its purpose is to help her in the first place;
The possibility that the installation or use of this new application "steals" the .CHM extension and opens every CHM help file in the future, making it a nightmare for novice users;
Extensive tests to make sure that the chosen application correctly works with the CHM help files as they evolve;
One possible solution would be to consider another documentation format such as an online HTML documentation web-site (which can be opened using any web-browser), or a cross-platform QT help file (which would require the installation of the Qt framework).
A single source help authoring tool such as HelpNDoc, RoboHelp or Flare can be used to simplify the process of creating multiple documentation formats for different audiences: most of them can produce basic CHM help file for the Windows operating system, as well as full-featured HTML documentation web-sites and printable Word or PDF manuals without too much extra efforts.
I am working on a XUL desktop application, where I use the browser tag and load a URL in that tag within the desktop application.
However, some websites display as old format and according to Mozilla, XUL is deprecated and will not be useable at the end of 2017. I want to build the application with the latest technology: WebExtensions.
I have searched many examples on the usage of WebExtensions, but all are working within the browser. Can I make a standalone desktop application just like XUL, but using WebExtensions?
If yes, then please give me some hints on how to get started.
If no, is any alternative for the same requirement available?
Webextensions are fairly limited in their scope. Even if there was an application runtime utilising them, you probably wouldn't get much use out of them due to the restrictive isolation from the host system.
Strictly speaking not webextensions, albeit very similar:
The Electron framework/runtime*
Someone at Mozilla is also working on an alternative dubbed "Positron"** though that software's future is uncertain and there is a chance he might abandon it for an entirely new, highly simplified project (at least that's what I gathered from my conversation with him on Github).
*http://electron.atom.io/
**https://github.com/mozilla/positron
I have been trying to find a way to use apache thrift in my Xamarin Forms app but I could not manage since thrift.dll needs System.Web.dll and there is no mono implementation for System.Web.dll. Do you know any workaround to achieve this?
Thanks..
In general, Thrift works fine with Mono, so that's not the issue. As you already found out, the problem starts where the limited capabilities of mobile devices' .NET framework implementations end. Regarding your specific problem: There is a Windows Phone 7.x project file around which has these dependencies:
Microsoft.Phone
Microsoft.Phone.Interop
System.Runtime.Serialization
System.Servicemodel.Web
System.Windows
system
System.Core
System.Xml
System.Net
The WinPhone7 *.csproj has of course limited capabilities, e.g. there is no server code available for some technical reasons. The compatibility mostly relies on SILVERLIGHT being defined, and yes, it may not be perfect, but works Good Enoughâ„¢. You may try this one, see how far it supports your needs, and what changes need to be made (if any).
As of now, there are no Xamarin-specific things in the code, but you know, this is open source and we always appreciate pull requests or patches, especially valuable ones like this. If you think you could make a contribution, join the mailing list and/or the freenode #thrift IRC channel and ask for whatever support you need with this. We will be happy to help you.
I want to develop Safari plugin using xCode, What API should I use? Someone can give me some documents or sample codes ,Thanks very much!
The answer is rather complicated i'm afraid.
Unfortunately, Safari the web browser does not have a plugin API. That means you technically cannot extend Safari's user interface or features using plugins.
However, WebKit the web rendering engine (which powers Safari and many other browsers/apps) does have a plugin API (actually it has 2) which allows you to create plugins for rendering web content inside webkit webviews.
You can find documentation on developing WebKit plugins in Apple's docs here. (PDF Link!)
Also note: Safari's lack of a true plugin API has not stopped lots of developers from developing various pieces of software which they call "Safari plugins" even tho they are technically not Safari plugins. They are usually something called an "Input Manager" which are widely viewed as rather questionable pieces of software. Input Managers always seem to be on the cusp of becoming unsupported or broken by Apple. It's not really clear whether Input Managers are kosher with Apple or not.
Then again, several "Safari plugin" Input Managers are quite popular, so....
Input Managers are a whole other topic. I'm sure if you google it you can find a lot of information on them. However, personally I would advise against developing an Input Manager due to their questionable status in the Mac software world and their constant danger of becoming unsupported or badly broken.
Update: A few years after I originally answered this question, Apple did provide a sort of plug-in API for the Safari browser itself. However, they are called "Extensions", not plug-ins.
See the Apple Safari Extension Programming Guide for details.
Check out Rentzsch's ClickToFlash, it's a plug-in that is fairly well documented, along with neat source code.
I use an ActiveX control called TAPIEx enabling TAPI phone system integration using MS Access 2000 (+Visual Basic). I want to turn this Access database into a web app with the clients running Firefox (all on internal network).
Since Firefox doesnt support ActiveX is it feasible for me to write a Firefox plugin that in turn utilizes the ActiveX control?
With regard to how plugins work - Would I be able to call 'functions' of the plugin from page script (eg dial call specifying phone number, check if calls in process)? Would adding these functions to the Firefox right click menu 'globally' inside Firefox be easier?
Hope you guys can help. Note I'm not a fulltime programmer; I just need to know how steep the learning curve will be or even if my idea is possible!
Ive now found a project to allow using activex controls in firefox that seems to be quite up to date at:
http://code.google.com/p/ff-activex-host/
Theoretically, yes you could write a Firefox plugin with C++ that talked to the ActiveX component via COM. But the learning curve for both COM and C++ FF plugins are both horribly steep. I wouldn't recommend it.
As Kalmi says, just use IE.