Page 1 of 1

LButton wont work while Shift is Pressed

Posted: 29 Jan 2018, 15:06
by NemesisX
So guys i made a loop it works if is use it as this way while not pressing Shift which i want to press

Code: Select all

~$LButton::
while (VIP = 1)
{	
	if (Boss = 1)
	{
		Sleep, 200,
		Send, 3
		Boss = 0
	}
	else
	{
		Sleep, 200
		Send, 2
		Boss = 1
	}
	break
}
return
but when i use * it doesn't work how to solve this to make it work while pressing shift

Code: Select all

*LButton::
while (VIP = 1)
{	
	if (Boss = 1)
	{
		Sleep, 200,
		Send, 3
		Boss = 0
	}
	else
	{
		Sleep, 200
		Send, 2
		Boss = 1
	}
	break
}
return

Re: LButton wont work while Shift is Pressed

Posted: 29 Jan 2018, 16:05
by eventhorizon
How would you activate this routine if you were doing it by hand without a hotkey? Shift+LButton? Shift only? Shift inside the routine? You didn't say where you want to use the shift key. Do you want it held down or just a single press and release? So many details, so little time.

Re: LButton wont work while Shift is Pressed

Posted: 29 Jan 2018, 21:10
by ShadyShoots
NemesisX wrote:So guys i made a loop it works if is use it as this way while not pressing Shift which i want to press but when i use * it doesn't work how to solve this to make it work while pressing shift
If I understand what your looking to do properly, this should work

Code: Select all

~*LButton::
while (VIP = 1)
{	
	if (Boss = 1)
	{
		Sleep, 200,
		Send, 3
		Boss = 0
	}
	else
	{
		Sleep, 200
		Send, 2
		Boss = 1
	}
	break
}
return
~ Should make it so left click isn't blocked by the script, and * should make it so it will still activate when holding down other keys