Re: key_press

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

On Wed, 30 Sep 1998 20:46:13 +1200, bn <mrsmoo at ES.CO.NZ> wrote:

>hiya
>could some plz tell me how to open another document in my program ie:"hello.ex"
>by using the command "system"
>i have been trying this but it dont work
>atom keypress
>
>keypress = wait_key()
>
>if keypress = '1' or keypress  = '3' then
>
>system("C:\\EUPHORIA\\hello.ex",0) system("",0) system("",0)
>
>or have i cocked this right up

include get.e

atom keypress

keypress = wait_key()
if keypress = '1' then
 system("C:\\EUPHORIA\\TEST.EXE",0)
end if

That will work. So will
 system("DIR",0) -- do a dos DIR

but system("C:\\EUPHORIA\\TEST.EX",0)
won't do anything, since TEST.EX won't
run. Either "bind" it into an .EXE, or
try:

 system("C:\\EUPHORIA\\BIN\\EX.EXE TEST.EX",0)
to run another copy of Euphoria with the
program file TEST.EX.

Irv

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

Search



Quick Links

User menu

Not signed in.

Misc Menu