Results 1 to 8 of 8

Thread: form not working???

  1. #1
    Join Date
    Aug 2007
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default form not working???

    Attachment 6540
    this is my first script, dont mind all the dutch text in it, its about the form... it doesnt recognize that the button is down or something! i tried everything, but i cant find something thats wrong... by the way, its a program that starts my firefox and opens some favorites... with the form i can choose wich one and i can enter my pass and username... but when i press the button, nothing happens! please help!

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    2,984
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Your trying to define the var 'username' (which is not a var!) with the var edit1.text, which is a var. But i assume that is the wrong order.

    Try :

    edit1.text := 'username';

    (With the other lines too)
    Administrator's Warning:


  3. #3
    Join Date
    Aug 2007
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    it still doesnt work...when i click the button the form has to disappear, but it doesnt. by the way, i believe 'username' WAS a var, at least i declared it a var at start(i believe). can it be something else?

  4. #4
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    Yes, it is a var, but when you have 'example' anything wrapped with little " ' "s it is a string, use "Username := Edit1.text;"

  5. #5
    Join Date
    Aug 2007
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    it still doesnt react on the buttonclick... isnt it something i forgot about the buttonclick procedure?

  6. #6
    Join Date
    Aug 2007
    Posts
    429
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Yes.

    SCAR Code:
    Button1 := TButton.Create(frmDesign);
    Button1.Parent := frmDesign;
    Button1.Left := 122;
    Button1.Top := 214;
    Button1.Width := 90;
    Button1.Height := 30;
    Button1.Caption := 'Save Changes';
    Button1.TabOrder := 10;
    Button1.OnClick := @StartClick; //<-- need to add this on your button in InitForm

  7. #7
    Join Date
    Jan 2007
    Location
    USA
    Posts
    1,782
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    if you just want the form to close

    SCAR Code:
    Button1.ModalResult := 1;

    Join the fastest growing merchanting clan on the the net!

  8. #8
    Join Date
    Aug 2007
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    it works now, thank u very much!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. ~~~~Working Edge cooker WORKING~~~
    By NiCbaZ in forum RS3 Outdated / Broken Scripts
    Replies: 5
    Last Post: 10-29-2007, 11:16 PM
  2. [Working on].:Autoseller:.[/Working on]
    By dritar in forum First Scripts
    Replies: 10
    Last Post: 10-07-2007, 06:13 AM
  3. Wizzups [SRL] Ess Miner With Working Form
    By Bammersx in forum RS3 Outdated / Broken Scripts
    Replies: 1
    Last Post: 04-17-2007, 07:27 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
  •