Hi Shalabh,
While I'm not sure why DeviceReplay is not working for you, you can
use DotNetFactory to achieve the same. You can create an instance of
Syste.Drawing.Point and use that to move the mouse. Here's something
you could try as an alternative :
Set objCursor =
DotNetFactory.CreateInstance("System.Drawing.Point","System.Drawing",
x, y)
objCursor.x = 5
objCursor.y = 5
Thanks,
Abhijeet
On Jan 13, 10:30 am, Shalabh Dixit <[email protected]> wrote:
> This is something strange I faced in last few days. I'm using simple
> code to keep my system unlocked while script is getting executed.
>
> Set deviceReplay = CreateObject("Mercury.DeviceReplay")
> deviceReplay.MouseMove 0,0
> Set deviceReplay = Nothing
>
> But the above code is not moving the mouse cursor. Strangely the same
> works fine in QTP 10.0
>
> Does anybody tried using above or provide any input on the same.?
>
> Thanks
> -Shalabh Dixit
--
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