Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (degenerate_762, AbrahamR, AndrewAMD, ozgur), 667 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Send Mail on specific actions #429044
09/07/13 17:16
09/07/13 17:16
Joined: May 2013
Posts: 627
Bonn
Sundance Offline OP
User
Sundance  Offline OP
User

Joined: May 2013
Posts: 627
Bonn
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

Last edited by Sundance; 09/07/13 17:37. Reason: diag.txt
Re: Send Mail on specific actions [Re: Sundance] #429072
09/08/13 17:02
09/08/13 17:02
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
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.


Re: Send Mail on specific actions [Re: jcl] #429077
09/08/13 18:53
09/08/13 18:53
Joined: May 2013
Posts: 627
Bonn
Sundance Offline OP
User
Sundance  Offline OP
User

Joined: May 2013
Posts: 627
Bonn
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.)

Re: Send Mail on specific actions [Re: Sundance] #429116
09/09/13 09:05
09/09/13 09:05
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
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.

Re: Send Mail on specific actions [Re: jcl] #429117
09/09/13 09:11
09/09/13 09:11
Joined: May 2013
Posts: 627
Bonn
Sundance Offline OP
User
Sundance  Offline OP
User

Joined: May 2013
Posts: 627
Bonn
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 :-)

Re: Send Mail on specific actions [Re: Sundance] #429245
09/10/13 12:35
09/10/13 12:35
Joined: May 2013
Posts: 627
Bonn
Sundance Offline OP
User
Sundance  Offline OP
User

Joined: May 2013
Posts: 627
Bonn
So i guess you don't think about an email notification directly out of Zorro?

Re: Send Mail on specific actions [Re: Sundance] #429251
09/10/13 13:10
09/10/13 13:10
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Have a look into the 1.16 features - http://manual.zorro-trader.com/new.htm

Re: Send Mail on specific actions [Re: jcl] #429253
09/10/13 13:21
09/10/13 13:21
Joined: May 2013
Posts: 627
Bonn
Sundance Offline OP
User
Sundance  Offline OP
User

Joined: May 2013
Posts: 627
Bonn
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!?

Re: Send Mail on specific actions [Re: Sundance] #429264
09/10/13 14:47
09/10/13 14:47
Joined: Jul 2013
Posts: 522
D
dusktrader Offline
User
dusktrader  Offline
User
D

Joined: Jul 2013
Posts: 522
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.

Re: Send Mail on specific actions [Re: dusktrader] #429268
09/10/13 15:30
09/10/13 15:30
Joined: May 2013
Posts: 627
Bonn
Sundance Offline OP
User
Sundance  Offline OP
User

Joined: May 2013
Posts: 627
Bonn
Thanks for the info dusk. Will look at the Simulation Result field. Many roads lead to rome :-)


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1