Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Read Time
#2
Example with Windows 7 clock.
Function Function292
Code:
Copy      Help
str sTime="10:49"
rep
,1
,int w=win("" "Shell_TrayWnd")
,Acc a.Find(w "CLOCK" "Clock" "class=TrayClockWClass[]id=303" 0x1005)
,str s=a.Value
,;out s
,s.gett(s 0 ",")
,;out s
,if s=sTime
,,out s
,,break
The 3 lines starting from the int w... line can be created with dialogs that you can find in the floating toolbar, menu 'Windows,controls'.
If the time cannot be captured as accessible object, try other dialogs from the menu.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)