Download MetaTrader 5

Alerts with Speech

To add comments, please log in or register
Roddo Greenwood
97
Roddo Greenwood  

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
15692
whroeder1  
Roddo: Works in a DOS box ... but not in MT4
Likely because mt4 strings are unicode, not ansi
Roddo Greenwood
97
Roddo Greenwood  
WHRoeder:
Likely because mt4 strings are unicode, not ansi

Hi WHRoeder do you know of a work around



Rod

qjol
3243
qjol  

convert to ANSI StringToCharArray

To add comments, please log in or register