In the case of NVDA, import winUser module. (You may also want to review it in
the nvda \source folder.)
I'm not sure which method you need, perhaps getMessage() or sendMessage() will
work.
NVDA has a lot of Windows helper function in winUser.py and something in there
should do what you need.
-Travis
-----Original Message-----
From: program-l-bounce@xxxxxxxxxxxxx <program-l-bounce@xxxxxxxxxxxxx> On Behalf
Of Karl-Otto Rosenqvist
Sent: Friday, January 28, 2022 10:48 AM
To: program-l@xxxxxxxxxxxxx
Subject: [program-l] Use Windows Message to get info från Python
Hi!
I'd like to enhance an add on I've created for NVDA and in order to get info
about the selected tab and the text on that tab I need to send Windows Messages
but I have no idea on how to do this in Python.
It is TCM_GETCURSEL and TCM_GETITEM I should use.
Thanks in advance
Karl-Otto
--
Karl-Otto Rosenqvist
MAWINGU
Orgnr: 750804-3937
0701- 75 98 56
karl-otto@xxxxxxxxxx
https://mawingu.se
** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq
** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq