Calling native apps from within Flex(AIR) - flex4

How can i call a native app (could be as simple as executing an .EXE file) from within my Flex (AIR Application)?

You can use the NativeProcess class to achieve this. A tutorial is available on the Adobe site.

Related

web engine - Replace chromium with firefox inside electron app

Is possible to replace chromium with firefox inside an electron app?
I've done some researches and I was not able to found anything that use firefox to run cross platform desktop applications. If this is possible can anyone share the relative information please?
The only project I've found this old and not mantained from mozilla.
If this is not possible, is there any way to create a custom build of mozilla that integrate node.js? I want to experimet the electron flow that will open a browser window but in a simpler way. I'm reading the mozilla doc, but it's not clear if I can implement external library inside the build and no updated info about custom build creation is found online.
No, you cannot replace chromium inside Electron because the entirety of how Electron works is using chromium.
As far as if you could do something yourself - I'd say just use Electron. Chromium isn't that bad, although it is resource intensive.

xamrin UWP storagefolder.getfilesasync() - operation not supported

We are getting following exception when we try to call storagefolder.getfilesasync() method in Xamarin Forms UWP enviornment.
is ther any alternative to that?
I suspect the reason is that you are trying to use files inside the shared Portable Class Library. Because this library is shared across UWP, Android and iOS, you can't use Windows specific StorageFile there.
To work around this, you will need to create an interface for file access and implement it for each operating system separately. Working with files is very well described in Xamarin Documentation.

Appcelerator Titanium Developer with Java?

i just downloaded Appcelerator Titanium and experimenting with it, I selected Desktop application and to support python,PHP and Ruby but I can't find Java. how to really work with java. I just need a hint about how to get my java code working there, where to put my java files and where should I include them.
Appcelerator Titanium does not support java .. well not directly
But take a look at these URLs for some possible options in writing java code
that indirectly uses titanium ..
As usual, the mileage obtained from adding a new layer of code would depend on how
well one understands the core architecture of how all the bits plug together .. :
https://github.com/emitrom/titanium4j
http://www.learningtitanium.com/software/gwt4titanium/javas-write-once-run-anywhere-for-titanium.html
As Emitron writes:
Titanium4j(Ti4j) is a Java application framework designed for creating rich
and interactive native applications for mobile and desktop.
The mobile package inside Ti4j leverages Appcelerator Titanium Mobile
to create native mobile applications.
The desktop package inside Ti4j leverages The TideSDK to create native desktop
applications.
Titanium4j takes the underlying frameworks to another level by making you avoid
JavaScript and puting all Java libraries and tools are at your disposal
You will have to decide whether the above justifies learning this extra functionality .. I reckon it does justify it

Executable HTML/Javascript Applications on the Desktop?

I'm wondering if there is a way to create a Desktop Application that is essentially a Browser, except that it only runs my Application, doesn't need installation and is a static executable that contains the HTML/Images/CSS/JavaScript packaged into it, with an option to access arbitary embedded resources through JavaScript?
I believe Mozilla/Firefox allows this through their XUL Framework, which is actually used for Applications (see Celtx). However, the last time I looked into it (~3 years ago), it was a horrible experience and overly complicated.
Has this changed? Or is there a WebKit based option?
You should try Chromeless.
.. doesn't need installation and is a static executable that contains the HTML/Images/CSS/JavaScript packaged into it, with an option to access arbitary embedded resources through JavaScript?
Chrome supports .crx files which is essentially a zip file with the resources archived into it. It doesn't technically require installation since it's run on the Chrome browser itself.
I know it's not directly relevant to your question but I think building web apps with HTML5, CSS3 and JavaScript is the way to go. You can even package it and have it install like an app and distribute it via an app store even.
I went with XULRunner in the end. The latest version is much improved over the one I looked at several years ago.
You could use NW.JS:
https://github.com/nwjs/nw.js
NW.js is an app runtime based on Chromium and node.js. You can write
native apps in HTML and JavaScript with NW.js. It also lets you call
Node.js modules directly from the DOM and enables a new way of writing
native applications with all Web technologies.
Basically you create a folder with your entire html app. On Windows, just add 4 files (or more depending on your needs): package.json, nw.exe, nw.pak, and icudtl.dat. When you run nw.exe, your app will launch in a packaged version of chrome with node.js support. You can access the file system using node commands directly from your original html.
The drawbacks: NW adds ~60MB to your application and additional memory overhead.

Using Win32OLE library in Ruby to automate a custom built C# application

I have designed a custom Windows application in C#. Now, I would like to automate it using Win32OLE library in Ruby. I have absolutely no experience in using Win32OLE, so I would like to know when I create a new Win32OLE object using:
customApp= WIN32OLE.new('MyApp.Application')
it gives an error since it returns a null Win32OLE object.
Do I need to have a COM file for my application? If so, why is it needed? Also, could someone point me to all the files required by my custom application before I start trying to automate it using Win32OLE.
What exactly do you want to automate? If its by simple actions (tab,enter,etc. mimic the keyboard plus waits for some windows actions) you can use AutoIt.
http://codesnippets.joyent.com/posts/show/829
Everything starts with:
require "win32ole"
au3 = WIN32OLE.new("AutoItX3.Control")
It comes as a requirement of the rubygem watir. But you can see if there a more simple way to install autoit (its a .dll) for your ruby needs.

Resources