• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

as3 code open microsoft outlook . is that possible

Contributor ,
Apr 26, 2016 Apr 26, 2016

Copy link to clipboard

Copied

i need simple as3 code that can open microsoft outlook. once i click the flash button it should navigate me to microsoft outlook .

note : i do not want to load microsoft out look in flash stage . rather once i click a button of .swf stage . then it will open microsoft out look of my windows 7

Any suggestion ?

thanks

TOPICS
ActionScript

Views

501

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Enthusiast , Apr 27, 2016 Apr 27, 2016

import flash.filesystem.File;

import flash.desktop.NativeProcess;

import flash.desktop.NativeProcessStartupInfo;

var process:NativeProcess = new NativeProcess();

var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();

var exe:File = new File();

exe.nativePath = "C:/Program Files/Microsoft Office/Office15/Outlook.exe";

nativeProcessStartupInfo.executable = exe;

var args:Vector.<String> = new Vector.<String>();

args.push('/sniff');

nativeProcessStartupInfo.arguments = args;

pr

...

Votes

Translate

Translate
LEGEND ,
Apr 27, 2016 Apr 27, 2016

Copy link to clipboard

Copied

Have you tried using a mailto link (URLRequest) such that the default browser opens?

I don't think there is any way you can target a specific application to open on someone's machine using AS3... that would be the equivalent of a nasty viral infestation if you could do that.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Apr 27, 2016 Apr 27, 2016

Copy link to clipboard

Copied

As long as you're running on AIR you can open anything you like.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Apr 27, 2016 Apr 27, 2016

Copy link to clipboard

Copied

import flash.filesystem.File;

import flash.desktop.NativeProcess;

import flash.desktop.NativeProcessStartupInfo;

var process:NativeProcess = new NativeProcess();

var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();

var exe:File = new File();

exe.nativePath = "C:/Program Files/Microsoft Office/Office15/Outlook.exe";

nativeProcessStartupInfo.executable = exe;

var args:Vector.<String> = new Vector.<String>();

args.push('/sniff');

nativeProcessStartupInfo.arguments = args;

process.addEventListener(NativeProcessExitEvent.EXIT, appClosed);

   

//start the process

process.start(nativeProcessStartupInfo);

function appClosed(e:NativeProcessExitEvent):void

{

  process.removeEventListener(NativeProcessExitEvent.EXIT, appClosed);

  trace("closed");

}

Here's a little code that will open Outlook on my machine. The args let you send command line switches, like /sniff which forces outlook to update meeting requests and such. You will need to publish to AIR and use the Extended Desktop profile.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Apr 27, 2016 Apr 27, 2016

Copy link to clipboard

Copied

LATEST

sorry an error occured

The application cannot be installed due to a certificate problem.  The certificate does not match the installed application certificate, does not support application upgrades, or is invalid.  Please contact the application author.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines