08-27-2009, 12:02 PM
Anil -
Okay. It doesnt seem easier than i thought.
1 . What technology is used to build that Tree ?
There are 2 ways to approach this issue,
1. IF you know the technology then you can discuss with HP to know if there are any supported add-ins which can help you recognize the object.
2. Reinvent the wheel. It means you may have to write your own customized functions to work with this object. Let me give you a clue,
The second approach is going to be a tedious and would require a lot of research from your end, sometimes working closely with the developement team.
Try the first approach to your best and if you dont succed then plan your second approach.
Okay. It doesnt seem easier than i thought.
1 . What technology is used to build that Tree ?
There are 2 ways to approach this issue,
1. IF you know the technology then you can discuss with HP to know if there are any supported add-ins which can help you recognize the object.
2. Reinvent the wheel. It means you may have to write your own customized functions to work with this object. Let me give you a clue,
Code:
.WinObject().GetTextLocation ' Does this method exist ? If not check what other methods would give you the text from the tree. This will give you the co-ordinates of the text
Then you can try the below,
Set DeviceReplay = CreateObject("Mercury.DeviceReplay")
DeviceReplay.MouseClick x, y , RIGHT_MOUSE_BUTTON
Set DeviceReplay = Nothing
The second approach is going to be a tedious and would require a lot of research from your end, sometimes working closely with the developement team.
Try the first approach to your best and if you dont succed then plan your second approach.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.