If I press ^q for the first time, it should always search for unsubscribe.
If within the first 3 seconds I press ^q again and again, it should use other search terms (E.g. Manage Preferences, Click Here)
If upon URL change OR more than 5 seconds elapsed, it should default to searching for unsubscribe when I press ^q.
Not sure how to go about doing this. Suggestions welcome!
Code: Select all
^q:: ; Find Unsubscribe button in Gmail
Sendinput {end}^f
Sleep 200
SendInput Unsubscribe
Sendinput {esc}
Sleep 100
SendInput ^{enter}
return