Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Accessible Object Trigger / Release
#2
Event "kill focus" does not exist. Need to remember last focused object...

This function works with the first edit control in Notepad Replace dialog.
Function acc_focus2
Trigger $a 133 -4 "" "Edit" 1152 "" "#32770" "Replace"     Help - how to add the trigger to the macro
Code:
Copy      Help
function hwnd idObject idChild
Acc a.ObjectFromEvent(hwnd idObject idChild)
out "set focus"
rep
,0.1
,int focused=a.State&STATE_SYSTEM_FOCUSED
,err break
,if(!focused) break
out "kill focus"


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)