I would like to press a button from an Adobe AIR application and execute some installed program. For example, I would have a button named "Start Winamp". When this is pressed it should start Winamp.exe directly...I don't want some command line thing executed, I only want an exe to start. Or...is it the same thing ? Please, let me know if this is possible.
Thank you.
Find the file you want to open and double-click it. It should open automatically. If not, right-click on the file, go to Choose Program and select Adobe AIR. Click Open.
Notable applications built with Adobe AIR include eBay Desktop, Pandora One desktop, TweetDeck, the former Adobe Media Player, Angry Birds, and Machinarium, among other multimedia and task management applications.
Adobe® AIR® is a multi-operating system, multi-screen runtime that allows you to leverage your web development skills to build and deploy rich Internet applications (RIAs) to the desktop and mobile devices.
With AIR 2.0 you now can:
if(NativeProcess.isSupported) { var file:File = File.desktopDirectory; file = file.resolvePath("StyleLookupold.exe"); var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo(); nativeProcessStartupInfo.executable = file; var process:NativeProcess = new NativeProcess(); process.start(nativeProcessStartupInfo); }
You also need to add this to your descriptor file.
<supportedProfiles>extendedDesktop</supportedProfiles>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With