1. Re: Your recent message to Topica.com

Here is a msessage I sent and what I got back.


>From: Natasha <support at get.topica.com>
>To: Lewis Townsend <keroltarr at hotmail.com>
>Subject: Your recent message to Topica.com
>Date: Thu, 01 Feb 2001 20:02:36 -0800
>
>You recently sent a message,
>
>Re: A few simple questions...
>
>to EUforum.  This is a restricted list, which means that only
>subscribers of the list can post to it.  Our records indicate that you
>are not a member of the list.
>
>If you would like more information about this list, or you would like to
>join the list, you can go to the Topica web site (http://www.topica.com)
>and search for the list.
>
>Topica's site also has thousands of lists you can join. See
>for yourself at: http://www.topica.com You can check out our
>collection of great TipWorld tips at:
>http://www.topica.com/tipworld?system1
>
>Questions about the service? Check out Topica's Help
>section at http://www.topica.com -- just click on "help"
>at the bottom of the screen.
>
>Still have questions? Email Topica at support at get.topica.com.
>Please include the email address of the list you're
>inquiring about, and the email address you use to
>subscribe to the list.
>
>Sincerely,
>Topica Customer Support
>
>-------------------------------
>+++++ Original Message ++++++++
>-------------------------------
>
>Return-Path: <keroltarr at hotmail.com>
>Delivered-To: empire at inmta002.topica.com
>Received: (qmail 14726 invoked by alias); 2 Feb 2001 04:02:32 -0000
>Delivered-To: EUforum at topica.com
>Received: (qmail 14697 invoked by uid 0); 2 Feb 2001 04:02:31 -0000
>Received: from f27.law12.hotmail.com (HELO hotmail.com) (64.4.19.27)
>   by inmta002.topica.com with SMTP; 2 Feb 2001 04:02:31 -0000
>Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC;
>	 Thu, 1 Feb 2001 20:01:51 -0800
>Received: from 129.37.224.113 by lw12fd.law12.hotmail.msn.com with 
>HTTP;	Fri, 02 Feb 2001 04:01:50 GMT
>X-Originating-IP: [129.37.224.113]
>From: "Lewis Townsend" <keroltarr at hotmail.com>
>To: EUforum at topica.com
>Subject: Re: A few simple questions...
>Date: Thu, 01 Feb 2001 22:01:50 -0600
>Mime-Version: 1.0
>Message-ID: <F27gl4rhYQYx3G5aYY6000006b8 at hotmail.com>
>X-OriginalArrivalTime: 02 Feb 2001 04:01:51.0071 (UTC) 
>FILETIME=[DF1B76F0:01C08CCC]
>
>Hello Scott,
>
>
> >I have a few simple questions that are just questions about a few
> >Euphoria commands. I included a few examples if you dont understand what
> >I mean from the text:
> >
> >1. Does anybody know a command that makes it so at ANY time during the
> >ENTIRE program (such as a game) you can assign a few different keys to
> >hotkeys for the user that will always do a certain command and ALWAYS
> >work until you tell them not to or reasign them(not just after that one
> >if statement or while loop)?
>
>-- Warning this is Pseudocode (Euphoria syntax)
>integer firekey
>firekey = ' ' -- Space
>while in_game_loop do
>   if key_pressed = firekey then
>     FireGun()
>   end if
>   firekey = '\n' -- now the firekey is the Enter key
>end while
>
>
>I think this is what you want. Let me know if it isn't.
>
>
> >2. Do you know of anyway to do a wrap function that wraps the text for 
>long
> >sentences but not at whatever letter the side of the screen ends at but
> >then goes back to the last Word and wraps it?
>
>Looks like someone already helped with this one.
>
>
> >3.( And last) Do you know anyway to get out of the computer puting that
> >annoying \n after every prinf?
> >
> >Example:
> >
> >object name
> >puts(1, "What is your name?\n"
> >name = gets(0)
> >printf(1, "Hello %s! How are you???", {name})
> >
> >       On my computer that apears when you run the program as:
> >What is your name?
> >Hello (name)
> >! How are you?
> >
> >       I want it to be:
> >What is your name?
> >Hello (name)! How are you???
>
>
>Heh heh. This is the kind of problem that jumps up and
>bites you when you are looking the other direction. The
>'\n' isn't put in there by printf(). It is put in there
>by YOU. Yes, when you type "Scott" and press ENTER, it
>records that as "Scott\n". Here is how to fix it:
>
>--CODE
>-- assume name contains "Scott\n"
>name = name[1..length(name)-1]
>--END CODE
>
>I just hate to spit out this complicated looking stuff
>without explaining it:
>
>name[x..y] is a slice of name of course
>1 means we start at the beginning
>length(name) means we go to the end EXCEPT for that
>last character ('\n') which we remove with the -1.
>
>
>hope this helps,
>Lewis Townsend
>

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu