Results 1 to 4 of 4

Thread: Comments

  1. #1

    Default Comments

    I just noticed something today about getBuffer(). In order for the function to store the data from the last command and immediately use the data, you need to use the waitFor function before trying to use the data.

    Example:
    Code:
    void main(string args) {
    	send("smile");
    	echo(getBuffer());
    }
    The above code would echo nothing in the game window.

    While, the code below, containing the waitFor, will echo the buffer.

    Code:
    void main(string args) {
    	send("smile");
    	waitFor(" ");
    	echo(getBuffer());
    }
    I just thought I'd post this in case anyone else got confused as to why the buffer was empty.

    [Edited on 10-1-2004 by Jonty]
    - Me

  2. #2
    Join Date
    Jul 2003
    Location
    St. Louis, MO
    Posts
    4,271

    Default clearCurrentBuffer()

    When I was trying to get around an extractString() problem, it got me wondering. I know there is a clearFullBuffer() function in UltraTech, but is there a way to clear the current buffer without sending a command to the game?

    BigWorm
    Quote Originally Posted by Patrick McGoohan
    I am not a number, I am a free man!

  3. Default

    No, but I suppose it doesn't hurt to add one.

  4. #4

    Default

    Can you make UltraTech able to call Wizard FE scripts? When I tried this it said, "Please rephrase that command."
    - Me

Similar Threads

  1. How to tell if you're a comments troll
    By Gan in forum Off-Topic
    Replies: 8
    Last Post: 08-16-2010, 04:19 AM
  2. Rep comments disappearing
    By Farn in forum Bug Reports
    Replies: 3
    Last Post: 06-29-2010, 03:52 AM
  3. comments?
    By p. r e d d y in forum Rogue
    Replies: 3
    Last Post: 07-06-2009, 07:12 PM
  4. GP: Various Comments/Responses
    By CrystalTears in forum Gemstone News
    Replies: 3
    Last Post: 09-18-2008, 03:00 PM
  5. Thoughts...Comments?
    By Meges in forum Staff and Policy Complaints
    Replies: 54
    Last Post: 09-10-2007, 07:46 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
  •