Screen scraping using mainframe coordinates versus using highlight edit/copy - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: Screen scraping using mainframe coordinates versus using highlight edit/copy (/Thread-Screen-scraping-using-mainframe-coordinates-versus-using-highlight-edit-copy) |
Screen scraping using mainframe coordinates versus using highlight edit/copy - scouthe2 - 07-13-2011 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: Code: 'stephen' 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. RE: Screen scraping using mainframe coordinates versus using highlight edit/copy - guin.anirban - 07-16-2011 If size related to screen resolution then first you can get the screen resolutiion and then perform the rest of the actions. RE: Screen scraping using mainframe coordinates versus using highlight edit/copy - scouthe2 - 07-18-2011 The purpose for this is to allow multiple people to use our scripts without having to record their own copy and paste based on thier screen settings. If we can find a way to capiture the fixed position on the screen, then we will be able to reuse our scripts without having each individual record their own copy and paste functionality. Please let me know if this is feasable. RE: Screen scraping using mainframe coordinates versus using highlight edit/copy - souvikghosh_diatm - 07-18-2011 does the property of that control (on which you are working, that javaObject) uniquely identified by QTP in each session???? If it is, then i guess u will get the co-ordinate of that particular object in run time which is absolutely resolution interruption free....Whatever the resolution will be, it will return the x and y co-ordinate value on basis of that particular resolution where the run is going on.....after getting the co-ordinate in run time, then do click on that particular place...... i am giving u a sample code...hope it will work....And let me know whether ur problem got solved or not after this.......... Code: Set obj = CreateObject ("Mercury.DeviceReplay") ---------------- Thanx |