Robotic Process Automation (RPA)

Robotic Process Automation (RPA)

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
  • 1.  Right-Clicking in IBM RPA?

    Posted Mon January 31, 2022 01:23 PM
    Can you right-click in IBM RPA?

    I'm attempting to right-click the IBM RPA notification on the bottom right to activate "Disconnect IBM RPA Always On", however I cannot seem to find a way to right click the IBM RPA icon, or even select the proper option once it is right-clicked.

    ------------------------------
    Will Asower
    ------------------------------


  • 2.  RE: Right-Clicking in IBM RPA?

    Posted Mon January 31, 2022 01:31 PM
    Hi Will!

    How are you trying to do that? Are you able to identify and select the clickable element you want?

    ------------------------------
    Jukka Juselius
    Senior Solution Architect - IBM EMEA
    IBM RPA Program Lead for EMEA
    IBM Technology - Business Automation
    ------------------------------



  • 3.  RE: Right-Clicking in IBM RPA?

    Posted Tue February 01, 2022 07:22 AM
    Sometimes the IBM RPA tray icon will not be visible until you restart the IBM RPA Agent service. Can you try that?

    ------------------------------
    Vinicius Marques
    ------------------------------



  • 4.  RE: Right-Clicking in IBM RPA?

    Posted Tue February 01, 2022 10:24 AM
    Edited by Will Asower Tue February 01, 2022 10:33 AM
    I am able to see the element. However I cannot find an IBM RPA command that allows me to "right-click."

    Here is the sample bot if it helps

    defVar --name window --type Window
    findWindow --classname Shell_TrayWnd window=value
    click --selector "IdAndName" --controlsimilarity 100 --id 1502 --name "Notification Chevron"
    click --selector "Name" --controlsimilarity 100 --name "Right click to see options" --comment "Should be a right-click"

    ------------------------------
    Will Asower
    ------------------------------



  • 5.  RE: Right-Clicking in IBM RPA?

    Posted Wed February 02, 2022 04:55 PM
    On the documentation you used to have a right click option on click.

    You can look at the mouse command or mouse click if you can use one those two.

    Mouse click :
    mouse --mode "Move" --resolution "Absolute" --point "1048,344"
    delay --timeout 00:00:02
    mouseClick --clickevent "RightClick"
    delay
    
    ​


    ------------------------------
    Rudolf Oosthuizen
    ------------------------------



  • 6.  RE: Right-Clicking in IBM RPA?

    Posted Thu February 03, 2022 02:51 PM
    Yea it looks like you are right Rudolf. The right-click functionality has been removed from the Click command without a suitable replacement.

    Using the mouse click command won't work for me since the icon will not always be in the exact same location every time.

    This is a large gap in functionality that I am disappointed to see was removed.

    ------------------------------
    Will Asower
    ------------------------------



  • 7.  RE: Right-Clicking in IBM RPA?

    Posted Thu February 10, 2022 06:46 AM
    Edited by Joba Diniz Thu February 10, 2022 06:46 AM
    Please, request an idea in the ideas portal for such functionality.
    Meanwhile, you can try the following script:

    defVar --name bounds --type Rectangle
    defVar --name point --type Point
    getControl --selector "Id" --id myId bounds=bounds
    setVar --name "${point}" --value "${bounds.X},${bounds.Y}"
    mouse --mode "Move" --resolution "Absolute" --point "${point}"
    mouseClick
    --clickevent "RightClick"



    It uses getControl to find the control specified by the selector (as you would in the click command). Then it uses the control position to move the mouse and right-click. If the control changes position, that's okay, because we're searching using the selector and not hard-coded position.

    ------------------------------
    Joba Diniz
    Product Manager
    IBM
    ------------------------------



  • 8.  RE: Right-Clicking in IBM RPA?

    Posted Thu February 10, 2022 07:39 AM
    Edited by Vinicius Marques Thu February 10, 2022 10:27 AM
    Joba,

    With this, will the robot click at the top left of the control or at its center?

    ------------------------------
    Vinicius Marques
    ------------------------------



  • 9.  RE: Right-Clicking in IBM RPA?

    Posted Mon February 14, 2022 08:28 AM
    I saw that this idea was created in the Ideas portal. For anyone who's interested in this: https://dba.ideas.ibm.com/ideas/WDGRPA-I-157

    ------------------------------
    Vinicius Marques
    ------------------------------