I want to make a script that when i press (F5) the script would click on the possition I chose like:
Procedure clickhere;
if pressedkey=f5 (Don't have a clue how =) )
then
mouse()
end;
Is that possible?
I want to make a script that when i press (F5) the script would click on the possition I chose like:
Procedure clickhere;
if pressedkey=f5 (Don't have a clue how =) )
then
mouse()
end;
Is that possible?
Jaghax FTW
SCAR Code:program New;
begin
if (IsFKeyDown(5)) then
begin
writeln('If you held down F5 while starting this');
writeln('Youll see this message');
clickmouse(1,1,true);
end;
end.
Last edited by uncfan1119; 10-31-2009 at 02:09 AM.
"SRL is the best SCAR community in the World, with the most talented programmers: adjust your volume."
-Wizzup?
For a regular key:
SCAR Code:IsKeyDown(GetKeyCode('a'));
~Sand
Thanks both of you!
Jaghax FTW
sorry, double
Jaghax FTW
where as if you do this
Not sure but should workSCAR Code:program New;
begin
Repeat
if (IsFKeyDown(5)) then
begin
writeln('If you held down F5 ');
writeln('Youll see this message');
clickmouse(1,1,true);
writeln('if you press F4 it ends');
writeln('But you could press f5 as many times as like');
until (IsFKeyDown(4));
end;
end.![]()
I see Now, says the blind man
Small correction to the above:
SCAR Code:program New;
begin
if (IsFKeyDown(5)) then
begin
Repeat
writeln('If you held down F5 ');
writeln('Youll see this message');
clickmouse(1,1,true);
writeln('if you press F4 it ends');
writeln('But you could press f5 as many times as like');
until (IsFKeyDown(4));
end;
end.
You had the open repeat above the begin and the closing until before the end.
~Sand
Please avoid using clickmouse(), clickmouse() is afaik ban-able, use mouse() instead![]()
He never stated it was for RuneScape.
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"
until If IsKeyDown(GetKeyCode('q'))Then
TerminateScript;
Trying to make escape clause. For some reason not working and has been AGES since i've used scar. Not for RS dont worry its for conquer online xD
SCAR Code:until IsKeyDown(GetKeyCode('q'));
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"
IsKeyDown('q'); works
yea, scar could use a makeover on this feature though because it is HORRIBLE. scar needs a key press event so that if you press a key at ANY time then scar can see it. right now its limited to the key has to be down when the code gets to a certain point.
Sell botted goods at mid to high prices!!! Else we lose our profit AND ruin the game!!!!
That's because there's no multithreading capability in SCAR. I don't think it's possible in Delphi, and it isn't possible in PascalScript, either, as far as I know (what Simba will be using).
I am currently learning VBScript and they have events which fire whenever a key is pressed and things like that. It is very useful.
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"
Didn't even think about that, Zyt3x. But I meant you can't do it during runtime.
You may contact me with any concerns you have.
Are you a victim of harassment? Please notify me or any other staff member.
| SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |
There are currently 1 users browsing this thread. (0 members and 1 guests)