Set btn = Sys.Process(\"MyApp\").Window(\"TMainFrm\",\"MyApplication *\").Child(2)
If btn.WaitProperty(\"Enabled\", True, 2000) Then
' Button is enabled
Else
' Button is disabled
End If
Set btn = Sys.Process(\"MyApp\").Window(\"TMainFrm\",\"MyApplication *\").Child(2)
If btn.WaitProperty(\"Enabled\", True, 2000) Then
' Button is enabled
Else
' Button is disabled
End If