Sin
2012-02-12 19:01:39
I was considering this idea, if it detects a bitmap of the login screen then to hit the refresh button :o
2012-02-12 19:01:39
2012-02-12 19:03:45
From: SinDoesn't work in smart. Years ago I made Harry's fight caver refresh rs when rs updated :p
I was considering this idea, if it detects a bitmap of the login screen then to hit the refresh button :o
2012-02-12 19:08:51
2012-02-12 19:10:19
From: Sin
Ik, i was talking about the client :p
2012-02-12 19:19:37
2012-02-12 19:25:23
2012-02-12 19:32:20
2012-02-12 19:33:04
From: Solidone40
Why did I not think of that? :duh:
Anyway, I love you SIN haha.
2012-02-12 19:33:23
2012-02-12 19:35:02
From: Swagger
You can refresh the SMART client?
2012-02-12 19:49:33
program new;
{$I SRL/SRL.simba}
begin
setupsrl;
mmouse(50,50,1,1);
end.
2012-02-12 20:01:51
From: ggzz
Absolutely not..
2012-02-12 20:20:37
From: Sex
I'm in your signature :cool:.
On topic: I believe when you refresh the page the handle of the client will change and you'll lose focus and somehow have to refocus it :) (this will, as stated above, change the coords).
function FindAndSetTarget(TitlePrefix: String; SetAsTarget: Boolean): Boolean;
var
T: TSysProcArr;
I: Integer;
begin
T:= GetProcesses();
for I := 0 to high(T) do
if StartsWith(TitlePrefix, T[i].Title) then
begin
Result := True;
if SetAsTarget then
begin
SetTarget(T[i]);
ActivateClient;
end;
end;
end;
2012-02-12 23:24:04
program new;
{$i SRL/SRL.simba}
function FindAndSetTarget(TitlePrefix: String; SetAsTarget: Boolean): Boolean;
var
T: TSysProcArr;
I: Integer;
begin
T:= GetProcesses();
for I := 0 to high(T) do
if StartsWith(TitlePrefix, T[i].Title) then
begin
Result := True;
if SetAsTarget then
begin
SetTarget(T[i]);
ActivateClient;
end;
end;
end;
procedure PressKey2(key : word);
begin
keydown(key);
wait(20+random(20));
keyup(key);
end;
begin
setupsrl;
activateclient;
// Now RS aplet is set as target
wait(500);
writeln(FindAndSetTarget('Rune',TRUE)); // Set Browser as target
wait(500);
mouse(190,146,1,1,1); // click above rs window to activate browser
PressKey2(116); //f5
wait (1000);
// Return back to RS Applet - no idea
end.2012-02-15 01:12:52
2012-02-15 02:14:07
2012-02-15 02:57:45
From: P1nky
I thought of this once, though it would not work for SMART, and also I wouldn't want to use RS client. Quite annoying, I rather browse and have my Bots running all at the same time.
2012-02-15 03:00:13
From: Kave
Could use in a vmware/virtualbox for that one special bot :p
2012-02-15 03:34:32
From: wantonman
cant you use appa as well for refreshing the page lets say if you do not want to have simba take control overyour mouse?
2012-02-15 06:18:25
2012-02-15 07:10:39
if (RSUpdated) then
begin
FindAndSetTarget('SimbaReRunner',TRUE); // SimbaReRunner - find better name? :p
PressKey( KEY_FOR_ACTIVATION);
end;
{ PSEUDOCODE }
if WaitUntilKeyDown(KEY_FOR_ACTIVATION) then
KillProces('SMART');
KillProces('Simba');
Open .Bat file;
I can't do this ,because of lack proper abilities and compiler ,but maybe someone will take care of it :)
2012-02-15 07:45:03
From: beginner5
@Up
Wow ,It's good way of thinking.
I have an idea!
Simba can be re-run by external aplication. It is my frame:
Project1:
in script:
if (RSUpdated) then
begin
FindAndSetTarget('SimbaReRunner',TRUE); // SimbaReRunner - find better name? :p
PressKey( KEY_FOR_ACTIVATION);
end;
SimbaReRunner can be just console app and it will work in background.
Now in SimbaReRunner:
{ PSEUDOCODE }
if WaitUntilKeyDown(KEY_FOR_ACTIVATION) then
KillProces('SMART');
KillProces('Simba');
OpenFile('C:\Users\Simba\scripts\SimbaDung.simba'); // file name and path can be send by simba.
// And here is little problem ,because after open file ,you must run script ,but //someone with knowladge in libraries will know how to do it.
ActivateWindow('SimbaDung');
Press(F9);
I can't do this ,because of lack proper abilities and compiler ,but maybe someone will take care of it :)
2012-02-15 09:41:44
procedure ReloadSMART;
begin
SMART_Server := {new server that wasn't being used before, perhaps a random one in an array};
SetupSRL;
end;SRL_Procs[srl_OnRSUpdate] := @ReloadSMART;2012-02-15 09:47:46
2012-02-15 09:54:49
From: Sin
Oh..
I have 6GB RAM, all I need is for it to run overnight.
Feasible?
2012-02-15 09:57:12
2012-02-15 10:14:24
2012-02-15 10:20:25
From: Main
Ye memory builds up, so its a safe bet calculating your planned run time, times by 500 and divides by 6.
so all night would be 1 gb of extra ram per smart. Not that bad eh?
2012-02-15 10:22:11
From: Richard
Are you assuming that SMART takes half a gig to run? I've found it to be far closer to 200MB.