Hi,
I have several questions
1. Is it possible to not traverse object tree each time i want to access specific field?
So far i use Object.children.item() and so on. But it seems that anyway SAP traverse all the elements.
I thought it would be more performant but after profiling it seems not.
How to avoid that? Keep some kind of cache to access elements directly
2. Some GUI events doesn’t work: Hit, Error.
I catch them from Session object (Session_Hit, etc).
CreateSession and DestroySession works just fine.
The idea is same as built-in recorder: listen to user events and record script but with different payload (trying to avoid continuous session.FindById... and make element names human-readable).
Thank you in advance!
Request clarification before answering.
In SAP GUI for Windows, there is the Recorder in the System menu, which records your input and generate a VBScript.
It generates this kind of lines:
set field = FindById( "/app/con[0]/ses[0]/wnd[0]/usr/lblRS38M-PROGRAMM" )
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 10 | |
| 5 | |
| 5 | |
| 5 | |
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.