[Gambas-user] Shell / Exec Question
Brant Wells
bwells at ...475...
Mon Jun 21 15:07:07 CEST 2004
Hey Charlie:
I understand that the X apps don't really need StdOut or ErrOut... What
I was actually looking for would be a way to monitor an application, and
when that application has the focus, monitor the keyboard for certain
combinations, or to follow the mouse outside of a drawing area, or even
outside of my application. I realize I'm probably getting into a lot of
the X-windows API calls, etc... But it would be nice, say to be able to
bring kCalc to the front, even if my application didn't start it... and
then do like a SendKeys or something for 2+2, then Sendkeys("{CTRL}+C"),
and switch to another application, say, OOCalc (the OpenOffice.Org's
Spreadsheet App) and paste that value into one of the cells.
I know that's a far-fetched example, as I have forgotten really what I
wanted to do with it, as I have found another way to do what I
wanted... Check out the Log App that I posted last week... Does Gambas
have a way to call external API yet like, say, from the X libs ??
Thanks!!
~Brant
Charlie wrote:
> Salut Brant,
>
> in examples/console you can also start X applications and if ever this
> X applications has something to say at StdOut (I don't think so) or
> ErrOut (you have better cards in hight debug-levels) so it
> would trigger the Process_Read and this is shown in the
> examples/console Output-Window .
>
> Why should X applications talk via StdOut ?
>
>
> Amicalement
> Charlie
More information about the User
mailing list