Why the f*** do you erase these areas with paint?
Nobody has any advantage of seeing that.
The problem you -might- have is the syntax of Random.
Code:
Random($iFrom, $iTo, $iFlag)
;$iFrom e.g. 5
;$iTo e.g. 10
;$iFlag e.g. 1 (1 = Rounded Integer)
2nd one:
If your Script sees 0xFFFFDB then it's going to click left and it repeats over and over again.
You don't do anything to exit the Loop e.g. with ExitLoop.
And: ALWAYS declare in the top of your scripts, never do it that often!