hi, what is the procedure to say a const like this
SCAR Code:const
spam1 = ;
function spama;
begin
if keyisdown (F1)
then
sendkeys (spam1)
if
keyisdown (F2)
then
*stop auto-ing*
Sorry, i havent used scar in months
hi, what is the procedure to say a const like this
SCAR Code:const
spam1 = ;
function spama;
begin
if keyisdown (F1)
then
sendkeys (spam1)
if
keyisdown (F2)
then
*stop auto-ing*
Sorry, i havent used scar in months
Here is what you need:
SCAR Code:if IsFKeyDown(1) then
begin
//WHatever
end;
if IsFKeyDown(2) then
begin
TerminateScript;
end;
Formerly known as Cut em2 it
thnx alot, also is this right
SCAR Code:Const
spam1 = ;
spam1amount:= 5
begin
repeat
TypeSend(spam1);
until spam1 < spam1amount;
so it talks until the number on the var
try this
SCAR Code:program New;
{.include SRL/SRL.scar}
var
counter: integer;
const
Spam ='blablabla';
TimesToSpam = 10;
begin
repeat
begin // i just like to put the begins and ends in :)
TypeSend(Spam);
Counter:=Counter + 1; //add to counter
end;
until (Counter = TimesToSpam); //Repeat until Counter is = TimesToSpam
end. //because counter is added each time:
//It will spam TimesToSmap times.
You want it to repeat until the counter, which is increased with each spam, is equal to TimesToSpam. See if you can understand what iv done.
The way you had it, spam1 would have to be an int and a string. Typesend types a string of characters (like a word). If spam1 is a string, then it cant be added to or compared or integers. You also forgot to add to the counter each time.
Ask more questions if needed.
P.S. :Also, a For loop would probable be better in this case.
SCAR Code:program New;
{.include SRL/SRL.scar}
var
counter: integer;
const
Spam ='blablabla';
TimesToSpam = 10;
begin
for counter := 0 {counter starts at one} to TimesToSpam do //counter goes up by one every time and the loop goes until counter is equal to TimesToSpam
begin
TypeSend(Spam);
end;
end.
http://www.macrosoftinc.com/ ---WTF COPIERS!!!
There are currently 1 users browsing this thread. (0 members and 1 guests)