Results 1 to 5 of 5

Thread: Bank scrolling

  1. #1
    Join Date
    Dec 2006
    Location
    Australia
    Posts
    698
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default Bank scrolling

    During the developement of some new helpful procedures i couldnt find a previous procedure to scroll the bank down a line. So do this would the simple example below surfice.

    SCAR Code:
    procedure ScrollBank(Direction : string; Rows : integer);
    var Uarrow, Darrow, bx, by : integer;
    begin
     Darrow := BitmapFromString(10, 2, 'z78DA333000024303306' +
           '9E26262646C0C210D8810C72471E9C5540900911D1767');
     Uarrow := BitmapFromString(10, 2, 'z78DA33300002430324D' +
           '2C4C5C4C8D818BF88010E5DB8F4628A030080B51767');

     case Lowercase(Direction)  of
     'up':begin
            if (FindBitMapToleranceIn(Uarrow, bx, by, MSX1, MSY1, MSX2, MSY2, 20)) then
             begin
               MMouse(bx,by,0,0);
               HoldMouse(bx,by, True);
               Wait(150 * Rows);
               ReleaseMouse(bx,by, True);
             end;
           end;
     'down':begin
            if (FindBitMapToleranceIn(Darrow, bx, by, MSX1, MSY1, MSX2, MSY2, 20)) then
             begin
               MMouse(bx,by,0,0);
               HoldMouse(bx,by, True);
               Wait(150 * Rows);
               ReleaseMouse(bx,by, True);
             end;
            end;
     end;
    end;

  2. #2
    Join Date
    Mar 2007
    Posts
    3,681
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    A more effective way would be to click on the scroll bar liek if you wanted 2nd bank screen click a bit below where the scroll rectangle is now and 3rd and bit mroe and so on so you colud have all items shown but that one is also a nice idea

  3. #3
    Join Date
    Dec 2006
    Location
    Australia
    Posts
    698
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    I only move it one row at a time because f2p only have two extra rows, so i might change it so you can select how many rows you want to scroll.

  4. #4
    Join Date
    Mar 2007
    Posts
    674
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    That sounds new, never seen it in any other scripts.

    Giid luck with that!

  5. #5
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    i thought they already had sumthing for that...but its a nice procedure anyway
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


Thread Information

Users Browsing this Thread

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

Similar Threads

  1. bank pin
    By ekamjit in forum OSR Help
    Replies: 3
    Last Post: 11-12-2008, 02:06 AM
  2. Bank Pin
    By traveler in forum OSR Help
    Replies: 2
    Last Post: 06-05-2008, 10:43 PM
  3. Bank Pin
    By awesom in forum OSR Help
    Replies: 13
    Last Post: 11-28-2007, 04:11 AM

Posting Permissions

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