Here's a suggestion:
Mark the time when starting the thread.
Then during the script run, add a time check action and compare the time difference with your desired value.
-> Take appropriate action.
@ahmad
It looks like you're trying to load these characters through the browser's address bar, like "VL8LIKZ7fPQ". Probably you have some problem in the logic of the script.