I am trying to use KM9 to automate a dialog box created inside an app. The dialog box presents a scrolling list to select an item.
KM9 acts as if the dialog box does not exist. Characters typed via Macro are not entered in the dialog. If I use Find Image to select the item I want to choose from the list, nothing is ever found.
Is there any way to automate the completion of Dialog box?
The main things Keyboard Maestro fails to see are floating windows and palettes.
In your case KM doesn't see the pop-over-window, but AppleScript UI-Scripting does:
# Populate DEVONthink 3 Find Field in the Go-To pop-over-window.
tell application "System Events"
tell application "System Events"
tell application process "DEVONthink 3"
tell (first window whose subrole is "AXStandardWindow")
tell pop over 1
tell text field 1
set value to "TESTING"
end tell
end tell
end tell
end tell
end tell
end tell
It looks like there's a bug in DEVON's accessibility for DT3. It should respond to AXConfirm, and it doesn't.
Someone should report it.
To contrast – try this in the Keyboard Maestro 9 Editor:
tell application "System Events"
tell application process "Keyboard Maestro"
tell (first window whose subrole is "AXStandardWindow")
tell text field 1
set value to "test"
perform action "AXConfirm"
end tell
end tell
end tell
end tell