Simba Help

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

Thread Status:
Not open for further replies.
Simba Help
  1. Unread #1 - Jul 29, 2012 at 9:27 AM
  2. Serevi
    Joined:
    Jul 29, 2012
    Posts:
    3
    Referrals:
    0
    Sythe Gold:
    0

    Serevi Newcomer

    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;
     
  3. Unread #2 - Jul 30, 2012 at 2:14 PM
  4. freddy1990
    Joined:
    Jul 1, 2005
    Posts:
    149
    Referrals:
    1
    Sythe Gold:
    0

    freddy1990 Active Member

    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...
     
  5. Unread #3 - Jul 30, 2012 at 3:45 PM
  6. Serevi
    Joined:
    Jul 29, 2012
    Posts:
    3
    Referrals:
    0
    Sythe Gold:
    0

    Serevi Newcomer

    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.
     
  7. Unread #4 - Jul 30, 2012 at 3:57 PM
  8. Serevi
    Joined:
    Jul 29, 2012
    Posts:
    3
    Referrals:
    0
    Sythe Gold:
    0

    Serevi Newcomer

    Simba Help

    Although starting properly when I press PgUp. PgDwn doesn't stop the script.
     
  9. Unread #5 - Feb 1, 2013 at 5:19 PM
  10. djweasel
    Joined:
    Nov 1, 2008
    Posts:
    13,692
    Referrals:
    12
    Sythe Gold:
    17

    djweasel Legend
    Do Not Trade

    Simba Help

    Closed.
     
< Need help with script (Huge payment) | something wrong when im starting! >

Users viewing this thread
1 guest
Thread Status:
Not open for further replies.


 
 
Adblock breaks this site