There is some function to emulate mouse clicks, you should check Autohotkey documentation.