View Single Post
  #2 (permalink)  
Old 05-16-2006, 10:46 PM
codersguru's Avatar
codersguru codersguru is offline
Senior Member
 
Join Date: Oct 2005
Posts: 986
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Wink Send Keyboard keys to MetaTrader!

Quote:
Originally Posted by babarmughal
Hi Guys,

How can I make an EA to excute the script file in the script folder...

Thanks
Babar
There's no code to execute a script file in MQL4, but there's a trick:

1- Assign a hot key to the script (Right click the script in the Navigator window and from the context menu choose "Set hotkey").

2- download Send Keyboard keys to MetaTrader!

3- In your EA use the functions:
void SendKey(int key,bool release = false)
void ReleaseKey(int key)


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