Skip to content

Commit

Permalink
verbalización de los datos de un archivo adjunto con alt + r
Browse files Browse the repository at this point in the history
  • Loading branch information
GerardKessler committed Dec 30, 2022
1 parent cb8bfbe commit 011667c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Al enfocarse un mensaje con un link:

Al enfocarse un mensaje con archivo adjunto

* alt + r; activa una ventana modal con los datos del archivo
* alt + r; verbaliza los datos del archivo

### Atajos de la aplicación

Expand Down
6 changes: 6 additions & 0 deletions addon/appModules/whatsapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,12 @@ def script_chatName(self, gesture):
def script_viewText(self, gesture):
fc = api.getFocusObject()
try:
try:
if fc.children[-3].UIAAutomationId == 'SaveButton':
message('{}, {}'.format(fc.children[-6].name, fc.children[-5].name))
return
except:
pass
if not fc.UIAAutomationId == 'BubbleListItem': return
text = '\n'.join([item.name for item in fc.children if (item.UIAAutomationId == 'TextBlock' and item.next.next.UIAAutomationId == 'ReadMore')])
if text:
Expand Down
4 changes: 4 additions & 0 deletions addon/doc/en/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ When focusing a message with a link:

* control + enter; capture and open the link in the default browser

Focusing on a message with attachment

* alt + r; verbalize the file data

## App Shortcuts (these are native shortcuts provided by WhatsApp):

* Chat search box; control + f
Expand Down
2 changes: 1 addition & 1 deletion addon/doc/fr/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Lors de la focalisation d'un message avec un lien:

Lors de la focalisation d'un message avec un fichier joint:

* alt + r; active une fenêtre modale avec les données du fichier
* alt + r; se concentrer sur un message avec pièce jointe

### Raccourcis de l'application

Expand Down
2 changes: 1 addition & 1 deletion addon/doc/it/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Quando si mette a fuoco un messaggio con un collegamento:

Concentrandosi su un messaggio con allegato

* alt+r; attiva una finestra modale con i dati del file
* alt+r; verbalizzare i dati del file

### Scorciatoie dell'applicazione

Expand Down

0 comments on commit 011667c

Please sign in to comment.