Page 1 of 1

Checking object properties while button is pressed down

Posted: Wed Nov 12, 2014 2:24 pm
by marasanov
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

Re: Checking object properties while button is pressed down

Posted: Wed Nov 12, 2014 3:24 pm
by krstcs
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.