[program-l] Re: question about mouse with sound function

  • From: jacob kruger <jacob.kruger.work@xxxxxxxxx>
  • To: program-l@xxxxxxxxxxxxx
  • Date: Wed, 23 Nov 2022 13:35:59 +0200

Hedvig, this bit of python code might not be perfect, but, it comes from a little utility I created for a connection a little while ago - it uses wxPython to track mouse position, and, while was initially just outputting the mouse positions for them, you could query those and then use something like print(chr(7)) - makes a form of beep sound, since it sort of triggers windows error/alert tone?


And, to install the wx module, think you just use the following pip command:

pip install wxPython


#start code

import wx, time

app = wx.App()

while True:
    time.sleep(5) # wait 5 seconds
    print(str(wx.GetMousePosition())) # this prints out the X and Y coordinates of the current mouse cursor position

# end code


Jacob Kruger
+2782 413 4791
"Resistance is futile...but, acceptance is versatile..."


On 2022/11/23 09:49, Hedvig Jung wrote:

I am Hedvig.

I use Python 3.8 programming language in Windows 10.
I work on PyCharm with
JAWS for Windows reading program.

I would like to use such a sound signal,
if mouse pointer goes outside of my computer screen, then I can hear a
sound signal.

I would like to use a sound signal,
if there is no pixel under the mouse pointer and the mouse pointer is
outside of my computer screen,
then I can  hear a sound signal.

I would like to ask you,
which Python program codes can I run that I can hear this
sound signal if the mouse pointer is outside of the computer screen?

Which Windows application can I use that I can hear this sound signal
if the mouse pointer is outside of computer screen?

Or what kind of other solution exists that I can hear this sound signal?

I would like to kindly ask you to send me please your answer
to my private e-mail address.

My private e-mail address:
hedvig.jung@xxxxxxxxx


       Thank you very much for your help and for your answer in advance!
       Kind regards,
       Hedvig
** 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

Other related posts: