Results 1 to 8 of 8

Thread: Widget's Super-Form

  1. #1
    Join Date
    Mar 2007
    Location
    Players[-1].Loc
    Posts
    962
    Mentioned
    4 Post(s)
    Quoted
    5 Post(s)

    Default Widget's Super-Form

    You are allowed to use this in your scripts so long as my name gets stuck in the title. ForegroundColor and BackgroundColor are obvious constants. The usernames get stuck in User[1] as Player 1 through User[5] as Player 5 (NOT 0 through 4, as that's really confusing). Passworsd are Pass[1] through Pass[5].

    This isn't really related to Runescape, but it's something other scripters could really use, and hopefully will use it.

    Its a player form, simple as that. I tried to make it somewhat customizable, and it worked to some extent. Just put it in Scar and run it. Screw around with it and see what it does

    Feedback, bugs, comments, rants about it not being a real script, whatever.

    V1.0 First Release
    - Supports 5 Accounts
    - Disables unused accounts
    - 3 Variable Boxes for whatever you may need

    Future updates
    - Saving to text file
    - Loading saved text file

    - Widget

    Edit: I put player one as user[1] and pass[1], just as the 5th account is user[5], since having the first person as 0 is a bit confusing.

  2. #2
    Join Date
    Mar 2007
    Location
    Under a rock
    Posts
    813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ive been looking for something like this for a long time because i love scripts with it in it so ty lol.

    But how i do change the size of stuff and move stuff around knowing where it will end up because ide want to move stuff around but how can i see where its going by putting in its size and coords?

  3. #3
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    He'd have to post the main form file (.dfm).

    Looks pretty cool, but it'd be nicer if it would do unlimited accounts (like the srl one)
    Interested in C# and Electrical Engineering? This might interest you.

  4. #4
    Join Date
    Mar 2007
    Location
    Players[-1].Loc
    Posts
    962
    Mentioned
    4 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by rune hacker View Post
    Ive been looking for something like this for a long time because i love scripts with it in it so ty lol.

    But how i do change the size of stuff and move stuff around knowing where it will end up because ide want to move stuff around but how can i see where its going by putting in its size and coords?
    I didn't use the form editor, since it keeps screwing up my coords. It's pretty simply though, like I think the first username box was (15,10) with a width of 200, so the password box for that would be (215,10).

    Quote Originally Posted by Smartzkid View Post
    He'd have to post the main form file (.dfm).
    Didn't use a DFM, hand-coded

    Quote Originally Posted by Smartzkid View Post
    Looks pretty cool, but it'd be nicer if it would do unlimited accounts (like the srl one)
    The problem with the SRL one is it's confusing and not all that well organized, thats why I made this

    ---

    Oh, might as well put this here. This is a huge time-saver for making any custom forms:
    SCAR Code:
    program Form;
    // By Widget
    const
    {+============================================================+}
    {|}    master = 'WidgetForm';  {|{ Parent form                |}
    {|{============================{|{==========================={|}
    {|}   element = 'TButton';     {|{ What type it is            |}
    {|{============================{|{============================|}
    {|}      name = 'Cancel';      {|{ It's name                  |}
    {|{============================{|{============================|}
    {|}   caption = 'Cancel';      {|{ Value of it                |}
    {|{============================{|{==========================={|}
    {|}      text = '';            {|{ Value of it                |}
    {|{============================{|{==========================={|}
    {|}     width = '60';          {|{ Width                      |}
    {|{============================{|{==========================={|}
    {|}    height = '20';          {|{ Height                     |}
    {|{============================{|{==========================={|}
    {|}     color = '';            {|{ Background color           |}
    {|{============================{|{==========================={|}
    {|} fontColor = '';            {|{ Text color                 |}
    {|{============================{|{==========================={|}
    {|}   fromTop = '70';          {|{ Pixels from top of screen  |}
    {|{============================{|{==========================={|}
    {|}  fromLeft = '425';         {|{ Pixels from left of screen |}
    {+============================={|{============================+}

           indent = '   ';         // How far to indent things
       
    begin
    cleardebug;
    // writeln('// Form element generated by');
    // writeln('// Widgets form generator...');
    // writeln('');

    writeln(indent+name+' := '+element+'.Create('+master+');')
    writeln(indent+name+'.Parent := '+master+';')
    if not (width='') then
       writeln(indent+name+'.width := '+width+';')
    if not (height='') then
       writeln(indent+name+'.height := '+height+';')
    if not (fromLeft='') then
       writeln(indent+name+'.left := '+fromLeft+';')
    if not (fromTop='') then
       writeln(indent+name+'.top := '+fromTop+';')
    if not (color='') then
       writeln(indent+name+'.color := '+color+';')
    if not (fontColor='') then
       writeln(indent+name+'.font.color := '+fontColor+';')
    if not (caption='') then
       writeln(indent+name+'.caption := '+Chr(39)+caption+Chr(39)+';')
    if not (text='') then
       writeln(indent+name+'.text := '+Chr(39)+text+Chr(39)+';')
    //writeln(indent+name+'.visible := True')
    writeln('')
    // writeln('// Remember to add " var '+name+':'+element+'; ".')
    end.

    - Widget

    EDIT!:
    Quote Originally Posted by Smartzkid View Post
    Looks pretty cool, but it'd be nicer if it would do unlimited accounts (like the srl one)
    I just realized I can do arrays of TEdits... I'll be working on this =D

  5. #5
    Join Date
    Mar 2007
    Location
    Under a rock
    Posts
    813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Where is tutorial on how to use the form editor?????? Ide love to make my own because it looks cool.

  6. #6
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    Very nice . Maybe you could also add a Main/Normal form; where you can put in colors, some options and maybe a shortcut to this PlayerManager.
    Hup Holland Hup!

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

    Default

    Quote Originally Posted by Widget View Post

    Didn't use a DFM, hand-coded

    Widget, you must be a god with forms then. I mean, better then Sky, and he's amazing :O.

  8. #8
    Join Date
    Mar 2007
    Location
    Players[-1].Loc
    Posts
    962
    Mentioned
    4 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by hey321 View Post
    Widget, you must be a god with forms then. I mean, better then Sky, and he's amazing :O.
    Yay I feel special . Now who is this Sky you speak of...

    Fixed a few minor bugs and plugged the memory leak in it. The tab order is being a bit weird, it should go from user 1 to pass 1 to user 2 etc, but its going u1,u2,p1,u3,p2,u4,etc. (I probably confused most of you with that >.<)

    Still trying to figure out how to use arrays of TEdits and TCheckBoxes. Right now they're not showing up right... I have a different method in mind, but It'll take awhile to test.

    - Widget

    Hehe edit: Looked at sky's random form game and died

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Widget's Gabber Mixes
    By Widget in forum Music, Movies and TV
    Replies: 7
    Last Post: 02-23-2009, 05:58 AM
  2. Who is the better Super hero
    By Death12652 in forum Discussions & Debates
    Replies: 24
    Last Post: 11-09-2008, 05:00 PM
  3. Who will Win the Super Bowl?
    By gamer 5 in forum The Bashing Club / BBQ Pit
    Replies: 22
    Last Post: 02-12-2008, 12:25 PM
  4. Super Fire!!!
    By Raskolnikov in forum RS3 Outdated / Broken Scripts
    Replies: 18
    Last Post: 01-11-2008, 01:06 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
  •