Author Topic: need help with repeat command  (Read 384 times)

Offline vagtastic

  • Leecher
  • Posts: 5
  • Rep: 0
    • View Profile
    • Email
need help with repeat command
« on: August 01, 2010, 10:06:23 pm »
okay, lets say i make a program that has 506 constants.. p1 - p506
now i want the repeat command to type a username and then a pass like so

Code: [Select]
begin
clickmouse(400,315,true); <= click okay if pass is wrong incase it's up

clickmouse(113,360,true); <= click play game
wait(1000);
sendtype('User');
clickmouse(461, 381,true); <= clicks pass textbox
wait(1000);
sendtype(p1);
wait(500);
writeln(p1); <=tells me what pass i'm on
clickmouse(400,315,true); <= clicks okay if pass is wrong

end.

how can i make it so i don't have to type this 506 times, replacing p1 with the given constant.

any help would be greatly appreciated =]

*before you judge me and my program, this is to get back an account i lost

not sure how much it matters, but i'm required to use scar 3.12
« Last Edit: August 01, 2010, 10:44:19 pm by vagtastic »

Freddy1990.com

need help with repeat command
« on: August 01, 2010, 10:06:23 pm »

Offline Freddy

  • Owner
  • *****
  • Posts: 2614
  • Rep: 19
    • MSN Messenger - freddy1990@gmail.com
    • AOL Instant Messenger - Freddy199O
    • View Profile
    • Email
Re: need help with repeat command
« Reply #1 on: August 02, 2010, 03:28:05 am »
Why SCAR 3.12? Also you can't just make a loop that uses 506 constants, you should make it some kind of array or generate the data at runtime...

Freddy1990.com

Re: need help with repeat command
« Reply #1 on: August 02, 2010, 03:28:05 am »

Offline vagtastic

  • Leecher
  • Posts: 5
  • Rep: 0
    • View Profile
    • Email
Re: need help with repeat command
« Reply #2 on: August 02, 2010, 07:43:41 am »
i'm using 3.12 because the new version doesn't work for typing on endless online
(i have a thread about this in the EO section)

and thank you for the tip.. every little bit helps..

i must have been thinking illogically with looping this

Offline Freddy

  • Owner
  • *****
  • Posts: 2614
  • Rep: 19
    • MSN Messenger - freddy1990@gmail.com
    • AOL Instant Messenger - Freddy199O
    • View Profile
    • Email
Re: need help with repeat command
« Reply #3 on: August 02, 2010, 09:56:46 am »
SendType isn't a default SCAR function, where does it come from?

Offline vagtastic

  • Leecher
  • Posts: 5
  • Rep: 0
    • View Profile
    • Email
Re: need help with repeat command
« Reply #4 on: August 05, 2010, 09:47:26 am »
roll back much? lol

i found these in an auto script and applied them

Code: (scar) [Select]
procedure TypeByte(k: Byte);
begin
  KeyDown(k);
  wait(25 + Random(40));
  KeyUp(k);
end;

procedure SendType(Text: String);
var
  i: Integer;
begin
  for i := 1 to Length(Text) do
  begin
    TypeByte(GetKeyCode(Text[i]));
    Wait(50 + Random(60));
  end;
  wait(200 + Random(500));
  TypeByte(13);
end;
« Last Edit: August 06, 2010, 04:32:44 am by Freddy1990 »

Freddy1990.com

Re: need help with repeat command
« Reply #4 on: August 05, 2010, 09:47:26 am »

Offline Freddy

  • Owner
  • *****
  • Posts: 2614
  • Rep: 19
    • MSN Messenger - freddy1990@gmail.com
    • AOL Instant Messenger - Freddy199O
    • View Profile
    • Email
Re: need help with repeat command
« Reply #5 on: August 05, 2010, 09:57:22 am »
Didn't roll back at all... Hmm, I'll check into that typing then I guess

Freddy1990.com

Re: need help with repeat command
« Reply #5 on: August 05, 2010, 09:57:22 am »

 

deductible-aliform