Mouse Pointer Attributes

Class library usage, coding and language questions.
ranettix
Posts: 20
Joined: Mon Aug 28, 2006 12:07 pm

Mouse Pointer Attributes

Post by ranettix » Wed Aug 30, 2006 10:32 am

Is it possible to find out graphical attributes, e.g. the image name,
of the mouse pointer ?
Mouse actions and positions are implemented already with Ranorex.Mouse...
members.

:idea:

webops
Site Admin
Site Admin
Posts: 349
Joined: Wed Jul 05, 2006 7:44 pm

Post by webops » Thu Aug 31, 2006 3:56 pm

You can get and set the color of the pixel at the mouse pointer position.
The functions RxPixelGetColor and RxPixelSetColor support this functionality in RanorexCore.
We don't support this in RanorexNet at the moment, but you can use the functions with DllImport.

You can retrieve the name and a lot of properties of the controls at the mouse position.
I don't know any possibilities, how to get the image name at the mouse pointer.
But you can get a region of the display as an image and compare it with images in the memory, so you can check the image name indirectly.

It's not an easy way, but it should be work.

Jenö Herget
Ranorex Team