Adblock breaks this site

Simba Help

Discussion in 'Scar/Simba Help' started by Serevi, Jul 29, 2012.

Thread Status:
Not open for further replies.
  1. Serevi

    Serevi Newcomer

    Joined:
    Jul 29, 2012
    Posts:
    3
    Referrals:
    0
    Sythe Gold:
    0
    Simba Help

    Been working on a script that Google failed to help me on. :p Brought me here at least.

    I want it to activate a loop, and deactivate it as well by pressing a button. Here's what I was trying, but it refuses to work. (Script instantly stops without an error)

    If IsKeyDown(33) = true then
    begin
    repeat
    Wait(8000); //8 second delay
    Inc(waittime)
    PressKey(32);
    Wait(1000); //1 second delay so it doesn't trip over itself.
    Sendkeys(M, 50, 50);
    Wait(1000); //1 second delay so it doesn't cut off the message.
    PressKey(13);
    Wait(80000); //80 seconds before it starts from the top.
    Writeln('Invited'+ IntToStr(waittime) + 'times');
    until(IsKeyDown(34) = true);
    end;
    end;
     
  2. freddy1990

    freddy1990 Active Member

    Joined:
    Jul 1, 2005
    Posts:
    149
    Referrals:
    1
    Sythe Gold:
    0
    Simba Help

    I don't know about Simba, but in SCAR:

    Code:
    var
      WaitTime: Integer;    
      M: string;
      
    begin
      M := 'test';
      
      while not GetKeyState(33) do
        Wait(50); 
      repeat
        Wait(8000); //8 second delay
        Inc(WaitTime)
        PressVKey(32);
        Wait(1000); //1 second delay so it doesn't trip over itself.
        TypeText(M);
        Wait(1000); //1 second delay so it doesn't cut off the message.
        PressVKey(13);
        Wait(80000); //80 seconds before it starts from the top.
        Writeln('Invited ' + IntToStr(WaitTime) + ' times');
      until GetKeyState(34);
    end.
    I'm not sure what keys you're targeting with 33 and 34 as codes though...
     
  3. Serevi

    Serevi Newcomer

    Joined:
    Jul 29, 2012
    Posts:
    3
    Referrals:
    0
    Sythe Gold:
    0
    Simba Help

    33 and 34 are PgUp and PgDwn. I'll see if that works in Simba real quick, or maybe I'll try Scar. I'm not too picky as long as the result's similar. :D Thanks.
     
  4. Serevi

    Serevi Newcomer

    Joined:
    Jul 29, 2012
    Posts:
    3
    Referrals:
    0
    Sythe Gold:
    0
    Simba Help

    Although starting properly when I press PgUp. PgDwn doesn't stop the script.
     
  5. djweasel

    djweasel Legend
    Do Not Trade

    Joined:
    Nov 1, 2008
    Posts:
    13,692
    Referrals:
    12
    Sythe Gold:
    17
    Simba Help

    Closed.
     
< Need help with script (Huge payment) | something wrong when im starting! >
Thread Status:
Not open for further replies.


 
 
Adblock breaks this site