Results 1 to 10 of 10

Thread: Small Problem

  1. #1
    Join Date
    Sep 2008
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Small Problem

    i am currently working on a script for endless online and the attack button is control, i have successfully got the script to the point that i want it, but i don't understand how to have scar simulate hitting the Ctrl key. Any ideas?

  2. #2
    Join Date
    Mar 2008
    Location
    ::1
    Posts
    915
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    I know the procedure is as follows...
    SCAR Code:
    KeyDown;
    But... I don't know the argument for control. You would push the up button like this...
    SCAR Code:
    KeyDown(VK_UP);
    wait(1000 + random(500));
    Keyup(VK_UP);

    This is a total guess but could it be?
    SCAR Code:
    KeyDown(VK_CTRL);

    Don't forget to rep+ if I helped.

    Records and Types Save Code (and make you look better)
    Quote Originally Posted by Wizzup? View Post
    Is it possible to make Runescape a 2D game with this?... That would greatly simplify... Just about anything.

  3. #3
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    I think KeyDown(VK_CONTROL) is what you're looking for.
    :-)

  4. #4
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    That is correct. It's in the scar munual.
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

  5. #5
    Join Date
    Sep 2008
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Method your worked like a charm, thanks for the quick replies, ++Rep for both.

  6. #6
    Join Date
    Sep 2008
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Edit-
    Bah, new problem, i m trying to make a really simple script, The player determines the color with medicine dropper if scar finds it, it will begin KeyDown(VK_CONTROL), i looked through manual but i m having a bit of a problem.

  7. #7
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    SCAR Code:
    Procedure PickDaColour;
    begin
      KeyDown(VK_CTRL)
      Wait(300)
      SendKeys('p')
      wait(300)
      KeyUp(VK_CTRL)
      MoveMouse(?,?)
      wait(30)
      ClickMouse(?,?,True)
    end;

    Try that?
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

  8. #8
    Join Date
    Sep 2008
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    tryed it, got two errors because CTRL->CONTROL, now i get syntx error at line 9, unless i m supposed to change question marks. teehee

    Thanks very much in advance for everything

  9. #9
    Join Date
    Sep 2008
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It would be helpful if you would post what you have so we can help fix it

    Regards,

    Bloody

  10. #10
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by lilpaintballer View Post
    tryed it, got two errors because CTRL->CONTROL, now i get syntx error at line 9, unless i m supposed to change question marks. teehee

    Thanks very much in advance for everything
    Yea, I don't know what the co-ords are for the thing you want to click, so I just left it as that. If your including srl, you should do,

    SCAR Code:
    mouse(?,?,3,3,true)
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. small problem not sure how to fix it
    By shaheerpak in forum OSR Help
    Replies: 3
    Last Post: 01-02-2008, 04:41 AM
  2. small problem. Need help.
    By One Leeter in forum OSR Help
    Replies: 8
    Last Post: 06-15-2007, 09:03 PM

Posting Permissions

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