SRL Archive - S.M.A.R.T. General and Q/A.

Can someone fix it?


Sebo

2007-11-20 17:47:30

Hi, I don't know what I'm doing wrong, but when i setup SMART, it wants to click on the client right when it pops up and then the script is finished, without even doing anything.

here is the script:

// just a test.

program SMARTTest;
{$Define SMART}
{$IfDef SMART}
{.include SMART.scar}
{$EndIf}
{.include SRL/SRL.scar}

Procedure Login;
begin
SmartMoveMouse(584, 406);
SmartClickMouse(584, 406, True);
Wait(100);
end;

begin
{$IfDef SMART}
SmartSetup('ch1', True, True);
while not(SmartReady) do Wait(100);
SetTargetDC(SmartGetDC);
if not (LoggedIn) then
While not(SmartGetColor(386, 249) = 65535) do Wait(100);
SetupSRL;
Login;
{$EndIf}
end.

thanks, i am soooo confused still :duh:

Timer

2007-11-20 17:50:29

add some wait…???

Sebo

2007-11-20 17:51:06

oh, but I thought that is what
 while not(SmartReady) do Wait(100); 
is used for?

EDIT: I added a wait, but it doesnt click where I want it to, I triple checked the coordinates.

Timer

2007-11-20 18:29:36

just try LoginPlayer..?

Harry

2007-11-20 18:30:34

Go in Login.scar and remove all the ActivateClients; then just use LoginPlayer; :D

Timer

2007-11-20 18:33:37

no need to remove… in SMART.scar it overided ActivateClient; to
Procedure ActivateClient;
Begin
End;
lol

R0b0t1

2007-11-20 21:33:51

Yeah, they used the {$If} directives to remove some of it if SMART was being used I guess.

Bobarkinator

2007-11-20 22:02:59

Yes, directives are quite useful, I have already found several uses for them.