Why not get trove window? This will remove the "risk".
Why not click ctrl or shift? This will eliminate the interruption of playing the game while the script runs.
Why not 15 minutes? This will use MUCH less resources and allow your PC to run with less interruptions.