SRL Archive - General

Not Logout bot


HoMoReXuaL

2012-07-10 15:19:20

how would i do it if i want my script to just say like "hello" once every 3 minutes while it is still doing other things so it doesnt logout for inactivity? How would i check the time?

Coh3n

2012-07-10 15:57:05

This will work. You'll have to implement it into your script though.


// mainloop
var
t: integer;
begin
markTime(t);

repeat
doWhateverTheScriptDoes();

if (timeFromMark(t) >= (3 * 60000)) then // if the timer is greater than 3 minutes
begin
typeSend('hello');
markTime(t); // reset the timer
end;

until(scriptFinishedCondition);
end.

HoMoReXuaL

2012-07-10 16:02:34

well i already have a main loop running lots of stuff can i have multiple repeat untils?

Coh3n

2012-07-10 16:05:57

Yes. I used that loops as an example. You should insert my code into your repeat..until loop. You should place it after your script finishes a load, for example. Make sure you set the timer at the start of your mainloop, though.

HoMoReXuaL

2012-07-10 16:29:59

Thanks, I get it now. I appreciate the help

Runaway

2012-07-10 17:06:10

What could you possibly be doing that doesn't require any clicking? :blink:

HoMoReXuaL

2012-07-10 18:16:38

Its a social bot lol

Le Jingle

2012-07-10 20:01:20

From: Runaway
What could you possibly be doing that doesn't require any clicking? :blink:


I've seen one guy in w67 Daemonheim spam 'I like turtles.' for hours whilst sitting. I just don't get it :confused: