[nvda-addons] Re: Basic script questions

  • From: Joseph Lee <joseph.lee22590@xxxxxxxxx>
  • To: nvda-addons@xxxxxxxxxxxxx, nvda-addons@freelists.orgANDLE_T
  • Date: Mon, 02 Jun 2014 08:53:53 -0700

Hi Amanda,
You cannot really "generate" wave signals via NVDA. However, you can play a wave file using NV wave module, with the name of the file to play as a parameter (Mick knows more about this than I do; I rarely use NV wave player). And you cannot generate multiple tones using tones module.
Cheers,
Joseph

----- Original Message -----
From: Amanda Lacy <lacy925@xxxxxxxxx
To: nvda-addons@xxxxxxxxxxxxx
Date sent: Mon, 02 Jun 2014 10:50:59 -0500
Subject: [nvda-addons] Re: Basic script questions

So I have another question...

Tones.beep doesn't output multiple frequencies at once. To do this I assume I will need to generate wave data (usually done as floats between -1.0 and 1.0) and feed them to nvwave.wavePlayer. The problem is,
wavePlayer.feed takes an str argument, and I can find very little
information about the format of this string. So, how do you generate
waves and play them?

Amanda
On 5/30/2014 7:53 PM, Joseph Lee wrote:
Hi Amanda,
1.  You can get the name/identifier for the gesture by doing
gesture.displayName. The complete list of valid gestures is located in NVDA
core under source/vkCodes.py.
2. To send the gesture to the operating system, at the beginning of the
script routine, write gesture.send().
3. I usually use print statements in the script body to locate errors. When this is done, NVDA will output stdout as part of the log viewer text (log file). Of course in production releases, remove traces of debugging once you
know your script is working as advertised.
Any other questions?
Cheers,
jsoeph

-----Original Message-----
From: nvda-addons-bounce@xxxxxxxxxxxxx
[mailto:nvda-addons-bounce@xxxxxxxxxxxxx] On Behalf Of Amanda Lacy
Sent: Friday, May 30, 2014 5:43 PM
To: nvda-addons@xxxxxxxxxxxxx
Subject: [nvda-addons] Basic script questions

Hi, these are just a few dumb questions while I experiment with a few
plugins before actually getting started on my project.

First, is there a comprehensive list of gestures and their names?

Second, normally a script won't execute and then send the gesture to the
operating system, but is there a way to make it do this?

Finally, and this is more of a debugging question, what's the easiest way to get error messages? I've been copying my code to the global plugins folder and then reloading the plugins, but this doesn't generate any messages when
things don't work.

Amanda
----------------------------------------------------------------

NVDA add-ons Central: A list for discussing NVDA add-ons

To post a message, send an email to nvda-addons@xxxxxxxxxxxxx.

To unsubscribe, send an email with the subject line of "unsubscribe"
(without quotes) to nvda-addons-request@xxxxxxxxxxxxx.

If you have questions for list moderators, please send a message to
nvda-addons-moderators@xxxxxxxxxxxxx.

Community addons can be found here: http://addons.nvda-project.org

----------------------------------------------------------------

NVDA add-ons Central: A list for discussing NVDA add-ons

To post a message, send an email to nvda-addons@xxxxxxxxxxxxx.

To unsubscribe, send an email with the subject line of "unsubscribe" (without quotes) to nvda-addons-request@xxxxxxxxxxxxx.

If you have questions for list moderators, please send a message to nvda-addons-moderators@xxxxxxxxxxxxx.

Community addons can be found here: http://addons.nvda-project.org


----------------------------------------------------------------

NVDA add-ons Central: A list for discussing NVDA add-ons

To post a message, send an email to nvda-addons@xxxxxxxxxxxxx.

To unsubscribe, send an email with the subject line of "unsubscribe" (without quotes) to nvda-addons-request@xxxxxxxxxxxxx.

If you have questions for list moderators, please send a message to nvda-addons-moderators@xxxxxxxxxxxxx.

Community addons can be found here: http://addons.nvda-project.org
----------------------------------------------------------------

NVDA add-ons Central: A list for discussing NVDA add-ons

To post a message, send an email to nvda-addons@xxxxxxxxxxxxx.

To unsubscribe, send an email with the subject line of "unsubscribe" (without 
quotes) to nvda-addons-request@xxxxxxxxxxxxx.

If you have questions for list moderators, please send a message to 
nvda-addons-moderators@xxxxxxxxxxxxx.

Community addons can be found here: http://addons.nvda-project.org

Other related posts: