I was considering this idea, if it detects a bitmap of the login screen then to hit the refresh button :o
Printable View
I was considering this idea, if it detects a bitmap of the login screen then to hit the refresh button :o
Ik, i was talking about the client :p
In the browser there is :p
Yeah, just manually add the coords of the refresh button.
Ofc, the FBI might ban you if theres no IRL antiban...
Why did I not think of that? :duh:
Anyway, much love for you Sin haha good thinking.
You can refresh the SMART client?
if you refresh the internet browser, wont it have a new client, thus all the chords will be set to a different client and not work...?
EDIT: try it out -
it changed the chords after a refresh for meCode:program new;
{$I SRL/SRL.simba}
begin
setupsrl;
mmouse(50,50,1,1);
end.
Haha of course.
On Topic:
Find the process and set the owner/parent window as the target.. If it's your browser then find the child window of it that contains the java applet and whala..
Simba Code: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;
Something like:
Simba Code: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.
Idk how to set target back to RSAplet ,I didn't find proper function. GetProcesses search by window's caption.
cant you use appa as well for refreshing the page lets say if you do not want to have simba take control overyour mouse?
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.
Can't you do like when a update occurs, you must re-run Simba ofcourse, if the update occurs why not activate the Simba and make it click the Run button again and wait till SMART loaded wouldn't that be possible?
@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:
Simba Code: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:
[CODE]
{ 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 :)
Hhehe thanks seems good, might with some help you'll get it.
I personally don't see why it wont be possible if it works with the browser, why not with Simba itself? Sure with MSI it'll be harder but I guess it wont be impossible to make a MSI checker (And use the already filled in details to run).
If you're happy with the memory build up, you can quite simply do this:
Simba Code:procedure ReloadSMART;
begin
SMART_Server := {new server that wasn't being used before, perhaps a random one in an array};
SetupSRL;
end;
That just add this line at the start of your mainloop:
Simba Code:SRL_Procs[srl_OnRSUpdate] := @ReloadSMART;
This way you maintain progress reports, but you build up a lot of memory, which can make Simba lag.
Oh..
I have 6GB RAM, all I need is for it to run overnight.
Feasible?