Skip to content

Commit 9efa67e

Browse files
committed
adding project files
1 parent a90649d commit 9efa67e

28 files changed

Lines changed: 322 additions & 3 deletions

.gitattributes

Lines changed: 0 additions & 2 deletions
This file was deleted.

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,12 @@
1-
# SoundFile-nvda-addon
1+
SoundFile NvdaAddon
2+
plays sounds by navigation in filemanager depends on file extensions.
3+
supports windows explorer, TotalCommander and winrar and 7zip file managers.
4+
in explorer, you should enable displaying of file extensions. in archiver, short list mode (only file names must be displayed).
5+
sound files are located:
6+
in installed version: %AppData%\nvda\addons\SoundFile\appModules\data
7+
in portable version: %nvda%\userConfig\%AppData%\nvda\addons\SoundFile\appModules\data
8+
where %nvda% - foldir of portable version
9+
this wav files can be replaced by another.
10+
to add more extensions to sound scim, add to this foldir your wav files and name it to file extensions, for agsample, fb2.wav or bmp.wav
11+
12+

codes/addon/appModules/7zfm.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import os
2+
import winsound
3+
import controlTypes
4+
import appModuleHandler
5+
import api
6+
import data
7+
loc = os.path.abspath(os.path.dirname(data.__file__))
8+
9+
def play(name):
10+
ft = os.path.splitext(name)
11+
fe = ft[1][1:]
12+
f = os.path.join(loc, fe + '.wav')
13+
if os.path.exists(f):
14+
winsound.PlaySound(f, winsound.SND_ASYNC)
15+
16+
17+
class AppModule(appModuleHandler.AppModule):
18+
def event_gainFocus(self, obj, nextHandler):
19+
if obj.role == controlTypes.ROLE_LISTITEM:
20+
play(obj.name)
21+
nextHandler()
22+

codes/addon/appModules/data/7z.wav

9.73 KB
Binary file not shown.

codes/addon/appModules/data/__init__.py

Whitespace-only changes.
24 KB
Binary file not shown.
24 KB
Binary file not shown.
18.8 KB
Binary file not shown.
18.8 KB
Binary file not shown.
12 KB
Binary file not shown.

0 commit comments

Comments
 (0)