Skeleton Bow
Skeleton Bow

Reputation: 529

AutoHotKey Right Click

I don't understand why most of the suggestions aren't working for me, so I'm asking here.

I'm trying to get AHK to right click when I press a shortcut. I found a couple of ways to do it:

^R:: RButton
return

and

^R:: AppsKey
return

and

^R:: Click Right
return

as well as a few others.

However, none of these actually seem to right click as if I were physically right clicking with my mouse. They all seem to right click as though ^R was remapped to Shift+F10, or some other system right click. What I actually want is a real right click, emulated just as if I were right clicking with my mouse. It should work in folders, applications, everywhere. Is there a way to do this?

Upvotes: 4

Views: 20568

Answers (1)

retnikt
retnikt

Reputation: 617

As @Jim U said in the question's comments, put it in a new script file. From your reply to his comment it seems that solved the problem, so I have written this answer to clarify that.

In programming generally, always isolate the code first as the problem can be caused by something elsewhere.

Upvotes: 4

Related Questions