|
3 registered members (AndrewAMD, juanex, Grant),
1,018
guests, and 8
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Avoid modal dialogs
[Re: jcl]
#429192
09/10/13 07:16
09/10/13 07:16
|
Joined: Sep 2013
Posts: 504 California
GPEngine
OP
User
|
OP
User
Joined: Sep 2013
Posts: 504
California
|
I have a dos/cmd/batch script which executes Zorro -train at the command line, say 1000 times, with a different strategy each time. If one of the strategies has an error, the remainder will not execute. Zorro will block and wait for me to click on something. I would rather Zorro just log the error and exit so the batch script can continue and as much work as possible will be completed without my intervention. I can deal with the errors at the end.
Do you follow me?
Last edited by GPEngine; 09/10/13 07:27.
|
|
|
Re: Avoid modal dialogs
[Re: GPEngine]
#429275
09/10/13 17:14
09/10/13 17:14
|
acidburn
Unregistered
|
acidburn
Unregistered
|
I tend to agree with GPEngine that Zorro suddenly switching from noninteractive (auto) mode to interactive (click is needed) is not very nice. I've not seen much problems with it so far, but I've also occassionaly seen popups that didn't make much sense.
Here's an idea (that might also help GPEngine's case), if command line switch is used (-train in this case), behave non-interactively and just die with an error message (exit status?) if some fatal error is encountered. Don't ask for user assistance, because the user might not be near, that's why -train was used (probably Zorro was called from another script).
OTOH, if Train button is clicked, the operator is probably still near, so continue asking for help/direction with popups when needed (in case of an error, etc...).
This approach could bring the best of both worlds, IMHO.
|
|
|
Re: Avoid modal dialogs
[Re: jcl]
#429330
09/11/13 13:58
09/11/13 13:58
|
Joined: Sep 2013
Posts: 504 California
GPEngine
OP
User
|
OP
User
Joined: Sep 2013
Posts: 504
California
|
Great! Watch this forum for more example scripts. In my last update of the PERCEPTRON thread, I mentioned that if all the input signals are poor, adviceLong(PERCEPTRON,...) will produce .c file with a syntax error. (Containing something like "if( > 0.50)". Kaboom.) In the meantime, consider that other failure modes also produce message boxes. These are two I've seen. Error 049: Too many trades Error 060: memory fragmented
Last edited by GPEngine; 09/11/13 14:02.
|
|
|
Re: Avoid modal dialogs
[Re: GPEngine]
#451684
05/16/15 15:20
05/16/15 15:20
|
Joined: Sep 2013
Posts: 504 California
GPEngine
OP
User
|
OP
User
Joined: Sep 2013
Posts: 504
California
|
The -quiet flag is great. One more request. Can you also make it so that when -quiet is supplied, the Zorro UI window does not take focus? For example, I execute a script which starts many Zorro quiet-ly in succession. I cannot get other work done because every time a new Zorro starts, the other window I'm working on goes into the background. 
|
|
|
|