[program-l] help in fixing A runtime error in my function

  • From: Alissar Abdulbaqi <alissar570@xxxxxxxxx>
  • To: program-l@xxxxxxxxxxxxx
  • Date: Mon, 12 Apr 2021 14:37:12 +0300

Hello. I'm facing a problem in a function for Commentary Screen Reader:
There is a function for long pressing an item on the screen which is:
service.toLongClick()

I want to create this function to make it long press the focused item
and stays on a button without accessing it.
My function is:

if service.toLongClick("<Mute")
return true
end

But while executing it, I receive an error message of "runtime error".
What's the error in writing the function?
Thanks for any help
** 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: