A slate macro in Autohotkey
Once it's started it will ask you to stand on a spot with slate, move the mouse to the slate icon and hit F1
After that it will automatically click on the slate icon whenever it detects it and return the mouse to the position it was in
To abort the macro use ctrl-z