Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting and Inserting ControlID as a string
#1
Hello All,
I am trying to get the text from a specific window element but the control id is variable and that seems to be the most reliable way of getting at that window (once I manually set the control id).
I tried to use a quick GetWinID to find it out and then insert the resultant value into the control id location of my getwintext line but it doesn't seem to be working. Could this just be a syntax error for how to insert a str function into that getwintext function? The variable number (in this case 5309158) should probably be wildcarded since that is the variable part!) but I don't know how to do this.
The example is below:

int controlid=GetWinId(child(5309158 "" "WindowsForms10.STATIC.app.0.378734a" win("Commissure RadWhere" "WindowsForms10.Window.8.app.0.378734a") 0x1))

mrn.getwintext(id(controlid win("Commissure RadWhere" "WindowsForms10.Window.8.app.0.378734a")))

Thanks so much!!!!!!
Stuart


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)