Help with script to change view quality

Hi!

I need help. To be honest i didn't even know where to start or how to... But i want to make the teamviewer to change the view quality in like every 10-15 sec or so... I need it, because the stream keeps freezing, the mouse works but the video stream not, at least not until i switch the video quality from speed to quality, and back to quality or just leave it on quality until the next freeze, when i need to switch it again...

(udp on or off didn't change anything about the freezes, and both pc is win10 same build, but i tested it with win7 pc and it freezes too...)

I thinked about some sort of script but, like i said i don't have any real idea how to do that if it's available. And i up to any other solution too...

Thx in advance,

Hent