Forex
Google
New signals service!

Go Back   Forex Trading > Downloads > Tools and utilities


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 10-30-2006, 03:54 PM
codersguru's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Question

Quote:
Originally Posted by JosTheelen
Yes, that's it.
Well, another question!
Is the program you want to monitor (running/ not running) has a window?
A window means it's a visable program and it's window is shown not a system tray or a hidden program.

Why i'm asking? Because if the program has a window it will be easier to find and if it hidden it will be PC resource consuming to make this dll!
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 10-30-2006, 06:54 PM
Member
 
Join Date: Aug 2006
Posts: 56
JosTheelen is on a distinguished road
Quote:
Originally Posted by codersguru
Well, another question!
Is the program you want to monitor (running/ not running) has a window?
A window means it's a visable program and it's window is shown not a system tray or a hidden program.

Why i'm asking? Because if the program has a window it will be easier to find and if it hidden it will be PC resource consuming to make this dll!
It would be visible. Although it could be minimized, is that a problem? But isn't it possible to check somehow the windowhandle I get from the shell? If it gives these resource problems, I could just before the end of the program save a file with a special name and let MT4 check whether that file exists.

BTW: another question, totally unrelated. If I notice during the init() that something is wrong with the inputs, is there a possibility to break off the indicator/EA, so that it doesn't load? Or unload itsself? A special returnvalue different from 0? Or should I call deinit()?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 11-04-2006, 12:36 AM
Junior Member
 
Join Date: Oct 2006
Posts: 9
pinedajp is on a distinguished road
I'm not able to download this library

Many Thanks to Coder's Guru for all his great work; i am not able to download this library , could anybody please be so kind in provide me with the apppropiate link?.

Thanks a Lot
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 01-05-2007, 05:50 AM
Junior Member
 
Join Date: Aug 2006
Posts: 7
Quantem is on a distinguished road
Where is the library?

I'm trying to find the library mentioned in this post. Where can I get it?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 02-18-2008, 01:54 PM
Junior Member
 
Join Date: Jan 2008
Posts: 1
maariuszn is on a distinguished road
run external application problem

Hi,

I found this script which make possible to run external application from mql4.
There in no problem to run notepad but when I want to run my own application which is written in visual basic i can't.
Can you help me?


//+------------------------------------------------------------------+
//| ShellExecuteTest.mq4 |
//| Copyright © 2006, MetaQuotes Software Corp. |
//| Forex Trading Software: Forex Trading Platform MetaTrader 4 |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2006, MetaQuotes Software Corp."
#property link "http://www.metaquotes.net"

/* ShellExecute defined in MSDN as
HINSTANCE ShellExecute(HWND hwnd, LPCTSTR lpVerb,LPCTSTR lpFile, LPCTSTR lpParameters, LPCTSTR lpDirectory,INT nShowCmd);

Look Welcome to the MSDN Library
for detailed information.*/

//---- let's define nShowCmd values
#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

//---- we need to define import of SHELL32 DLL
#import "shell32.dll"
//---- defining ShellExecute
/* Normally we should define ShellExecute like this:
int ShellExecuteA(int hWnd,string lpVerb,string lpFile,string lpParameters,string lpDirectory,int nCmdShow);

But, we need to keep lpVerb,lpParameters and lpDirectory as NULL pointer to this function*/
//---- So we need to define it as (look: "string" parameters defined as "int" to keep them NULL):
int ShellExecuteA(int hWnd,int lpVerb,string lpFile,int lpParameters,int lpDirectory,int nCmdShow);
//---- we need to close import definition here
#import
//+------------------------------------------------------------------+
//| script program start function |
//+------------------------------------------------------------------+
int start()
{
//---- let's do it!
string open;
ShellExecuteA(0,open,"notepad.exe",0,0,SW_SHOWNA);

//----
return(0);
}
//+------------------------------------------------------------------+
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #16 (permalink)  
Old 03-11-2008, 03:22 AM
fxfariz36's Avatar
Senior Member
 
Join Date: Aug 2007
Location: at trading room
Posts: 156
fxfariz36 is on a distinguished road
Quote:
Originally Posted by codersguru View Post
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", "");

Tools - Shell script! | www.metatrader.info



thankz dan info masta...
please check your PM masta...
i have one request to develop 1 indicator..

thankz masta
__________________
Technical Trader
please teach me how to trade like you

[center]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17 (permalink)  
Old 07-10-2008, 12:06 PM
TheRumpledOne's Avatar
Banned
 
Join Date: Nov 2006
Posts: 806
TheRumpledOne is an unknown quantity at this point
Program/Indicator/Expert Management

Do anyone have any Program/Indicator/Expert Management tools?

A program that reads the directory and creates a text file of the file names and dates modified would be a nice start.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
there is any script/program to create walk forward test data for metatrader???? giraia_br Metatrader 4 1 03-26-2007 12:44 AM
Can I restart my pc while running EA fabrimf Setup Questions 3 11-17-2006 02:32 PM
Easy or Hard to do? creative Metatrader 4 11 03-03-2006 11:06 PM
How hard to convert to Easy Language (Tradestation) srbtop General Discussion 1 01-17-2006 02:53 PM


All times are GMT. The time now is 06:17 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.