Hi all,
I want to try to integrate CivIV with the voice recognition engine Dragon NaturallySpeaking. DNS has a python interface module and runs its own python interpreter. I want to connect this with the python interpreter in CivIV so that the voice recognition engine can query civ for the current state of the interface and activate an appropriate voice command grammar.
The first question is: how do I find out which screen is currently being shown (normal, city, advisors, globe, etc)? It seems the CyGInterfaceScreen has a lot of add... and set... methods, but I haven't seen a way to retrieve the current screen instance or how to identify the possible actions in the current screen.
Second question: can I perform player actions through python calls?
Any pointers would be most helpful! Thanks,
/Patrik
I want to try to integrate CivIV with the voice recognition engine Dragon NaturallySpeaking. DNS has a python interface module and runs its own python interpreter. I want to connect this with the python interpreter in CivIV so that the voice recognition engine can query civ for the current state of the interface and activate an appropriate voice command grammar.
The first question is: how do I find out which screen is currently being shown (normal, city, advisors, globe, etc)? It seems the CyGInterfaceScreen has a lot of add... and set... methods, but I haven't seen a way to retrieve the current screen instance or how to identify the possible actions in the current screen.
Second question: can I perform player actions through python calls?
Any pointers would be most helpful! Thanks,
/Patrik