Ranorex

Mouse Pointer Attributes

 
Post new topic   Reply to topic    Ranorex Forum Index -> RanorexNet
View previous topic :: View next topic  
Author Message
ranettix



Joined: 28 Aug 2006
Posts: 16

PostPosted: Wed Aug 30, 2006 11:32 am    Post subject: Mouse Pointer Attributes
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
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 05 Jul 2006
Posts: 351

PostPosted: Thu Aug 31, 2006 4:56 pm    Post subject:
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
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Ranorex Forum Index -> RanorexNet All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum