Hi Lakshmi.
I found following code in QTP help, may be this helps to you.. Try and let
me know..
*Right Click using Device Replay
*The function below uses the Device Replay object to perform a right click
operation on any object by retrieving the coordinates of the object.
Sub RightClickObj(Obj, Offset_x, Offset_y)
x_coord = Obj.GetROProperty("abs_x")
y_coord = Obj.GetROProperty("abs_y")
Set dr = CreateObject("Mercury.DeviceReplay")
dr.MouseClick x_coord + Offset_x, y_coord + Offset_y, 2
End Sub
--
With Regards
Srinivas P
On Mon, Oct 6, 2008 at 2:50 PM, lakshmi jyoshna <[EMAIL PROTECTED]>wrote:
> for right click micrightbn method is there
> but i dont know the syntax properly
>
> On Mon, Oct 6, 2008 at 9:32 AM, kool guy <[EMAIL PROTECTED]> wrote:
>
>> Hi,
>>
>> I think it's possible to select any item in toolbar but it's not possible
>> for right click.
>>
>> Srikar
>>
>>
>> On Mon, Oct 6, 2008 at 6:04 AM, lakshmi jyoshna <[EMAIL PROTECTED]>wrote:
>>
>>> no its possible
>>>
>>>
>>> On Sun, Oct 5, 2008 at 10:14 PM, Enock Prince <[EMAIL PROTECTED]>wrote:
>>>
>>>> Its not possible in VBscript.
>>>> Use Mercury.DeviceReplay.
>>>>
>>>> Thanks.
>>>>
>>>> Enock Prince.G
>>>>
>>>> On 10/5/08, lakshmi jyoshna <[EMAIL PROTECTED]> wrote:
>>>>
>>>>> Hai can any one tell me the script to select on a toolbar button in
>>>>> any application
>>>>> and for rightclick option
>>>>>
>>>>> --
>>>>> Jyoshna
>>>>>
>>>>>
>>>>>
>>
>>
>>
>
>
> --
> Jyoshna
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
-~----------~----~----~----~------~----~------~--~---