SRL Archive - OSR Help

How to clear smart box?


Peanuts

2013-05-21 22:06:40

Every time im drawing a smart box around a tree..
It clicks..
Thn makes another box ont he next one..
But doesnt delete the last one.

I tried clear debug.. n clearsmart.. nothing seems to work..

I must be using the wrong code to clear the screen

Sjoe

2013-05-21 22:12:50

Smart_ClearCanvas;

The Mayor

2013-05-22 05:50:34

From: Peanuts
Every time im drawing a smart box around a tree..
It clicks..
Thn makes another box ont he next one..
But doesnt delete the last one.

I tried clear debug.. n clearsmart.. nothing seems to work..

I must be using the wrong code to clear the screen


You can also clear just a portion of the screen, rather then the whole runescape screen. Lets say you had a progress report painted on smart in the chat box and you only wanted to clear the main screen. You could go:


Procedure ClearTheScreen;
Var
MainScreen: Tbox;

Begin
MainScreen := IntToBox(MSX1, MSY1, MSX2, MSY2); // the 4 corners of the main screen
SMART_ClearCanvasArea(MainScreen);
End;