Skip to main content



      Home
Home » Eclipse Projects » RCP Testing Tool » Right mouse click(#right mouse click)
Right mouse click [message #1712833] Wed, 28 October 2015 11:30 Go to next message
Eclipse UserFriend
Hi Folks,
I don't understand how to replicate the right mouse click.
Could you tell me how to use the mouse methods to emulate the right mouse click ?
Thanks in advance

[Updated on: Wed, 28 October 2015 11:30] by Moderator

Re: Right mouse click [message #1712839 is a reply to message #1712833] Wed, 28 October 2015 12:30 Go to previous messageGo to next message
Eclipse UserFriend
Hi Angelo,

Did you try mouse ECL command?

Sends a mouse event to control. Returns the same control, so that mouse commands can be chained:
... | get-text "Foo" | mouse down -button Right | mouse up -buton Right
Input:
control optional ControlHandler
Parameters:
event optional String = "": Mouse event:
up
down
move
enter
exit
hover
double-click
button optional String = "Left": Mouse button: Left, Right or Middle
with optional String = "": Modfier keys and holded mouse buttons joined by '+', for example 'M1+M2', or 'M3'.
count optional Integer = -1: The 'count' to be set in mouse event. When omitted, reasonable default is used
x optional Integer = -2147483648: The 'x' coordinate of mouse event. Can be omitted
y optional Integer = -2147483648: The 'y' coordinate of mouse event. Can be omitted
Output:
value of control parameter

Kind regards,
Ulyana.
Re: Right mouse click [message #1713815 is a reply to message #1712839] Fri, 06 November 2015 12:01 Go to previous messageGo to next message
Eclipse UserFriend
The control is get-control Any -index 12 when perform a right mouse click on that I open a context menu.
If I use the following portion code nothing happend .

get-control Any -index 12 | mouse down -button Right |click
get-control Any -index 12 | mouse up -button Right | click


I try also to change the code

get-button "Messaging perspective" |  mouse up -button Right | click


In this case I receive an error because it is not a "control".
index.php/fa/23854/0/

Have you got any got tip ?


  • Attachment: Capture.JPG
    (Size: 19.14KB, Downloaded 539 times)

[Updated on: Fri, 06 November 2015 12:09] by Moderator

Re: Right mouse click [message #1714743 is a reply to message #1713815] Mon, 16 November 2015 05:53 Go to previous message
Eclipse UserFriend
Hi Ulyana,
have you got any others good tips to solve the problem related right click ?
Thank you in advance.

p.s: This thread is connected with another conversation https://www.eclipse.org/forums/index.php/t/1071899/

Previous Topic:[SOLVED] base_dir in Linux
Next Topic:can the skipexecution tag be used with the runner when executing a suite?
Goto Forum:
  


Current Time: Wed Jun 18 21:48:18 EDT 2025

Powered by FUDForum. Page generated in 0.04296 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top