I was considering this idea, if it detects a bitmap of the login screen then to hit the refresh button![]()
I was considering this idea, if it detects a bitmap of the login screen then to hit the refresh button![]()
All my scripts are held on Googlecode git, so if you ever see a problem, fork it and send me a pull request
If a script is grey, it doesn't work, if it's colour then it does!
My Tutorials:-
Everything you need to know about setting up Simba, SRL and Reflection!, How to sort out the MSVCR71.dll error
How to set up players for autoing with Simba, SRL/Simba Standards (with examples), Defines
Auto Updater and Git, Using a testing branch for git, Adding SRL Stats to your script
Creating your own font set for Simba, Guide to Cups, How to make 1.45M (RSGP) a day (not really my tut)
Download a image and set it as your Desktop Wallpaper in C#, How to make your first PHP file uploader
<Coh3n> Shuttleu, fuck I love you right now
In the browser there is![]()
Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
{ MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }
When posting a bug, please post debug! Help us, help you!
I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.
SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.
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?
Anyway, much love for you Sin haha good thinking.
Pure --> Berserker progress: http://villavu.com/forum/showthread.php?p=907073
Best SRL Member around (Bonfield): http://villavu.com/forum/showthread.php?p=1106646
Sorry for my english grammer.
~Bwuk.
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.
Last edited by x[Warrior]x3500; 02-13-2012 at 12:52 AM.
Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
Originally Posted by #srl
"A programmer is just a tool which converts caffeine into code"
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;
I am Ggzz..
Hackintosher
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![]()
Last edited by bg5; 02-16-2012 at 08:50 AM.
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)