Re: How to send a key event to another process?
- From: Lew Pitcher <lpitcher@xxxxxxxxxxxx>
- Date: Sat, 31 May 2008 19:36:43 -0400
In comp.os.linux.misc, Mirxon@xxxxxxxxx wrote:
Hello,
I'm working on a C program under Ubuntu.
It's basd on socket.
Browser calls a client cgi (C program), and send some parameters to
server (C program).
Given your statement above, ITYM
1) Browser sends a GET or POST HTTP request to web server (via TCP port 80)
2) Web server decodes GET/POST URL and determines which CGI program to call
3) Web server calls appropriate CGI program
4) CGI program uses some form of IPC to communicate with a server program
Server runs another program (ooimpress, open office ppt), and
translate the commands from client to a key event, and send it to
child process.
Here, your intent is not as clear
5) Server program runs "another program" and translates the commands from
the CGI "into a key event" and sends it (the key event?) to a child
process
For example.[snip]
first, after openning xxx.odp on server, I need to display it in "full
screen mode", so I need to send "F5" from server program to child
process "ooimpress".
Your intent is even less clear here. Is it your intent to have the contents
of an ODF "presentation" display within a web browser? If not, then please
elaborate on your example. OTOH, if I've stated the goal correctly, then
your solution is likely not going to work as there is no GUI interface
between an arbitrary web browser and a web server/cgi/ooimpress other than
the presentation protocols normally supported in a web environment (HTML,
Flash, SVG, etc.) OOImpress uses the X protocol, which won't help you
unless your web browser also supports X (and this is unlikely).
My main goal is open ooimpress, and control it to show next, previous
slide, esc, and full screen (F5 is hotkey for that).
How about converting the slideshow into Flash (IIRC, that's something that
ooimpress can do), and feeding the Flash out to the browser?
--
Lew Pitcher
Master Codewright & JOAT-in-training | Registered Linux User #112576
http://pitcher.digitalfreehold.ca/ | GPG public key available by request
---------- Slackware - Because I know what I'm doing. ------
.
- References:
- How to send a key event to another process?
- From: Mirxon
- How to send a key event to another process?
- Prev by Date: How to send a key event to another process?
- Next by Date: Re: How to send a key event to another process?
- Previous by thread: How to send a key event to another process?
- Next by thread: Re: How to send a key event to another process?
- Index(es):
Relevant Pages
|