[Gambas-user] capture gambas debug console events?

mikeB mb at code-it.com
Tue Nov 14 12:50:48 CET 2017


eGreetings,
Thank you so much for your reply and code snippet!
I don't understand any of it BUT after I get to playing
around, and hack'n at it, then hopefully I will;-)

Again - thanks for your time and mentorship,
mikeB


On 11/14/2017 03:39 AM, Fabien Bodard wrote:
> in desing module between  line 988 - 995
> 
> 
> 
>    If sProg Then
>      $hProcess = Exec aExec With aEnv As "Process"
>    Else
>      '$hProcess = Exec aExec With aEnv For Input Output As "Process"
>      $hProcess = FOutput.GetTerminal().Exec(aExec, aEnv)
>      $hProcess.Term.Echo = True
>      $hObserver = New Observer($hProcess, True) As "Process"
>    Endif
> 
> 
> 
> here you can add an observer again and scan the returned values.
> 
> 
> 
> 
> 2017-11-13 18:24 GMT+01:00 mikeB <mb at code-it.com>:
>> eGreetings to the world of Gambas,
>> I have a app, that I'm trying to develop, that shells out to "Steghide"
>> among other things. The problem I need to resolve (if possible) is
>> to capture any errors messages that occur during the "Strghide" process.
>>
>> I'm probably just dreaming that this may be done but...
>> The Gambas debug console captures the errors - is there any way to code it
>> so that the debug messages can be transferred/ captured then displayed in a
>> label (or somewhere) on the main form of the project?
>> As far as getting the error message from the terminal (shell to steghide")
>> then showing on the main form - I find no way ;-(
> 
> There is many ways in fact. You need just to capture the
> 
>>
>> Thanks for any/ all help to resolve (or not) this matter,
>> mikeB
>>
>> --------------------------------------------------
>>
>> This is the Gambas Mailing List
>> https://lists.gambas-basic.org/listinfo/user
>>
>> Hosted by https://www.hostsharing.net
> 
> 
> 


More information about the User mailing list