Skip to content

pyia.Registry does not allow other code to be ran. #3

@trypolis464

Description

@trypolis464

I'm currently trying to make an MSAA server application using Pyia. The MSAA code runs, but none of the other code runs, past me calling the initialize function.
Here it is.

def onChangeReaction(event):
	speech.speak(event)

def initialize():
	pyia.Registry.registerEventListener(onChangeReaction, pyia.EVENT_OBJECT_FOCUS)
	pyia.Registry.start()

Then when I call

msaaHandler.initialize()

None of the code past it runs, but I do get MSAA events.
Maybe make it run in a background thread? When trying to run .start() in a thread though, it doesn't print/speak.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions