Checking object properties while button is pressed down

Ask general questions here.
marasanov
Posts: 8
Joined: Thu Oct 30, 2014 2:40 pm

Checking object properties while button is pressed down

Post by marasanov » Wed Nov 12, 2014 2:24 pm

Hi,

I need to perform the following two actions:
- Left click on button and hold for some time.
- While the button is pressed I need to check if some other object is enabled.

Do you have some general ideas how to implement this?

Thanks,
marasanov

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Checking object properties while button is pressed down

Post by krstcs » Wed Nov 12, 2014 3:24 pm

Instead of "Mouse->Click", use "Mouse->Down" and "Mouse->Up" actions.

Code: Select all

Mouse -> Down -> Left -> RepoObject
... Do your validations here
Mouse -> Up -> Left -> RepoObject

Make sure you put the "Mouse -> Up" action in there or it could cause problems later.
Shortcuts usually aren't...