Timba
2014-01-22 01:48:21
Hi, I was following YoHoJo's video on DTMs but an error comes up: Exception in Script: File "SRL\SRL.simba" not found at line 3, column 5
Do I use Lape or PascalScript.. and Do I use srl\srl.simba or osr-srl\srl.simba ?
This is the script
Program DTMTest;
{$I SRL\SRL.simba}
var
WizardRobe, X, Y: Integer;
Begin
SetupSRL;
WizardRobe := DTMFromString('mwQAAAHic42RgYHBigmBHIPYDYh8gNgdiMyC2AGJfIH4EVPcGiG8C8WMgfgfE74H4KRDfgWI+7wIgyYiCDRQU0MQIA0YiMBwAAHhZC7o=');
if FindDTM(WizardRobe, X, Y, MIX1, MIX2, MSY1, MSY2) then
begin
WriteLn('You found the item!');
MoveMouse(X, Y, 7, 7);
If IsUpText('ard') then
Mouse(X, X, 0, 0, true);
end;
FreeDTM(WizardRobe);
End.
When I include {$I SRL-OSR\SRL.simba} instead of SRL\SRL.simba get this error: [Error] C:\Simba\Scripts\DTMTest.simba(21:26): Invalid number of parameters at line 21.
Line 21: If IsUpText('ard') then
Help please!
EDITED: All is working fine minus the clicking.
Do I use Lape or PascalScript.. and Do I use srl\srl.simba or osr-srl\srl.simba ?
This is the script
Program DTMTest;
{$I SRL\SRL.simba}
var
WizardRobe, X, Y: Integer;
Begin
SetupSRL;
WizardRobe := DTMFromString('mwQAAAHic42RgYHBigmBHIPYDYh8gNgdiMyC2AGJfIH4EVPcGiG8C8WMgfgfE74H4KRDfgWI+7wIgyYiCDRQU0MQIA0YiMBwAAHhZC7o=');
if FindDTM(WizardRobe, X, Y, MIX1, MIX2, MSY1, MSY2) then
begin
WriteLn('You found the item!');
MoveMouse(X, Y, 7, 7);
If IsUpText('ard') then
Mouse(X, X, 0, 0, true);
end;
FreeDTM(WizardRobe);
End.
When I include {$I SRL-OSR\SRL.simba} instead of SRL\SRL.simba get this error: [Error] C:\Simba\Scripts\DTMTest.simba(21:26): Invalid number of parameters at line 21.
Line 21: If IsUpText('ard') then
Help please!
EDITED: All is working fine minus the clicking.