Michael Yee wrote:Uri,
I don't know exactly what you're trying to do, but if you know how to start a process (and have access to its standard in/out), maybe you could try the following:
(1) Write a script for windows script host (WSH) in javascript that programmatically controls a currently running winboard instance. For example, you can send wb keyboard commands like alt-shift-v
(2) Write a WSH script that pops up a message box to get input from the person
(3) From your engine, call script 1 to load a position in wb
(4) From your engine, call script 2 to get human input
However, I think Sune is right--if you need a lot of control over the interaction with the user, it might be easist to write your own GUI or at least use an existing GUI component (e.g., I think they exists for visual basic).
Michael
I do not know how to start a process and I have no idea how to write my own GUI.
I do not agree that the easiest thing is to write my own GUI.
It seems to me very hard to work on my own GUI because I have no idea how to start.
I also thing that writing a gui is a deterministic task so I see no reason that every programmer has to reinvent the wheel.
I thought to write some program that maybe can help humans to learn to play chess better but I even cannot test it on players that I know if I cannot write a program to show them diagrams and ask them questions
and respond based on their reply.
I have no program to ask questions at this moment and without the possibility to show diagrams to the user, I have no motivation to think about the relevant diagrams and the relevant questions .
Uri