Results 1 to 5 of 5

Thread: Need help on "IsFKeyDown"

  1. #1
    Join Date
    Dec 2006
    Location
    Banville
    Posts
    3,914
    Mentioned
    12 Post(s)
    Quoted
    98 Post(s)

    Need help on "IsFKeyDown"

    Well, I have a script that is an autotalker, and displays a message when an Fkey is pressed.

    What I want to know though, is how to make it keep running, so It keeps looking for input.


    Attachment 2625
    The jealous temper of mankind, ever more disposed to censure than
    to praise the work of others, has constantly made the pursuit of new
    methods and systems no less perilous than the search after unknown
    lands and seas.

  2. #2
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Taken straight from my tutorial things the beginner tuts don't teach you, links in sig you should check it out:
    SCAR Code:
    program New;
    {.include SRL/SRL.scar}
    const
    Message1 ='This Uber Tut Is Made By JAD!';
    Message2 ='JAD is the Uber of Uberness!';
    Message3 ='You are doing very well reading this Uber Tut by JAD!';
    procedure AutoTalk;
    begin
    if(IsFKeyDown(2))then
    begin
    TypeSend(Message1);
    end;
    if(IsFKeyDown(4))then
    begin
    TypeSend(Message2);
    end;
    if(IsFKeyDown(5))then
    begin
    TypeSend(Message3);
    end;
    end;
     
    begin
    SetupSRL;
    repeat
    AutoTalk;
    until(IsFKeyDown(12));
    end.

  3. #3
    Join Date
    Dec 2006
    Location
    Banville
    Posts
    3,914
    Mentioned
    12 Post(s)
    Quoted
    98 Post(s)

    Default

    Oh! so I should put those before the begin line?
    The jealous temper of mankind, ever more disposed to censure than
    to praise the work of others, has constantly made the pursuit of new
    methods and systems no less perilous than the search after unknown
    lands and seas.

  4. #4
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yeah, you make procedures/functions, then call for them in the main loop, thats how it works usually

  5. #5
    Join Date
    Dec 2006
    Location
    Banville
    Posts
    3,914
    Mentioned
    12 Post(s)
    Quoted
    98 Post(s)

    Default

    Mmmk. Thanks. now I have an /uber merchanter. Next to make a form.
    The jealous temper of mankind, ever more disposed to censure than
    to praise the work of others, has constantly made the pursuit of new
    methods and systems no less perilous than the search after unknown
    lands and seas.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 05-17-2008, 12:48 PM
  2. action="www.site.com" method="post"
    By Jason2gs in forum General
    Replies: 4
    Last Post: 05-17-2007, 11:50 PM
  3. Replies: 3
    Last Post: 04-19-2007, 03:44 AM
  4. Replies: 5
    Last Post: 10-26-2006, 11:30 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
  •