-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
restart nvda, clean up, fix edge case, better docs
- Loading branch information
Showing
13 changed files
with
87 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import globalPluginHandler | ||
from scriptHandler import script | ||
import config | ||
|
||
class GlobalPlugin(globalPluginHandler.GlobalPlugin): | ||
|
||
@script(gesture="kb:NVDA+9") | ||
def script_announceNVDAVersion(self, gesture): | ||
interrupt = config.conf["keyboard"]["speechInterruptForCharacters"] | ||
config.conf["keyboard"]["speechInterruptForCharacters"] = not interrupt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -143,3 +143,5 @@ braille display dialog: | |
pass through next: | ||
user.with_nvda_mod_press('f2') | ||
|
||
restart reader: | ||
user.restart_nvda() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# tag: user.nvda_running | ||
|
||
# - | ||
|
||
# # navigate through links on a page | ||
# deck(pedal_left:repeat): | ||
# key(tab) | ||
# sleep(.2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# title: /app.slack.com/ | ||
|
||
# - | ||
|
||
# deck(pedal_left): | ||
# key(tab:down) | ||
# key(f6) | ||
# key(tab:up) | ||
# sleep(0.1) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
-------------------- | ||
set currentDate to current date | ||
say currentDate using "Ava" | ||
delay 2 | ||
|
||
----------------------- | ||
try | ||
set doNotShowSplashScreen to (do shell script "defaults read com.apple.VoiceOverTraining doNotShowSplashScreen") as integer as boolean | ||
on error | ||
set doNotShowSplashScreen to false | ||
end try | ||
if doNotShowSplashScreen then | ||
do shell script "/System/Library/CoreServices/VoiceOver.app/Contents/MacOS/VoiceOverStarter" | ||
else | ||
do shell script "defaults write com.apple.VoiceOverTraining doNotShowSplashScreen -bool true && /System/Library/CoreServices/VoiceOver.app/Contents/MacOS/VoiceOverStarter" | ||
end if | ||
|
||
|
||
--- allow voiceover to be controlled with applescript | ||
tell application "VoiceOver" to say (do shell script "date +\"%l:%M %p\"") using "Karen" speaking rate 270 volume 0.4 | ||
|
||
|
||
-- Set the text you want VoiceOver to speak---------------- | ||
set textToSpeak to "Hello, this is a test." | ||
do shell script "say " & quoted form of textToSpeak | ||
|
||
---------------- | ||
tell application "VoiceOver" | ||
tell commander to perform command item chooser | ||
end tell |