SRL Archive - OSR Help

Scripting for other game Can any1 help me with DTMs?


kriss1993

2013-01-30 01:16:12

Hi, can any1 help me with DTMs finding the item on other game im stuck with atm.
{$I SRL/SRL.Simba}
var
Plus5, x, y: integer;

begin
Plus5:= DTMFromString('mbQAAAHicY2VgYLjFCsF3kegWJgaGTiBuB+JGKL5wdg/DyeO7GC5cOMFw59oJhts3LjPwA/WjY0YsGAwAIWoTYg==');
SetupSRL;
if FindDTM(Plus5, X, Y, MSX1, MSY1, MSX2, MSY2) then
begin
writeln('Found DTM "plus5"');
MMouse(x, y, 0, 0);
end;
end.

as I dont have no prev. programming exp idk whats wrong but.
this is what I get > Warning! You passed a wrong xe to a finder function: 764. The client has a width of 596, thus the xe is out of bounds. Setting the value to 595 (w-1) for now.
Successfully executed.

any1 mind helping me with it?
also wondering how does the press mouse hold mouse release mouse function works any help with this1 too?
im trying to script for other game and clickmouse did the trick but seems like the 3rd button wants longer click or hold it for a sec.


I dont have any prev. programming exp.

riwu

2013-01-30 01:26:20

MSX1, MSY1, MSX2, MSY2
This is the Main Screen box solely for the official RS.
You should change it to what you want the script to find the DTM in. (GetClientDimensions, then w - 1, h - 1 to search the whole client)

It's simply HoldMouse(), then wait() for whatever long you want, then ReleaseMouse().

kriss1993

2013-01-30 01:43:12

that helped thnx alot