With the extended macro, how to click mouse buttons?

I need to trigger the context menu. I tried:

typeKey menu

But it doesn’t seem to work. Is this the correct way to trigger the context menu? I also want to know, how to trigger mouse clicks (left, right, left double, right double, left triple, right triple) with the extended macro. These seems not mentioned in the document.

Thanks.

Which documentation have you read?

Context menu: which key / scancode does your system use open the menu?

Mouse clicks: tapKey mouseBtnLeft.

Thanks for the response.

The one I mentioned is firmware/doc-dev/user-guide.md at v15.3.1 · UltimateHackingKeyboard/firmware · GitHub

I have no idea which key to use to trigger the menu. In fact the app is Microsoft Teams. I want to trigger context menu on the chat list item.

Btw, how to do mouse double clicks?

The one I mentioned is firmware/doc-dev/user-guide.md at v15.3.1 · UltimateHackingKeyboard/firmware · GitHub

Yes, that should give you the basic introduction. For an exhaustive list of the available commands, see firmware/doc-dev/reference-manual.md at v15.3.1 · UltimateHackingKeyboard/firmware · GitHub

I have no idea which key to use to trigger the menu.

Well, I can’t help you if you don’t know which keys (scancodes to be precise) you want to be sent by the keyboard.

Btw, how to do mouse double clicks?

tapKey mouseBtnLeft
tapKey mouseBtnLeft

If your system isn’t picking it up, then either increase keystrokeDelay under typing behavior to 10ms (which is a good thing to do anyways), or add an explicit delay between them (if those 10ms from keystroke delay are not sufficient):

tapKey mouseBtnLeft
delayUntil 50
tapKey mouseBtnLeft

(The reason is that many mouses come with flimsy switches that start producing chatter after some time of usage, so some environments try to mitigate that by ignoring short releases.)

4 Likes

Most likely, tapKey menu.

1 Like

Thanks again for the detailed answer. I’ll give it a try.

For some reason, tapKey menu doesn’t work, but tapKey LS-f10 does (in Windows 11).