HI:
I use OMXplayer to show videos on a Raspberry PI. I command the player using the following piece of program.
var
charac : String
Proceso: TProcess
begin
Proceso:= TProcess.create (nil);
Proceso.CommandLine := 'omxplayer '+ PendriveName +'/Videos/vid.flv';
Proceso.Options:=Proceso.Options+[poUsePipes];
Proceso.Execute;
charac:='p';
If Proceso.Running then Proceso.Input.Write(charac[1], length(charac));
I use a remote control instead of a keyboard. I have no problem to send characters (as 'p', 'q', '+', etc) to the player to command it. But I have no idea how should I send the following "characters" :
[LEFT ARROW]
[RIGHT ARROW]
[UP ARROW]
[DOWN ARROW]
Lazarus 1.7 / FPC 3.0.0 / arm-linux-gtk2