07-13-2011, 05:18 PM
Good Morning.
We use QTP with our mainframe .net sessions. We copy fields, like policy numbers and account values using the Highlight drag, edit, copy feature. This process has to be adabpted to each person's screen session because they are all different sizes, even though the data appears in the same spot on the screen. What I would like to know if there is some vb code I can use to capture the coordinates of the screen to capture the same data, versus what are are currently using.
Here is a sample of the code we are currently using:
This has to be adbpted for each persons computer and laptop using the script, so each person has to capture and change this twice.
Any help would be greatly appriciated.
We use QTP with our mainframe .net sessions. We copy fields, like policy numbers and account values using the Highlight drag, edit, copy feature. This process has to be adabpted to each person's screen session because they are all different sizes, even though the data appears in the same spot on the screen. What I would like to know if there is some vb code I can use to capture the coordinates of the screen to capture the same data, versus what are are currently using.
Here is a sample of the code we are currently using:
Code:
'stephen'
JavaWindow("Session A - A - TL5B0570").JavaObject("AccessibleScreenText").Click 322,47,"LEFT"
JavaWindow("Session A - A - TL5B0570").JavaObject("AccessibleScreenText").MouseDrag 322,47,509,47,"LEFT"
JavaWindow("Session A - A - TL5B0570").JavaMenu("Edit").JavaMenu("Copy").Select
This has to be adbpted for each persons computer and laptop using the script, so each person has to capture and change this twice.
Any help would be greatly appriciated.