Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
get name of the currently open tab
#11
Quote:#10. I usually just uncheck name in the Find UI element tool. But if want to delete the name argument later in code, it's easy to replace it with `null` or add `prop:`.
Very useful.
 
Quote:#11. To easily create correct state code, click the state text field in the "Find" tool. A small button will appear at its right side...

I've tried it, but it didn't work.

Macro get_Tab
Code:
Copy      Help
out
int w=win("LINQPad" "*.Window.*")
Acc a.Find(w "PAGETABLIST" "" "class=HwndWrapper[DefaultDomain;;*]" 0x1004 3 2)
ARRAY(Acc) c; a.GetChildObjects(c -1 "PAGETAB" "" "class=HwndWrapper[DefaultDomain;;*][]state=0x300002 0x0")
c[0].State(_s); out _s
out c[0].Name


Messages In This Thread
get name of the currently open tab - by Davider - 03-22-2024, 03:20 AM
RE: get name of the currently open tab - by Davider - 03-22-2024, 01:57 PM

Forum Jump:


Users browsing this thread: 5 Guest(s)