melanieKno
2 years agoOccasional Contributor
WaitForm() method?
I need to wait for a Form object below a java process. The caption of the form is dynamic that's why I cannot use NameMapping.
In Python the code at the bottom returns "found" when the object is open, but how can I implement the same using a wait method? WaitForm() is not available. Sometimes it takes several minutes for the form until it's shown.
def test():
process = Sys.Process("java")
caption = "ECH *"
formObject = process.Form(f"{caption}")
if formOjbect.Exists:
Log.Message("found")
else:
Log.Message("doesn't exist")