View Single Post
  #1 (permalink)  
Old 03-21-2006, 05:29 PM
codersguru's Avatar
codersguru codersguru is offline
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Arrow Running a program from MetaTrader is not a hard thing anymore!

Hi folks,
Scenario 1:
The EURUSD went up, I want to tell the boss. What if the MetaTrader can open my email client!
Scenario 1:
The EURUSD went down. Could MetaTrader open the notepad to write a piece of note.
If you are a lazy person like me, or you have more useful ideas (scenarios) about running applications from MetaTrader!
Running a program from MetaTrader is not a hard thing anymore.
Just you this library.
And enjoy with the Shell function:
Usage:

use this function to run any program you want from your MQL code.
Parameters:

FullPath (string) the full path and the file name
Parameters (string) any parameters you want to pass to the program
Return vale:

(int) the handle of the program in success and -1 in error
Example:

int res = Shell ("c:\\window\\notepad.exe", "");

http://www.metatrader.info/node/89
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Reply With Quote