If you use Word, you can access menu with keyboard shortcut.

On Mon, Oct 6, 2008 at 6:43 AM, lakshmi jyoshna <[EMAIL PROTECTED]> wrote:
> here we have to pass the values for obj ,offsetx and offsety
>
> i want to right click on a word document
> so what i have to place instead of obj,offsetx and offsety
>
> On Mon, Oct 6, 2008 at 4:09 PM, lakshmi jyoshna <[EMAIL PROTECTED]>
> wrote:
>>
>> i think here i have to pass the values for obj ,offset-x and offset_t
>>  can you try this code on a word doc and let me know the code for that
>> sory dont think otherwise
>> i dont have qtp now
>> i have to try it in my home thats what iam asking
>>
>> On Mon, Oct 6, 2008 at 4:01 PM, Srinivas Pavuluru <[EMAIL PROTECTED]>
>> wrote:
>>>
>>> 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
>>>>
>>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>> --
>> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to