Skip to content

NVDA sript wiki

CyrilleB79 edited this page Apr 29, 2019 · 3 revisions

This page is a FAQ on NVDA scripting.

How do I know which script is associated to a gesture (shortcut)?

Example: you want to which script is associated to NVDA+T shortcut.

  • Logging level should be set to "Debug"
  • Press NVDA+1 to enter input help mode
  • Press the shortcut you want to know the associated script, thus press NVDA+T
  • Press NVDA+1 to exit input help mode
  • Press NVDA+F1 to open NVDA log viewer.
  • In the last lines of the log, you should find the line that gives you the answer:

    Input help: gesture kb(desktop):NVDA+t, bound to script title on globalCommands.GlobalCommands

How do I make something spoken in NVDA console

Example: Make the current synthesizer speak 'foo bar' in the console.

  • Open the NVDA console pressing NVDA+Ctrl+Z
  • Type the following lines in the console:

    import core seq = ['foo bar'] dummy = core.callLater(0, speech.speak, seq)

Note that you can sent more complicated speech sequences such as:

seq = [speech.LangChangeCommand('en'), 'Hello world!', speech.LangChangeCommand('fr'), 'Bonjour le monde !', speech.LangChangeCommand('it'), 'Ciao il mondo !'] dummy = core.callLater(0, speech.speak, seq)