Turn off VoiceOver when using a stack

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
gg12
Posts: 6
Joined: Mon May 02, 2022 1:49 am

Turn off VoiceOver when using a stack

Post by gg12 » Mon Sep 26, 2022 7:57 am

Hi,
I would like to turn off VoiceOver or Narrator when my stack is running and turn it back on when we close the stack. I don't know how to take the approach.
The only function I found close to my subject is "mobileIsVoiceOverRunning" on iOS.

Thank you
-gg

stam
Posts: 2634
Joined: Sun Jun 04, 2006 9:39 pm
Location: London, UK

Re: Turn off VoiceOver when using a stack

Post by stam » Mon Sep 26, 2022 11:33 am

Hi gg - not sure what platform you're referring to, i presume MacOS as you've been looking into iOS.

Don't know if it helps, but the Accessibility API should cover this:
https://developer.apple.com/library/arc ... ityMacOSX/
Quite how you would use that via LC I'm not sure...

It may be simpler to control this via AppleScript. There is a 'VoiceOver utility" app on mac. The tickbox to allow this to be controlled via AppleScript needs to be ticked (i'm guessing that's doable via AppleScript as well).

See a youtube video on this here: https://www.youtube.com/watch?v=FCbgtb0jeQ4

Obviously the above are for MacOS only...

HTH
S.

gg12
Posts: 6
Joined: Mon May 02, 2022 1:49 am

Re: Turn off VoiceOver when using a stack

Post by gg12 » Mon Sep 26, 2022 1:15 pm

Hi S.,
Thank you so much for your directions. That confirms what I thought: I need to go to a level lower.
I'm looking to cover all the platforms in the futur, however with what you gave me, it's a great start.
(VoiceOver on iOS, Narrator on Windows, iOS, Android etc.)
I'll try to work that out when I finish my current tasks and will try to update a bit on the directions I went.

Best regards and great Monday,
-gg

Post Reply

Return to “Talking LiveCode”