there are 2 possbilities, either the script doesnt run at all, or the energy saving options of your laptop stop it. could you just try and set the energy options to something appropiately and then try to run the script?
your laptop doesnt have 1920*1080, right?
if its too far away from that, the script might be buggy aswell, we have to test that
No it doesn't have that high of a resolution. It has only 1336x1024. And I disabled the power functions so that the laptop won't close in-game but I don't know what happened for 3 hours the game runned fine.