I want to pause the script when I press "LShift" and hold it down and when I let go of "LShift"
it resumes the script.
Also, is it possible to improve the code?
Code: Select all
LCtrl::
T:= !T
if t
{
SoundBeep, 200, 80
sleep,50
SoundBeep, 200, 80
}
if !T
SoundBeep, 100, 100
While (T)
{
PixelSearch, FoundX, FoundY, 543, 72, 567, 124, 0xBwd586, 0, Fast RGB
If ErrorLevel = 0
{
send {a}
}
PixelSearch, FoundX, FoundY, 543, 72, 567, 124, 0x4il78b, 0, Fast RGB
If ErrorLevel = 0
{
send {b}
}
PixelSearch, FoundX, FoundY, 548, 14, 573, 55, 0xC8dfg5, 0, Fast RGB
If ErrorLevel = 0
{
send {c}
}
PixelSearch, FoundX, FoundY, 549, 8, 572, 56, 0x15dh8v, 0, Fast RGB
If ErrorLevel = 0
{
send {d}
}
}
Return