Ok well I keep getting a range check error at various lines where I am using MoveMouseSplineEx. I sort of know why but not completely why.
The script will compile but on use it randomly fails and gives the error. The reason is because I am putting in random variables for mouseSpeed, ctrlSpacing and ctrlVariance like so:
MoveMouseSplineEx(754,212,10,10,80+s,15+p,65+p);
Variables S and P are set in above lines as randomrange(1,10) roughly. I have tested using just pure numbers for mouseSpeed, ctrlSpacing and ctrlVariance and it eliminates the problem, also I do get a range check error if I set one of them to something huge or tiny.
I do not want mouseSpeed, ctrlSpacing and ctrlVariance to be constant yet any function of random I try to introduce seems to produce these errors.
Any help would be appreciated.
The script will compile but on use it randomly fails and gives the error. The reason is because I am putting in random variables for mouseSpeed, ctrlSpacing and ctrlVariance like so:
MoveMouseSplineEx(754,212,10,10,80+s,15+p,65+p);
Variables S and P are set in above lines as randomrange(1,10) roughly. I have tested using just pure numbers for mouseSpeed, ctrlSpacing and ctrlVariance and it eliminates the problem, also I do get a range check error if I set one of them to something huge or tiny.
I do not want mouseSpeed, ctrlSpacing and ctrlVariance to be constant yet any function of random I try to introduce seems to produce these errors.
Any help would be appreciated.


