robot
robot copied to clipboard
fixed window activation failure condition on macOS
Because of incorrect condition, I failed to activate a window with specified PID. Follows are issues that related with this problem. #robotgo/73
# line 1795
- if (AXUIElementPerformAction (window.mData->AxID, kAXRaiseAction) == kAXErrorSuccess) { /*...*/ }
+ if (AXUIElementPerformAction (window.mData->AxID, kAXRaiseAction) != kAXErrorSuccess) { /*...*/ }
Thank you for this fix, I'll take a look and test this out!