Re: [allos] Équivalent de scripts pour NVDA |
[ Thread Index | Date Index | More lists.tuxfamily.org/allos Archives ]
Bonjour Daniel,
Je te l'envoie en pj.
Tel quel, il ne t'apprendra pas grand-chose, dans
la mesure où il s'appuie sur beaucoup d'autres modules de nvda.
En fait, il te faudrrait télécharger tout le source
de nvda.
|
#appModules/thunderbird.py #A part of NonVisual Desktop Access (NVDA) #Copyright (C) 2006-2008 NVDA Contributors <http://www.nvda-project.org/> #This file is covered by the GNU General Public License. #See the file COPYING for more details. import _default import controlTypes import api import speech import winUser class AppModule(_default.AppModule): def event_gainFocus(self, obj, nextHandler): if obj.role == controlTypes.ROLE_DOCUMENT and controlTypes.STATE_BUSY in obj.states and winUser.isWindowVisible(obj.windowHandle): statusBar = api.getStatusBar() if statusBar: try: # The document loading status is contained in the second field of the status bar. statusText = statusBar.firstChild.next.name except: # Fall back to reading the entire status bar. statusText = api.getStatusBarText(statusBar) speech.speakMessage(controlTypes.speechStateLabels[controlTypes.STATE_BUSY]) speech.speakMessage(statusText) return nextHandler()
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |