Results 1 to 4 of 4

Thread: Help on easy code :/

  1. #1
    Join Date
    Sep 2012
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Help on easy code :/

    Simba Code:
    if
    Timerunning (300000)
      MoveMouse (750, 12)
      Wait (500)
      Clickmouse (750, 12)
    end.

    This is what I'm trying to get working when i try to use timerunning it doesnt work with "movemouse" it says invalid number of parameters? yet i copied straight from the function board. just wondering what's wrong with it...

    Thanks in advance.

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

    Default

    I wonder if you need to import anything from the library.

    Did you start with a procedure / begin declaration?
    Activity
    Going asian on University College Ghent.
    No time for anything atm.

  3. #3
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Post the entire script please, and put it in Simba tags, not code tags.
    Is this a script for RS? Or a private server? Or just something else?

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

    Default

    nth wrong with ur MoveMouse.
    1. Timerunning has no parameters.
    2. Timerunning returns in hours, mins, seconds format which is probably not what you want.
    3. you need a 'then' after a 'if (boolean)'.
    4. need a begin if performing multiple actions after a conditional statement.
    5. semicolons.

    Simba Code:
    begin
      repeat
        if GetTimeRunning>300000 then
        begin
          MoveMouse (750, 12);
          Wait (500);
          Clickmouse (750, 12, mouse_Left);
        end;
      until(false);
    end.
    Totally read your mind.
    If you are using it for official RS, use some more advanced antiban to stay logged in.

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
  •