picking different points in UFT using VB Script - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: picking different points in UFT using VB Script (/Thread-picking-different-points-in-UFT-using-VB-Script) |
picking different points in UFT using VB Script - azjk786 - 12-14-2020 Hello All, I am new to UFT , i m doing automation of our software in which i have to left click on several(say 5 left clicks on different points) points on any image and every left click should pick different X and Y values, but currently UFT picks same points i.e. first point is applied to all. and it does not work, kindly help me , manaull it is working fine but in automation it is getting problem, we are using VBscript, my code is given below JavaWindow("label:=Galaxy 4D.*").JavaInternalFrame("text:=Digitize Image").JavaObject("tagname:=JScrollPane","toolkit class:=javax.swing.JScrollPane").Click 201,328,"LEFT" wait 15 JavaWindow("label:=Galaxy 4D.*").JavaInternalFrame("text:=Digitize Image").JavaObject("tagname:=JScrollPane","toolkit class:=javax.swing.JScrollPane").Click 211,340,"LEFT" wait 15 JavaWindow("label:=Galaxy 4D.*").JavaInternalFrame("text:=Digitize Image").JavaObject("tagname:=JScrollPane","toolkit class:=javax.swing.JScrollPane").Click 227,351,"LEFT" wait 15 JavaWindow("label:=Galaxy 4D.*").JavaInternalFrame("text:=Digitize Image").JavaObject("tagname:=JScrollPane","toolkit class:=javax.swing.JScrollPane").Click 231,359,"LEFT" wait 15 JavaWindow("label:=Galaxy 4D.*").JavaInternalFrame("text:=Digitize Image").JavaObject("tagname:=JScrollPane","toolkit class:=javax.swing.JScrollPane").Click 237,365,"LEFT" wait 15 ' |