08-25-2009, 04:58 AM
Hi,
I am trying to automate a window which uses a custom tree control(by Bennet-Tec Information Systems, Inc) in a VB application. QTP sees the objects as WinObject("AfxOleControl42") - and there seems to be no other property that I can use other then x and y coordinates.
recording shows:
I contacted HP to get help but they said QTP does not support custom controls.
It seems like that you can call methods in a DLL using EXTERN.DECLARE. Will this work with *.OCX that Bennet provides? Any help would be greatly appreciated.
Thanks in advance,
Anil
I am trying to automate a window which uses a custom tree control(by Bennet-Tec Information Systems, Inc) in a VB application. QTP sees the objects as WinObject("AfxOleControl42") - and there seems to be no other property that I can use other then x and y coordinates.
recording shows:
Code:
VbWindow("VbWindow").WinObject("AfxOleControl42").Click 37,23
I contacted HP to get help but they said QTP does not support custom controls.
It seems like that you can call methods in a DLL using EXTERN.DECLARE. Will this work with *.OCX that Bennet provides? Any help would be greatly appreciated.
Thanks in advance,
Anil