Mouse click without releasing for x seconds

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
jpinto
Posts: 5
Joined: Wed Apr 26, 2017 8:01 am

Mouse click without releasing for x seconds

Post by jpinto » Wed Apr 26, 2017 8:19 am

Hello everyone,

does anyone knows if it is possible to record a mouse click without button release, for a certain time?
I have a .NET application with a button that should be pressed for a couple of seconds to activate a function. A simple click (or double-click) doesn't activate it.

Any help would be appreciated.
Thanks.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Mouse click without releasing for x seconds

Post by odklizec » Wed Apr 26, 2017 10:43 am

Hi,

I don't think you can record it. But you can record a simple mouse click/double click and then replace it with manually added Mouse down...Delay...Mouse Up actions. Hope this helps?
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

jpinto
Posts: 5
Joined: Wed Apr 26, 2017 8:01 am

Re: Mouse click without releasing for x seconds

Post by jpinto » Fri May 19, 2017 9:59 am

Hi odklizec,

yes, it did. :)
Thanks!