SRL Archive - General

not normal error


snapy gapi

2007-03-03 11:44:26

Run this script:

procedure ulticlick(left:boolean);
var
x,y:integer;
begin
wait(1+random(3))
(x,y);
holdmouse(x,y,left);
wait(2+rgetmouseposandom(15))
releasemouse(x,y,left);

wait(random(2))
end;

var
x,y:integer;

begin
wait(500);
repeat
ulticlick(true);
until(isfkeydown(12))
end.

I know its messed up, but it shuld just make a normal error, instead it makes a new pop up window

anyone knows why?

Pentti

2007-03-03 12:04:27

Is this what you meant to do?
procedure ulticlick(left:boolean);
var
x,y:integer;
begin
getmousepos(x,y)
holdmouse(x,y,left);
wait(2+random(15))
releasemouse(x,y,left);
end;

begin
wait(500);
repeat
ulticlick(true);
until(isfkeydown(12))
end.

snapy gapi

2007-03-03 12:43:48

yes, i know how to do it right, but if you run that script, you dont get an normal error. You get a pop up error saying:

"Access violation at adress 0051E832 in module 'scar.exe'. Read of adress 0000000C"

Pentti

2007-03-03 13:05:12

You can't have (x,y); in your script. It doesn't mean anything.

snapy gapi

2007-03-04 10:29:13

i know, it makes an error, but it doesnt reports the error in debug box. It reports it in another window. Look at this screenshot:


Sp0rky

2007-03-05 09:24:07

SetupSRL ?

The Un-Named

2007-03-05 09:35:53

From: Sp0rk-eh
SetupSRL ?


Are you blind? He doesn't even freaking include anything.

"I know its messed up, but it shuld just make a normal error, instead it makes a new pop up window"

You'll find SCAR gives a popup lots of errors. You'll probably find this one is because scar read the script like:-

wait(1+random(3))(x,y);

And was like:-

Wtf I don't know how to deal with this - access error.

Sp0rky

2007-03-05 09:42:11

Well the only access error I ever got was when I didn't setopsrl >_>

I thought he may not have pasted the entire script here, but obviously I am wrong.

Just trying to help.

Sp0rky

2007-03-05 09:45:04

My bad :P

Use Pentti's version of what you're trying to do.

snapy gapi

2007-03-05 10:29:11

ooo, i didnt know, there are pop up errors…

this was the first one i had.
i tought that all wrong scripts are supose to report errors in debug box…

Sp0rky

2007-03-05 11:37:14

Ye I should have looked closer >_<

My bad tbh.

deathbyvirus

2007-03-17 14:13:38

well, it is windows hahah!