Results 1 to 6 of 6

Thread: Simple Problem

  1. #1
    Join Date
    Sep 2006
    Posts
    916
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Simple Problem

    I have not scripted in a while, so this question will probably sound REALLLLLLY dumb, I am trying to make a mouse releaser to help me train agil, the problem is, I don't know how to right click them and hit release, I believe I know something, but I am not 100% sure, if you have any ideas, please post .
    SCAR Code:
    Program Hmph;
    {.include srl/srl.scar}

    ReleaseAll;
    begin
    end;


    begin
    if(isfkeydown(9)then
    ReleaseAll;
    end.

    That's my current script, I am about to try something but and not 100% sure it will work, if it does I will post here saying I figured it out .

  2. #2
    Join Date
    Apr 2007
    Posts
    581
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    HoldMouse- Holds the mouse button down until you tell it to Release.

    RealeaseMouse- Releases the mouse



    Is that what you wanted?

  3. #3
    Join Date
    Sep 2006
    Posts
    916
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    No, I need something to release it,

    Program Hmph;
    {.include SRL/SRL.scar}


    var
    p: Integer;

    Procedure ReleaseAll;
    begin
    P:=1
    Repeat
    MouseItem(p, false);
    ChooseOption('Release');
    P:=P+1
    Until(P=6)
    end;


    begin
    repeat
    if(isfkeydown(9))then
    ReleaseAll;
    until(false)
    end.

    That gets it compiled, but whenever I hit f9, it gives me

    [Runtime Error] : divide by Zero in line 80 in script C:\Program Files\SCAR 3.11\includes\SRL/SRL/Core/Mouse.scar

    Whatever that means :/.

  4. #4
    Join Date
    Feb 2006
    Location
    Locked in RAM's closet !
    Posts
    2,001
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    nah this guy just forgot to put in
    setupsrl



    now it works like a charm right
    Darky has stopped by to say hello :).
    10-21-2010
    Updated-
    10-09-2012

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

    Default

    I dunno I'll go try I'm tired and I havn't scripted in a while as I said, gay ass mistake .

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

    Default

    Idk, try this:
    SCAR Code:
    Program Hmph;
    {.include SRL/SRL.scar}


    var
    p: Integer;

    Procedure ReleaseAll;
    begin
      For P:=1 To 6 Do
      Begin
        MouseItem(P, false);
        Wait(300+Random(100))
        ChooseOption('Release');
      End;
    end;


    begin
      Setupsrl
      repeat
        if(isfkeydown(9))then
        ReleaseAll;
      until(false)
    end.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Simple Math Problem
    By benjaa in forum OSR Help
    Replies: 14
    Last Post: 01-04-2009, 06:09 AM
  2. Replies: 5
    Last Post: 03-26-2007, 07:57 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
  •