If using Left click for this, is there a more efficient way using WinWait and IfWinActive and Keywait, to additionally employ the following two criteria:
1) Count number of clicks and match next program activation. E.g. pressed Left 5 times, say within 1000ms, program 5 is activated
2) Check what the latest click was and ensure that the correct program is open, no matter the lag of the program itself activating
Code: Select all
if vaRtt=1
{
Winactivate 1
return
}
if vaRtt=2
{
Winactivate 2
return
}
if vaRtt=3
{
Winactivate 3
return
}
if vaRtt=4
{
Winactivate 4
return
}