@lugia19 thanks for adding the code to record mouse clicks. I noticed the generated script code is not formated correctly when opened in notepad. This is probably due to missing file encoding.
Please consider adding a loop and pause function, sth. more sophisticated than this