Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Wait for the Acc control to be available
#1
Hi,

I login to the TIM software using code A , Execution succeeded!

I using code B to manipulate a control in TIM window, Execution succeeded!

But when I merge them together to execute, it says that the Acc control cannot be found

Note: The window properties are the same at login and after login 
 
Code:
Copy      Help
win("TIM" "TXGuiFoundation")

Is there an easy way to solve this problem?

Thanks in advance for any advice and help
david

code A:  login
 
Code:
Copy      Help
run "$program files$\Tencent\TIM\Bin\TIM.exe" "" "" "" 0xA00 win("TIM" "TXGuiFoundation")
'Y

code B: after login
Code:
Copy      Help
2
int w=wait(10 WV win("TIM" "TXGuiFoundation"))
Acc a.Find(w "TEXT" "搜索" "state=0x0 0x20000040" 0x1005 10)
if a.a
,mes "ok"


Forum Jump:


Users browsing this thread: 1 Guest(s)