Results 1 to 25 of 25

Thread: Problems with clicking

  1. #1
    Join Date
    Jul 2012
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Problems with clicking

    I am not trying to make a script for rs but the game i am trying to make a script for freezes when you click off of that window. I already have the script set up to the best of my nub abilities and it works find except that the screen dosnt unfreeze when i run the script. when i click on the screen to go back to it simba still shows the script as running but it dosnt do any clicking/moving mouse/etc.

  2. #2
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Did u target the window by dragging the green crosshair (at the top of simba beside the run button) to the window?

  3. #3
    Join Date
    Jul 2012
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yup

  4. #4
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I'm confused... What game is this, can you show us the script? Why do you want it to "freeze"?
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  5. #5
    Join Date
    Jul 2012
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Shaiya,do i just copy/paste script in here,and i want to unfreeze not freeze

  6. #6
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Use activateclient; right after setupSRL to activate your game window, and hopefully unfreeze it. Let me know how it goes.
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  7. #7
    Join Date
    Jul 2012
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    program EcFarm;


    var
    Loads: Integer;


    begin
    repeat
    repeat
    MoveMouse (640, 527);
    ClickMouse (640, 527, 1);
    Wait(4000);
    Loads:= Loads+1;
    until(Loads >= 150);
    MoveMouse (780, 227);
    ClickMouse (780, 227, 1);
    Wait(1500);
    MoveMouse (783, 307)
    ClickMouse (783, 307, 1);
    Wait(1850);
    MoveMouse (780, 389)
    ClickMouse (780, 389, 1);
    Wait(1495);
    until(false);

    end.

    new to the whole simba thing...whats setupSRL?

  8. #8
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Nvm, you aren't using SRL functions. But it at the beginning of your main loop, at it should make the screen you dragged your crosshairs to come to the front.
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  9. #9
    Join Date
    Jul 2012
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok i got it to where it will activate the client but it will still only click that spot when simba is the active window

  10. #10
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    When you chose your co-ords, did you drag your crosshairs to the game before you chose your coords? That could affect it.
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  11. #11
    Join Date
    Jul 2012
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i selected the client then hovered my mouse over where i want it to click then copied the coords

  12. #12
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Did you use the color picker tool in simba? Try dragging the crosshairs, picking a co-ordinate where your script should be clicking, and compare it with what's in your script.
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  13. #13
    Join Date
    Jul 2012
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    k ill try it in a minute im trying to use hotkeys instead of clicks real quick

  14. #14
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Alright, let me know how it goes.
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  15. #15
    Join Date
    Apr 2012
    Location
    Australia
    Posts
    1,252
    Mentioned
    1 Post(s)
    Quoted
    22 Post(s)

    Default

    Give that a whirl..
    Simba Code:
    program EcFarm;

    var
      Loads: Integer;
    begin
      ActivateClient;
      repeat
        repeat
          MoveMouse(640, 527);
          ClickMouse(640, 527, 1);
          Wait(4000);
          Loads := Loads + 1;
        until (Loads >= 150);
        MoveMouse(780, 227);
        ClickMouse(780, 227, 1);
        Wait(1500);
        MoveMouse(783, 307) ClickMouse(783, 307, 1);
        Wait(1850);
        MoveMouse(780, 389) ClickMouse(780, 389, 1);
        Wait(1495);
      until (false);
    end.

  16. #16
    Join Date
    Jul 2012
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    your code did the same thing it just gets to the point where it activates the window then simba stops doing the other actions and is there a certain way to do keys? because PressKey(<letter>) wasnt working for me

  17. #17
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Quote Originally Posted by Zeaox View Post
    your code did the same thing it just gets to the point where it activates the window then simba stops doing the other actions and is there a certain way to do keys? because PressKey(<letter>) wasnt working for me
    What parameter are u keying in for Presskey? You need to do VK_F1 (srl constant) for example if you want to press F1. You can take a look at http://docs.villavu.com/simba/script...dkeyboard.html for keyboard functions.

  18. #18
    Join Date
    Jul 2012
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i was trying to use R for the letter i got the number for it off the list on that link but it types 4 instead of R

  19. #19
    Join Date
    Jul 2012
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    is there something with simba that it wont work when its not the active window?

  20. #20
    Join Date
    Apr 2012
    Location
    Australia
    Posts
    1,252
    Mentioned
    1 Post(s)
    Quoted
    22 Post(s)

    Default

    Simba should work fine when the client is activated, and the VK code for R is 82 so PressKey(82) will work. Trial and error lead me to that number, tested it and it worked.

  21. #21
    Join Date
    Jul 2012
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yeah still dosnt work unless simba is the active window must be some problem with the interaction between the two

  22. #22
    Join Date
    Apr 2012
    Location
    Australia
    Posts
    1,252
    Mentioned
    1 Post(s)
    Quoted
    22 Post(s)

    Default

    What game is it you are trying to play, and how do you mean it doesn't work? The mouse isn't moving or?

    I added a couple of other little bits and pieces to it with comments to show you what it's doing and why I put it there. Tested it out and it moved the mouse around and clicked on random stuff (on my notepad, given I don't know what game it's for I used a full-screen notepad as the client).
    Simba Code:
    program EcFarm;

    var
      Loads: Integer;

    begin
      ActivateClient; // Makes defined client active window
      repeat
        Loads := 0; // It will keep increasing loads but never reset it without this
        repeat
          Status('Loads: ' + IntToStr(Loads)); // Writes what loads equals in the status bar
          MoveMouse(640, 527);
          ClickMouse(640, 527, 1);
          Wait(4000);
          Inc(Loads); // Same as Loads := Loads + 1; but neater
        until (Loads >= 150);
        MoveMouse(780, 227);
        ClickMouse(780, 227, 1);
        Wait(1500);
        MoveMouse(783, 307);
        ClickMouse(783, 307, 1);
        Wait(1850);
        MoveMouse(780, 389);
        ClickMouse(780, 389, 1);
        Wait(1495);
      until (false);
    end.

  23. #23
    Join Date
    Jul 2012
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    a game called shaiya im trying to make a simple auto kill and when i say it dosnt work if i activate the client then simba stops clicking or doing any other actions it still says the script is running and if i click back to simba it will type/click where and when i want it to but then the game freezes up because it isnt the active window

  24. #24
    Join Date
    Apr 2012
    Location
    Australia
    Posts
    1,252
    Mentioned
    1 Post(s)
    Quoted
    22 Post(s)

    Default

    You're using the crosshair to define your game as the client before running it?

  25. #25
    Join Date
    Jul 2012
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yeah

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

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