Results 1 to 22 of 22

Thread: Quick question..

  1. #1
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default Quick question..

    This is about 2 am right now, doing a little fixing on my script, and I ran in to a small question.
    I don't got IRC or any thing so i can't go on there.

    Lets say I have

    SCAR Code:
    case Random(2) of....blah
    can I do this?
    SCAR Code:
    0: begin
    ?
    Oh Hai Dar

  2. #2
    Join Date
    Oct 2008
    Posts
    500
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    I dont think 0 will ever be returned by that. Not 100% but Im pretty sure you cant do that.

    1 : begin

    2 : begin

  3. #3
    Join Date
    Oct 2006
    Location
    United States
    Posts
    672
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yes you can

    SCAR Code:
    Case random(2) of
      0:  begin
             //stuff
          end;
      1:  begin
             //other stuff
          end;
    end;

  4. #4
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    D1zl3
    thanks!!
    I might have more question very soon, so please stay around
    Oh Hai Dar

  5. #5
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    Sorry to double post..
    Could any one explain/show me extensions after

    SCAR Code:
    GetApplication.
    ?
    Oh Hai Dar

  6. #6
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    Active, BringToFront, ExeName, Handle, MessageBox, Minimize, ProcessMessages, Title.
    Ce ne sont que des gueux


  7. #7
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    thanks
    also, how do you find the keyboard's number?
    like
    SCAR Code:
    keydown=39...blah

    EDIT: I found some, in scar/help.
    I'll google for "alt" key.
    and how do you press 2 key down at once? or how do you push and release the keys?
    Oh Hai Dar

  8. #8
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    Uhh try searching that
    In SCAR do vk_(ctrl+space), then a list will pop up
    Ce ne sont que des gueux


  9. #9
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    huh?
    Oh Hai Dar

  10. #10
    Join Date
    Jul 2007
    Location
    's-Gravenpolder, Holland
    Posts
    204
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    If you type in VK_( And then press Ctrl+Space you will get a dropdown menu of all available keys

    ~Sir

  11. #11
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    Doesn't do any thing on mine..
    I saw the picture at the help folder in scar. but I need alt, which google doesn't give (It give alt+every key except for alt it self)
    Oh Hai Dar

  12. #12
    Join Date
    Jul 2007
    Location
    's-Gravenpolder, Holland
    Posts
    204
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hmm i just looked through Scar's function key list, and all keys are there, except Alt =|
    Guess you need to try something else man =\

    ~Sir

  13. #13
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    arlight man.

    I have a stupid problem.
    How do I make scar click some were outside of the rs client? (If given some sorths of coordinate)
    Oh Hai Dar

  14. #14
    Join Date
    Jul 2007
    Location
    's-Gravenpolder, Holland
    Posts
    204
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Depends, if the rs client is active, just use the coords shown at the bottom of the scar screen.
    If it's on the desktop or w/e, just use the crosshair to select the desktop or w/e ure trying to click.

    ~Sir

  15. #15
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    its active, but i just need it to click out side of the box
    Oh Hai Dar

  16. #16
    Join Date
    Jul 2007
    Location
    's-Gravenpolder, Holland
    Posts
    204
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Use the coords shown at the bottom of Scar. If you go outside the rsclient with your mouse, the X-coordinate will go negative, and the Y-coordinate will go negative if you go under the rs client.

    Mess arround with it, and you'll get it

    ~Sir

  17. #17
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    How do you click? I use mouse box and bitmaps.. never learned how to click..
    and what are the xycords..etc
    Oh Hai Dar

  18. #18
    Join Date
    Jul 2007
    Location
    's-Gravenpolder, Holland
    Posts
    204
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You should use the Mouse function to move the mouse and click.
    It's used like this:

    SCAR Code:
    Mouse(X,Y,Xtol,YTol,Click:Boolean);
    You would use the function to move to e.g coordinate 100,100 like so:

    Mouse(100,100, 5, 5, true);
    This would move the mouse to 100,100 on the screen with a random tolerance of 5pixels to either side of the coordinate, and then click the mouse.

    If you have any more questions, feel free to ask =]

    ~Sir

  19. #19
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    no more problem now ty for all your help
    Oh Hai Dar

  20. #20
    Join Date
    Jul 2007
    Location
    's-Gravenpolder, Holland
    Posts
    204
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    No problem
    And like i said before, if you have any more questions, feel free to ask =]

    ~Sir

  21. #21
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    1 question.
    you know there is
    SCAR Code:
    TerminateScript
    Is there any thing that can restart script?
    Oh Hai Dar

  22. #22
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    is there? any one?
    Oh Hai Dar

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Just a quick question? Did I say quick?
    By SeanJohn in forum OSR Help
    Replies: 3
    Last Post: 01-28-2009, 12:03 AM
  2. Quick question
    By GinFoxface in forum OSR Help
    Replies: 2
    Last Post: 04-07-2007, 04:25 AM
  3. Quick Question
    By mage of begu in forum OSR Help
    Replies: 10
    Last Post: 01-12-2007, 10:48 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
  •