Ranorex

suggestion to skip mouse movement and keypresses

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



Joined: 26 Oct 2007
Posts: 49
Location: Texas

PostPosted: Wed Nov 07, 2007 2:01 am    Post subject: suggestion to skip mouse movement and keypresses
I have a suggestion that the code generation have the option of generating non mouse movement and clicks and rely instead of focus, ids and methods like ButtonClick (Python).

Obviously there will be cases where mouse use is required like the great new feature of automating the calendar. However, even this can be turned into a text entry by skipping the mouse movement and clicks.

The same could be said for dropdowns and other controls as well.

Thanks again for a great product.

Jason
Back to top
View user's profile Send private message
Support Team
Site Admin


Joined: 07 Jul 2006
Posts: 256

PostPosted: Wed Nov 07, 2007 6:43 pm    Post subject:
If I get you right, you want to record mouse clicks that are turned into non-mouse actions (like keyboard or element default actions) when replaying.

Turning mouse clicks into keyboard events is too complex since the keyboard actions that are equivalent to a specific mouse action depend on the used controls.

The recorder uses mouse clicks as its the only thing that will work with every control and element. One could use the ElementDoDefaultAction method for elements instead, but there are several elements that do not support a default action (especially those in 3rd party controls).

We could implement an option in the RanorexRecorder that invokes DoDefaultAction methods instead of mouse clicks. I'll add that to the requested features list. Smile

Regards,

Alex
Ranorex Support Team
Back to top
View user's profile Send private message Visit poster's website
jasong



Joined: 26 Oct 2007
Posts: 49
Location: Texas

PostPosted: Wed Nov 07, 2007 6:48 pm    Post subject:
I have used ButtonClick using the handle of the button. This was by using RanorexSpy to get the handle and in the script use the parent form.
Back to top
View user's profile Send private message
Support Team
Site Admin


Joined: 07 Jul 2006
Posts: 256

PostPosted: Thu Nov 08, 2007 4:44 pm    Post subject:
The ButtonClick method simulates a mouse click onto the control without actually moving the mouse. Though the mouse isn't moving, the control will be focused by the method (focus is usually needed to click a control).

Alex
Ranorex Support 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 -> RanorexRecorder 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