Re: Euphoria Program

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hello,

Michael R. York wrote:

>         I'm still new to the Euphoria programming language, and could use
>some help with just a little test I'm writing.  I'm just trying to get the
>syntax and whatnot down.  Here's the program:
>
>include mouse.e
>atom i, j
>i = 1
>
>while i < 113 and i > 113 do
>         i = get_key()
>         j = get_mouse()
>         ? j
>end while
>
>         Basically what I want to do is just print the event and
>coordinates of the mouse.  I'd like the program to stop when I press q.
>Thanks in advance for any information.
>
>______________________________________
>Michael R. York
>Database Coordinator/Development Department
>Phone:  (610)647-4400 x3137
>Fax:  (610)251-1668
>Email: myork at immaculata.edu

make that:

while get_key() != 'q' do
         ? get_mouse()
end while

hope this helps,
Lewis Townsend


_______________________________________________________________
Get Free Email and Do More On The Web. Visit http://www.msn.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu