Download MetaTrader 5
To add comments, please log in or register
Do you know that MQL5 has classes?
Roddo Greenwood
91
Roddo Greenwood 2014.03.12 10:49 

Hello MT4 wizards


On the subject of setting alerts.

It is possible to run a batch file instead of a sound file by selecting 'File' in the drop down box.

I have come across a batch file that can use Microsofts speech engine, works great so I edited it to take external parameters.

If I run the batch file in a DOS box the parameters are read / spoken correctly but when inserted into the Alerts settings it does not see the added parameters .

Any help would be appreciated as it is a lot easier to your alert in text than recording endless audio files " I have been down that path already " and more meaningful.

example; "Aussie Dollar now 0.90108"


The batch files are as follows:

speech.bat = Works with words inside

speech2.bat = Works in a DOS box ... but not in MT4 .In a DOS box Type <speech2 Aussie Dollar now 0.90108> With out the <>

Change the file extension from .txt to .bat

Files:
speech.txt 1 kb
speech2.txt 1 kb
whroeder1
13641
whroeder1 2014.03.13 00:47  
Roddo: Works in a DOS box ... but not in MT4
Likely because mt4 strings are unicode, not ansi
Roddo Greenwood
91
Roddo Greenwood 2014.03.13 06:00  
WHRoeder:
Likely because mt4 strings are unicode, not ansi

Hi WHRoeder do you know of a work around



Rod

qjol
3243
qjol 2014.03.13 06:25  

convert to ANSI StringToCharArray

/
To add comments, please log in or register