Results 1 to 2 of 2

Thread: form with 2 text fields and a button

  1. #1
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    189
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default form with 2 text fields and a button

    Hello,

    I need a form where are 2 textfields and if i click o the button it needs to send it to the rest of the script, but i can't find a good tutorial about senden a variable to the script.
    this is the rest of the script:
    SCAR Code:
    program TugOWar;
    begin
      repeat
      KeyDown(GetKeyCode('z'));
      Sleep(65);
      KeyUp(GetKeyCode('z'));
      KeyDown(GetKeyCode('x'));
      Sleep(65);
      KeyUp(GetKeyCode('x'));
      until(False);
    end.

    i want that the z and x become the character i typed in the text fields in the form.

    the script above is standard with scar, but the characters to typ at the game are not the same every game.

    i hope some of you can help me.

    sorry for my bad english, I am dutch.

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

    Default

    use InChatinstead of the whole key thing
    and look at starblasters form tut...or driger's all around tut..they help and should give u the help u need
    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. Grabbing or reading Text from a game text box
    By British in forum OSR Help
    Replies: 16
    Last Post: 02-27-2009, 08:02 AM
  2. Changing the Text on XP Start Button
    By Jason2gs in forum Computer Help and Tutorials
    Replies: 47
    Last Post: 10-18-2008, 03:59 AM
  3. If Button on Form Is Clicked...?
    By IEatJ00erBaybees in forum OSR Help
    Replies: 5
    Last Post: 03-21-2007, 01:28 AM
  4. Button pop up.
    By darksid in forum RS3 Outdated / Broken Scripts
    Replies: 5
    Last Post: 11-20-2006, 01:41 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
  •