Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Detect an object's attribute
#2
I think I've answered my own question:

Code:
Copy      Help
int hwnd=id(1023 w2)
;wait_while_play
if childtest(hwnd  "Pause" "Button" w2)
,goto wait_while_play
if childtest(hwnd  "Play" "Button" w2)
,mes("button says Play")

Is this the normal way to do something like this? Or is there a better way? I notice the goto loop is consuming a lot of CPU cycles...

I was RTFM Tongue and noticed the topic "Triggers: accessible object". I really don't understand Acc. And the Log Acc. Events function in QM seems too verbose (perhaps the reason for the filter?), making it hard to find items of interest. WinDowse seemed to be a perfect tool for exploring objects.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)