Ace257
2010-06-30 20:01:39
okay so i have my script, i need to add onto it though like add more dtm's i was wondering if someone could give me an example on how to incorporate this dtm into the script like say for instance if A doesn't happen then do Q.. I know java has the else method, but im not sure if scar allows it.
This is what i want it to find if it can't find A.
This is the script.
Thank you anyone that can give me some advice! :)
This is what i want it to find if it can't find A.
Q : Result:= DTMFromString('78DA6314616060906640015F73B919F881342' +
'394CF0852A38CAAE65B3F17440E590D139A9A6E6E5435202E3B9A' +
'9A6C347340F670A3A929E441510300EC0B083C'); This is the script.
Program Blacksmith;
{.Include SRL/SRL.scar}
Var
A, X, Y:Integer;
Function FindDTMCustom(var A, X, Y:Integer): Boolean;
Begin
A := DTMFromString('78DA639466606050604001DFFB7918FE03694' +
'620FE0F048C52400633AA9A9FD39DC0342394CF68002414D1D494' +
'59A3AA0199638CAAE6479711AA1A564CF760A81101126204EC520' +
'212E204D42803090D026A40F6A8A1A9399684A20600913516A8');
Result := FindDTM(A, X, Y, MSX1, MSY1, MSX2, MSY2);
FreeDTM(A);
End;
Begin
If FindDTMCustom(A, X, Y) Then
Begin
MoveMouseSmooth(X, Y);
Wait(1000+random(100));
ClickMouse(X, Y, True);
ClickMouse(X, Y, True);
End;
End.Thank you anyone that can give me some advice! :)