nvda say in Python

Hello everybody.
Please tell me how to talk nvda in Python?
My code does not work:
import pyglet
import ctypes
nvda=ctypes.windll.LoadLibrary('./nvdaControllerClient32.dll')
res=nvda.nvdaController_testIfRunning()
if res!=0:
    errorMessage=str(ctypes.WinError(res))
    ctypes.windll.user32.MessageBoxW(0,u"Error: %s"%errorMessage,u"Error communicating with NVDA",0)

window=pyglet.window.Window()
@window.event
def on_key_press(symbol, modifiers):
    nvdaController_speakText("Hello")
@window.event
def on_draw():
    window.clear()
pyglet.app.run()
Traceback (most recent call last):
  File "C:\2.py", line 3, in <module>
    nvda=ctypes.windll.LoadLibrary('./nvdaControllerClient32.dll')
  File "C:\Python27\lib\ctypes\__init__.py", line 443, in Lo adLibrary
    return self._dlltype(name)
  File "C:\Python27\lib\ctypes\__init__.py", line 365, in __init__
    self._handle = _dlopen(self._name, mode)
WindowsError: [Error 126]

_______________________________________________
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Developers room : jonikster via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : chpross via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : masonian via Audiogames-reflector

Reply via email to