hi. I try to create shortcut to end the call, but I failed.
here is my code:
@script(
gesture="kb:alt+control+e",
description=_("press end audio call, or end video call button"),
category="whatsapp")
def script_endCall(self, gesture):
obj = self.find("EndCallButton")
if obj:
obj.doAction()
else:
gesture.send()
hi. I try to create shortcut to end the call, but I failed. here is my code:
Maybe I should add something?