WIP: AX port and noatspi work

This commit is contained in:
Storm Dragon
2025-12-25 20:51:34 -05:00
parent 0a18de8e87
commit e134bf97d5
103 changed files with 12882 additions and 3556 deletions

View File

@@ -25,6 +25,9 @@
'''TEST the Ability to find out the square root of a selected number'''
import gi
gi.require_version('Atspi', '2.0')
from gi.repository import Atspi
from macaroon.playback import *
import utils
sequence = MacroSequence()
@@ -34,7 +37,7 @@ sequence = MacroSequence()
#
sequence.append(WaitForWindowActivate("Calculator", None))
sequence.append(KeyComboAction("<Control>a"))
sequence.append(WaitForFocus("Change Mode", acc_role=pyatspi.ROLE_PUSH_BUTTON))
sequence.append(WaitForFocus("Change Mode", acc_role=Atspi.Role.PUSH_BUTTON))
sequence.append(KeyComboAction("Return"))
###############################################################################