Send Mail on specific actions

Posted By: Sundance

Send Mail on specific actions - 09/07/13 17:16

Hi jcl,

as i wan't more control over my VPS and also the current actions Zorro is attempting i wanted to read the 'Zorro messages' ListControl with the help of AutoIt. I would like to evaluate the output Zorro is given.
For example sending an email to when there is an error message appearing...

The problem is that AutoIt won't show me any text. This is a clear indication that you aren't using a standard windows conrol :-) .
Can you help me? Diag.txt won't help me cause its an opened file i can't read from nor copy it...

Thanks in advance
Posted By: jcl

Re: Send Mail on specific actions - 09/08/13 17:02

All Zorro GUI objects are 100% standard windows controls. We just had not the time to program anything fancy wink.

For generating output, better let Zorro itself do that rather than using third party hacks. For instance, Zorro can just just write something into a file, or start a program that sends an email.

Posted By: Sundance

Re: Send Mail on specific actions - 09/08/13 18:53

Thanks for the reply. But what can i do to be informed when my running Zorro/Z12s instance is giving me errors!?

(I'am just in the writing of a little script which will look at the diag.txt file an when an error occurs it sends an email.)
Posted By: jcl

Re: Send Mail on specific actions - 09/09/13 09:05

I would then parse the logfile rather than diag.txt. But the problem is indeed that you can not access the logfile while Zorro is writing into it.

I'll think about a solution, maybe an additional log channel that can be evaluated by external programs.
Posted By: Sundance

Re: Send Mail on specific actions - 09/09/13 09:11

Thanks jcl. I will look into the log file.
I will use the shadow copy provider of windows to make a copy of it and evaluate it. But it is really some programming to do so if you really thinking of making it possible to send emails on specific actions i would directly stop it :-)
Posted By: Sundance

Re: Send Mail on specific actions - 09/10/13 12:35

So i guess you don't think about an email notification directly out of Zorro?
Posted By: jcl

Re: Send Mail on specific actions - 09/10/13 13:10

Have a look into the 1.16 features - http://manual.zorro-trader.com/new.htm
Posted By: Sundance

Re: Send Mail on specific actions - 09/10/13 13:21

Okay. I see. But when using the Z Systems it won't help me cause the functionality is then within the script and not in the Zorro core system!?
Posted By: dusktrader

Re: Send Mail on specific actions - 09/10/13 14:47

Hey Sundance,
not sure if this would help... it's a hack for sure... but don't forget you can double-click the "Zorro messages" window and it copies the last few lines to the clipboard.

You could use AutoIt to double-click periodically and then evaluate the clipboard. I notice also that AutoIt can read the "Simulation Result" field, so changes in that field could be your trigger to check the messages box.
Posted By: Sundance

Re: Send Mail on specific actions - 09/10/13 15:30

Thanks for the info dusk. Will look at the Simulation Result field. Many roads lead to rome :-)
© 2024 lite-C Forums