SRL Archive - FAQ

help me with mousebox got eror


ZIFs112

2011-12-01 11:37:05

procedure MouseBox(x1, y1, x2, y2: Integer; ClickType: Integer);
begin
case ClickType of
1 : Mouse(RandomRange(x1, x2), RandomRange(y1, y2), 0, 0, True);
2 : Mouse(RandomRange(x1, x2), RandomRange(y1, y2), 0, 0, False);
3 : Mouse(RandomRange(x1, x2), RandomRange(y1, y2), 0, 0);
else
srl_Warn('MouseBox', 'ClickType is NOT a valid number!', warn_AllVersions);
end;
end;


what wrong here?.. then i start play here is orange. and dont load simba bot

Wyn

2011-12-01 11:46:04

wat

i luffs yeww

2011-12-01 12:02:57

If you pasted that into your script, you're doing it wrong. All you do is put "MouseBox(0, 0, 50, 50, 1);" (no quotes, and substitute the four numbers for the area you want to click, and change the last value to two if you want to right click and three if you want to just move the mouse and not click).

ZIFs112

2011-12-01 12:15:37

no,then i prees start fast fighter script or msi, it dont work and show me this error.

YoHoJo

2011-12-01 12:20:44

Can you explain exactly how you're setting up?
You just need to download a script, enter your login details, and press play.

If you are getting any errors they will pop up in the debug box under the script in Simba, you can copy/paste us those errors and we can help fix.

What you posted to us was the actual mousebox procedure, which doesn't really help us, we need to see the error which appears in thr debug box.

ZIFs112

2011-12-01 12:33:46

hm, today i already boting, and 1 time i got error and in script showing me orange line, and i putted here what write. then i close and trying start bot again, it show me it again.

sory bad english..


this is debug box

[Error] (204:9): Unknown identifier 'Mouse' at line 203
Compiling failed.
Opening MSI…
Warning: In file C:\Simba\Includes\SRL/SRL/core/text.scar: at row: 579, col: 7, pos 22598: ChooseOption is NOT accelerated
[Error] C:\Simba\Includes\SRL/SRL/core/overwrite.scar(206:62): Invalid number of parameters at line 205
Compiling failed.
[Error] (204:9): Unknown identifier 'Mouse' at line 203
Compiling failed.
[Error] (204:9): Unknown identifier 'Mouse' at line 203
Compiling failed.

legoace

2011-12-04 00:08:00

It seems like your SRL is somehow f—ed up. Try going SRL -> settings -> override update and then SRL -> update in Simba to redownload SRL. Then close Simba, restart it, and try again.