Results 1 to 20 of 20

Thread: Plz help with this!

  1. #1
    Join Date
    Oct 2013
    Posts
    42
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Exclamation Plz help with this!

    Code:
    program Auto_Talker;
    {$DEFINE SMART}
    {$i srl-6/srl.simba}
    
    Const
    Message1=('Text');
    
    procedure SendMessage;
    Begin
       Wait(10000+Random(250));    //1000=1000ms=1second; Adjust for you own need
       TypeSend(Message1,True)
    End;
    
    Begin
      SetupSRL;
      ActivateClient;
    Repeat
    SendMessage;
    Until(False)
    End.
    I tried this but doesnt work. It doesnt write my text? Why? + dont say TypeSendEx plz. Tried and it doesnt work :S

    What happens when you press run?
    Well when I run the script, its all good, load the client and stuff but it doesnt say anything ... just stays there until log out for inactive :S

    also tried that but doesnt say anything:
    Code:
    program AutoTyper;
    {$define SMART}
    {$i srl-6/srl.simba}
    
    procedure autoType;
    begin
      repeat
        wait(10000 + random(500));
        typeByte(VK_ENTER);
        wait(1000 + random(300));
        typeSend('TEXT GOES HERE',true);
      until(false)
    end;
    
    begin
      setupSRL;
      autoType;
    end.
    Last edited by SimbaGod; 11-20-2013 at 11:45 PM.

  2. #2
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default

    More info would be nice. For example, what happens when you press run?

    Also considering that you said that you need it, what do you need it for?

  3. #3
    Join Date
    Oct 2013
    Posts
    42
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default

    Well when I run the script, its all good, load the client and stuff but it doesnt say anything ... just stays there until log out for inactive :S

  4. #4
    Join Date
    Oct 2013
    Posts
    42
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default

    also tried that but doesnt say anything:
    Code:
    program AutoTyper;
    {$define SMART}
    {$i srl-6/srl.simba}
    
    procedure autoType;
    begin
      repeat
        wait(10000 + random(500));
        typeByte(VK_ENTER);
        wait(1000 + random(300));
        typeSend('TEXT GOES HERE',true);
      until(false)
    end;
    
    begin
      setupSRL;
      autoType;
    end.

  5. #5
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default

    What debug does Simba give you?

  6. #6
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Does this ever type the text in your chat box or nothing at all gets typed/sent?

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  7. #7
    Join Date
    Oct 2013
    Posts
    42
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default

    Quote Originally Posted by BMWxi View Post
    What debug does Simba give you?
    Compiled successfully in 1451 ms.
    -- setupSRL()
    ---- Setting up SRL...
    ---- initSmart():
    ------ Attempting to pair to a previously spawned client
    ------ smartPairToExistingClient():
    -------- Found no free clients to pair to
    ------ smartPairToExistingClient(): result = false
    ------ Attempting to spawn a new client..
    ------ smartCreateClient():
    ---------- smartGetParameters(): Succesfully grabbed paramters
    -------- getJavaPath():
    ---------- Attempting to search for your Java path
    ---------- Found your java path @ C:\Program Files (x86)\Java\jre7\bin\java.exe
    -------- getJavaPath()
    -------- Using parameters [http://world18.runescape.com/, f2334178742722166756]
    -------- Using plugins "OpenGL32.dll"
    -------- Succesfully spawned a client, attempting to target
    ---------- smartSetAsTarget(): Succesfully set SMART[6044] as Simba's target
    ------ smartCreateClient(): result = true
    ------ Succesfully initialized via spawning a new client
    ---- initSmart()
    ---- Waiting up to 5 minutes for RS to load...
    ------ __setInputBoxes(): Set username and password boxes
    ---- Client is ready.
    ---- Setup SRL in 21918ms.
    -- setupSRL(): True

  8. #8
    Join Date
    Oct 2013
    Posts
    42
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default

    wow nvm it works now 0.0 idk why but for some reason, its now working

    Edit: NVM! Stopped working again -.-

  9. #9
    Join Date
    Jan 2012
    Posts
    468
    Mentioned
    3 Post(s)
    Quoted
    200 Post(s)

    Default

    You running this on OSR or EOC?

  10. #10
    Join Date
    Feb 2012
    Location
    Discord
    Posts
    3,114
    Mentioned
    37 Post(s)
    Quoted
    538 Post(s)

    Default

    Quote Originally Posted by Rules of Joe View Post
    You running this on OSR or EOC?
    In his code he has: {$i srl-6/srl.simba}
    So it must be EOC.
    @OP, are you sure the account isn't muted?

  11. #11
    Join Date
    Jan 2012
    Posts
    468
    Mentioned
    3 Post(s)
    Quoted
    200 Post(s)

    Default

    Sorry! New kids might put SRL-6 and be running it for old school or Private Server you will never know!

  12. #12
    Join Date
    Oct 2013
    Posts
    42
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default

    Quote Originally Posted by The Killer View Post
    In his code he has: {$i srl-6/srl.simba}
    So it must be EOC.
    @OP, are you sure the account isn't muted?
    nope not muted and doesnt work

  13. #13
    Join Date
    Oct 2013
    Posts
    42
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default

    nobody can help?

  14. #14
    Join Date
    Dec 2011
    Posts
    273
    Mentioned
    0 Post(s)
    Quoted
    39 Post(s)

    Default

    Ever tried setting a string and calling the string with

    Simba Code:
    SendKeys('TEXT HERE');
    KeyDown(VK_Enter);
    KeyUp(VK_Enter);
    Granted this requires more work, but it will get your job done right
    "What can't hurt you, try it. What can kill you, do it!"

    Scripts Completed: 3
    Amount Released : 2

  15. #15
    Join Date
    Oct 2013
    Posts
    42
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default

    Quote Originally Posted by VillaVuFTW View Post
    Ever tried setting a string and calling the string with

    Simba Code:
    SendKeys('TEXT HERE');
    KeyDown(VK_Enter);
    KeyUp(VK_Enter);
    Granted this requires more work, but it will get your job done right
    idk what u mean. like this?

    Code:
    program Auto_Talker;
    {$DEFINE SMART}
    {$i SRL-6/srl.simba}
    
    procedure SendMessage;
    Begin
    SendKeys('TEXT HERE');
    KeyDown(VK_Enter);
    KeyUp(VK_Enter);
    End;
    
    Begin
      SetupSRL;
    Repeat
    SendMessage;
    Until(False)
    End.
    it doesnt work

  16. #16
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default

    Try this:

    Simba Code:
    program Auto_Talker;
    {$DEFINE SMART}
    {$i SRL-6/srl.simba}

    procedure sendMessage();
    begin
      sendKeys('Sending...', 100, 30);
      keyDown(VK_ENTER);
      keyUp(VK_ENTER);
    end;


    begin

     activateClient();
     setupSRL();

     wait(3000);
     sendMessage();

    end.

    Also, make sure your SMART is enabled.

    EDIT:
    Pretty sure you're only real issue is not calling activateClient(); in the mainloop before the procedure.
    Last edited by Abu; 12-03-2013 at 03:14 PM.

  17. #17
    Join Date
    Oct 2013
    Posts
    42
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default

    Quote Originally Posted by abu_jwka View Post
    Try this:

    Simba Code:
    program Auto_Talker;
    {$DEFINE SMART}
    {$i SRL-6/srl.simba}

    procedure sendMessage();
    begin
      sendKeys('Sending...', 100, 30);
      keyDown(VK_ENTER);
      keyUp(VK_ENTER);
    end;


    begin

     activateClient();
     setupSRL();

     wait(3000);
     sendMessage();

    end.

    Also, make sure your SMART is enabled.

    EDIT:
    Pretty sure you're only real issue is not calling activateClient(); in the mainloop before the procedure.
    its still doesnt do anything (and yes my smart is enabled)

  18. #18
    Join Date
    Dec 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Honestly I am new to this, but there is nothing nicer than to see others helping out others!
    Loving the forums already

  19. #19
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default

    Quote Originally Posted by SimbaGod View Post
    its still doesnt do anything (and yes my smart is enabled)
    Ok, just try your original procedure instead, but this time add activateClient(); in your mainloop before setupSRL as I'm sure that's where your problem lies.

    If that still doesn't work maybe you'll have to create a function which clicks the chat box where you type to kind of 'get it ready' for typing, if you know what I mean..

  20. #20
    Join Date
    Oct 2013
    Posts
    42
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default

    Quote Originally Posted by abu_jwka View Post
    Ok, just try your original procedure instead, but this time add activateClient(); in your mainloop before setupSRL as I'm sure that's where your problem lies.

    If that still doesn't work maybe you'll have to create a function which clicks the chat box where you type to kind of 'get it ready' for typing, if you know what I mean..
    Already tried the activateclient thing + even if I would add this function, it wont solve the problem because if it would already be able to write and click enter to send, it would get it "ready for typing" after the first message sent. (if you know what i mean). SO what do i do? :S

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •