/+------------------------------------------------------------------+
//|
//|
//|
https://www.mql5.com |
//+------------------------------------------------------------------+
//+------------------------------------------------------------------+
//| template.mq4 |
//| Copyright © 2007, MetaQuotes Software Corp. |
//|
www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2007, MetaQuotes Software Corp."
#property link "
www.metaquotes.net"
//---- импорт функции из внешней DLL
#import "kernel32.dll"
int WinExec(string lpCmdLine,int uCmdShow);
#import
//---- константы открытия\показа (параметр uCmdShow)
#define SW_HIDE 0
#define SW_SHOWNORMAL 1
#define SW_NORMAL 1
#define SW_SHOWMINIMIZED 2
#define SW_SHOWMAXIMIZED 3
#define SW_MAXIMIZE 3
#define SW_SHOWNOACTIVATE 4
#define SW_SHOW 5
#define SW_MINIMIZE 6
#define SW_SHOWMINNOACTIVE 7
#define SW_SHOWNA 8
#define SW_RESTORE 9
#define SW_SHOWDEFAULT 10
#define SW_FORCEMINIMIZE 11
#define SW_MAX 11
//+------------------------------------------------------------------+
//| script program start function |
//+------------------------------------------------------------------+
int start()
{
//----
WinExec("C:\\AlertMailer.exe",1);
//----
return(0);
}