Hi,

Just try out with this

Set WshShell = CreateObject("WScript.Shell")
wshell.SendKeys(Chr(13))

This is an another way of pressing enter

Thanks,
Nidhi
On Tue, Jul 24, 2012 at 9:11 AM, qtplearner <[email protected]> wrote:

> Hi,
>
> The solution
>
>  *DeviceReplayObject.PressKey"28" should be DeviceReplayObject.PressKey
> 28.
> Do not use quotes.
> *
> is not working, pls suggest if someone has used  DeviceReplay in qtp11
>
> Regards
>
>
> On Friday, July 20, 2012 9:32:39 AM UTC+5:30, qtplearner wrote:
>
>> Hi Friend
>> pls see below query
>>
>> I am using sendkeys as but it is not working. need to click OK button in
>> a dialog box by pressing Enter
>>
>> Set WshShell = CreateObject("WScript.Shell")
>> WshShell.SendKeys "{ENTER}"
>>
>>
>> OK button is by default active in the dialogo box. For using sendkeys
>> method, do i need to first launch application or activate dialog box using
>> Wshshell object.
>>
> --
> 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
>

-- 
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