More than one ampersand Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Fazacz

More than one ampersand

22 Jun 2018, 13:51

Hi, help me please.
How to use more than one ampersand for this:

Code: Select all

RButton & LButton & MButton::Send test
Thanks for any thoughts.
User avatar
TheDewd
Posts: 1510
Joined: 19 Dec 2013, 11:16
Location: USA

Re: More than one ampersand  Topic is solved

22 Jun 2018, 14:23

Try this:

Hold down LButton & RButton, then press MButton.

Code: Select all

MButton::
	If (GetKeyState("LButton", "P"))
	&& (GetKeyState("RButton", "P")) {
		Send, Test
	}
return
EDIT: Fixed Copy/Paste error.
Last edited by TheDewd on 22 Jun 2018, 14:46, edited 1 time in total.
Fazacz

Re: More than one ampersand

22 Jun 2018, 14:31

Thank you very much!
The resulting code is as follows:

Code: Select all

MButton::
	If (GetKeyState("RButton", "P"))
	&& (GetKeyState("LButton", "P")) {
		Send, Test
	}

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: DiegoSouto, Rohwedder, Sniperman and 383 guests