BTN_RIGHT Click activity does not work with the SimulateClick option

Hello there. I need your help.

The problem is as follows.

Scenario: right-click desktop icons in “background” with the SimulateClick option.

(Next I will select the item with left-click)

Steps to reproduce: Any icon does not work. ex) the Explorer icon, the Network icon …

Current Behavior: Without the SimulateClick option, it works.

Expected Behavior: I want to automate in background with the SimulateClick option .

Studio/Robot/Orchestrator Version:2016.2.6344

OS Version:Windows 10 Pro

Regards,

Hi @obi,

The Right Click on any desktop will work-fine When Simulate Click is UNCHECKED.

As you mentioned :slight_smile:

The RIGHT Click Does NOT work when Simulate Click is CHECKED

What I think the reason why this happens is :slight_smile:

SECNARIO - Right Click a Desktop Icon when Simulate Click is CHECKED

1.> When you right click on any desktop icon , the right click action is performed on that icon.

2.> By default , the first option when u right click an icon that you get is Preview or Open

So , Since you have checked the Simulate Click , after the Right Click action is performed , immediately
Simulate Click is performed.

Since, the clicks are performed twice , the icon (either file, folder, image ) appears to Launch.

But dont worry , even if you uncheck Simulate Click - It will work fine in background.
Make Sure you use attach Window and then perform such actions Click / Right Click activities .

Cheers mate

Hope that helps :slight_smile:

Thanks for your help @prassin6:grin:

mm…

With the SimulateClick option, it seems that right-click does’t work, but left-click works.

Do I misunderstand the SimulateClick option?
If I check the SimulateClick, there will be another click in addition to first one ?

How can I do it in background?

Regards,:grin:

Hi @obi

Can you please share what have you tried so far.
Also could you please, Share screen shot of what happens
1.> When Simulate click is unchecked
2.> when simulate click is checked.

It wud be helpful for me to understand the behavior.

There shouldn’t be one.
For me (Win10/2017.1.6522) SimulateClick → BTN_LEFT for a desktop icon launches the app as if it would be a double click. Probably wrong call is sent or there’s a misinterpretation. It works ok for stuff on the Start bar for some reason though.

BTN_RIGHT throws an Invalid Mode for all icons (desktop + start bar) I’ve checked.

Seems like a bug. Perhaps @ovi already knows something about it, if you’d please :slight_smile:

Use SendWindowMessages, seems to be working fine from what I can test.

Thank you both :grinning:

BTN_RIGHT throws an Invalid Mode for all icons (desktop + start bar) I’ve checked.

This is the situation I had.

Seems like a bug. Perhaps @ovi already knows something about it, if you’d please :slight_smile:

It seems to me that left-click works instead of right-click with the SimulateClick option.

I hope that the bug is fixed.
Thanks again :grin:

Hi there,

It’s kind of a known issue in Windows 10, as @Gabriel_Tatu explains here:

1 Like