Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is this an error in an accessible object trigger?
#2
VLC does not enable the event, or even does not create the accessible COM object, until something searches for the object. Some programs use "enable accessibility on demand" to start faster, use less memory, etc.

Use this window-triggered function to auto-enable VLC Play/Pause button accessible events.
Function Enable_acc_events_in_VLC
Trigger !cv"VLC media player" "QWidget"     Help - how to add the trigger to the macro
Code:
Copy      Help
int w=TriggerWindow
Acc a.Find(w "PUSHBUTTON" "" "class=QWidget[]descr=^(Play|Pause)" 0x1088)
;out "VLC acc events enabled"

;Possibly enables events only of part of objects, including the Play/Pause button.
;If need to enable for all objects, use this slower code:
;Acc a.Find(w "ALERT")


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)