on ‎2023 Jan 28 2:43 PM
Hello,
So this is my code:
for i in range (session.FindById("wnd[1]/usr/cntlGRID1/shellcont/shell").RowCount -1): if session.FindById("wnd[1]/usr/cntlGRID1/shellcont/shell[0,i]").Text == "ESZ kÃsérÅ‘levél":session.FindById("wnd[1]/usr/cntlGRID1/shellcont/shell").GetAbsoluteRow(i).Selected = True
and this grid:

And I want to select the line where the "ESZ kÃsérÅ‘levél" appears.
I didn't really realize what I messed up. Any ideas?
Request clarification before answering.
Hi Patrik,
I don't program in PYTHON, but in VB-Script it might look like this.
for i in range (session.FindById("wnd[1]/usr/cntlGRID1/shellcont/shell").RowCount -1):
if session.FindById("wnd[1]/usr/cntlGRID1/shellcont/shell[0," & cstr(i) & "]").Text ==
"ESZ kÃsérÅ‘levél":
session.FindById("wnd[1]/usr/cntlGRID1/shellcont/shell").GetAbsoluteRow(i).Selected = TrueRegards, ScriptMan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 13 | |
| 8 | |
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.