On Mouse Left Click

Get help with using AutoHotkey and its commands and hotkeys
NemesisX
Posts: 2
Joined: 17 Jan 2018, 15:40

On Mouse Left Click

27 Jan 2018, 18:59

Hello i am trying to make a script which i initiate with "q" and when i press the left mouse button it goes to the specified key in my case "3" but having issues with it help

Code: Select all

Boss = 0
Boss2 = 0,

~$q::

Boss = 1
Send, 2

Loop
{
	if(Boss = 1)
	{
		if (KeyWait, LButton, D)
		{
			Sleep, 500
			Send, 3
			Boss = 0
			Boss2 = 1
		}
	}

}

Loop
{
	if(Boss2 = 1)
	{
		if (KeyWait, LButton, D)
		{
			Sleep, 500
			Send, 2
			Boss = 1
			Boss2 = 0
		}
	}

}
GreatGazoo
Posts: 69
Joined: 28 Dec 2017, 02:53

Re: On Mouse Left Click

27 Jan 2018, 19:15

https://autohotkey.com/boards/viewtopic ... 75#p196975

maybe something like this

Code: Select all

#InstallMouseHook

~$q:: % Toggle:=!Toggle ? "boss" : "boss2"


Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], HMKchris, Rohwedder and 146 guests