The Right Click on any desktop will work-fine When Simulate Click is UNCHECKED.
As you mentioned
The RIGHT Click Does NOT work when Simulate Click is CHECKED
What I think the reason why this happens is
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 .
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
Use SendWindowMessages, seems to be working fine from what I can test.