M
Mirxon
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).
Server runs another program (ooimpress, open office ppt), and
translate the commands from client to a key event, and send it to
child process.
For example.
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".
Now, I need to send F5, ESC, char n, and char p. and
I open the child process by using pipe (popen), and I send (fputc) the
command key to the pipe.......
But I cannot get the correct result......The ppt doesn't respond
anything......
My question is,
1, if I can implement this under pipe, how should I do,
2, if I cannot implement this under pipe, how should I do.
My main goal is open ooimpress, and control it to show next, previous
slide, esc, and full screen (F5 is hotkey for that).
Thanks a lot!!
Patrick
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).
Server runs another program (ooimpress, open office ppt), and
translate the commands from client to a key event, and send it to
child process.
For example.
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".
Now, I need to send F5, ESC, char n, and char p. and
I open the child process by using pipe (popen), and I send (fputc) the
command key to the pipe.......
But I cannot get the correct result......The ppt doesn't respond
anything......
My question is,
1, if I can implement this under pipe, how should I do,
2, if I cannot implement this under pipe, how should I do.
My main goal is open ooimpress, and control it to show next, previous
slide, esc, and full screen (F5 is hotkey for that).
Thanks a lot!!
Patrick