Re: Capture console output - edita 0.0.7

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

Pete Lomax wrote:
> 
> Ed Davis wrote:
> >size of CONSOLE_SCREEN_BUFFER_INFO is 22
> 
> Al Getz wrote:
> >The _CONSOLE_SCREEN_BUFFER_INFO struct is 22 bytes long.
> 
> Thanks, I wan't sure if the rect was being dword aligned (its not).
> 
> >posted by: Al Getz <Xaxo at aol.com>
> >
> >
> >Hi Pete,
> >
> >Can't get the 'console capture' or whatever it is to work.
> >I get error "Cant create process" under XP.
> >On second try, get "Console is already captured" or something like that.
> 
> Please try replacing approx ten lines at the start of eacons.ew:
> 
> function GetLastError()
> 	return c_func(xGetLastError,{})
> end function
> 
> integer initC, inUse
> 		initC=0
> 
> procedure Ferror(sequence msg)
> 	void = messageBox("Error",
> 	sprintf("%s failed [%d]",{msg,GetLastError()}),0)
> 	inUse=0
> end procedure
> 
> Obviously, it will still fail, but maybe give a hint this time.
> 
> Thanks,
> Pete
> 
> 

Hi Pete,


Ok, here's the latest on the message area display...

Added err number lines (as above).
Open Edita (with test2.exw loaded).
Press F5.
Get 'file' error... traced to 'exwc' wasnt recognized because
i never created one on my system.

Created exwc.exe and opened one .ex program with it, then 
closed that program.

Open Edita.
Press F5.
Get msgbox error: Duplicate Handle failed
Close Edita.

Added PROCESS_DUP_HANDLE to OpenProcess() call.

Open Edita.
Press F5.
Console opens, prints out:
-------------------------------------------------------------
press any key but q
ReadConsoleOutput failed
-------------------------------------------------------------
(and see nothing in message area)

Close console by pressing ENTER,
see in message area:
press any key but q


In short, the console opened, showed the program output, also 
showed an error message, and nothing was displayed in the message
area until after the console was closed by pressing ENTER.

It might help if i knew what the message area was supposed to be
showing, both now and what your long range intentions are for that,
and exactly when it's supposed to appear there.


Take care,
Al

And, good luck with your Euphoria programming!

My bumper sticker: "I brake for LED's"

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

Search



Quick Links

User menu

Not signed in.

Misc Menu