Log in

View Full Version : Problem With FindNormalRandoms?



passiondrive
07-17-2007, 04:01 PM
Hey, I've started making a script. In my cutting procedure i added

FindNormalRandoms;

My script will work for a while then stop, when i check SCAR i get this error:

[Runtime Error] : Exception: Access violation at address 006FE79D in module 'scar.exe'. Read of address 00000000 in line 315 in script C:\Program Files\SCAR 3.11\includes\srl\srl\core\Text.scar

This then takes me to a page in Text.scar which says...

{************************************************* ******************************
procedure CloseWindow;
By: Stupid3ooo
Description: Closes frontmost window.
************************************************** *****************************}

procedure CloseWindow;
begin
if (FindBitmapMaskTolerance(CWindow, x, y, 400, 3, 515, 100, 0, 85)) then
Begin
Mouse(x + 8, y + 3, 3, 1, True);
Wait(400+Random(400));
End;
end;


I have tried closing SCAR and re-opening it. Re-installing it...
Any ideas? Thanks in advance
PassionDrive

Buckleyindahouse
07-17-2007, 05:45 PM
Do you have the latest SRL Downloaded?

Pentti
07-17-2007, 05:48 PM
program New;
{.include srl/srl.scar}
begin
CloseWindow;
end.

program New;
{.include srl/srl.scar}
begin
SetUpSRL;
CloseWindow;
end.
...Add SetUpSRL;

passiondrive
07-17-2007, 07:04 PM
Haha, i can't believe I didn't check for that!! Thanks a lot guys!!!