Re: [fpc-pascal] Adding command line parameter to GUI application?

2025-02-25 Thread Bo Berglund via fpc-pascal
On Tue, 25 Feb 2025 22:47:29 +0100, Tomas Hajny via fpc-pascal wrote: >On 2025-02-25 22:09, Jean SUZINEAU via fpc-pascal wrote: >> I haven't done it recently but basically on Windows you have keys in >> the registry under HKEY_CLASSES_ROOT to associate your program with a >> specific file extensi

Re: [fpc-pascal] Adding command line parameter to GUI application?

2025-02-25 Thread Tomas Hajny via fpc-pascal
On 2025-02-25 22:09, Jean SUZINEAU via fpc-pascal wrote: I haven't done it recently but basically on Windows you have keys in the registry under HKEY_CLASSES_ROOT to associate your program with a specific file extension. You can view the registry with regedit. . . I'd add that you can define

Re: [fpc-pascal] Adding command line parameter to GUI application?

2025-02-25 Thread Jean SUZINEAU via fpc-pascal
I haven't done it recently but basically on Windows you have keys in the registry under HKEY_CLASSES_ROOT to associate your program with a specific file extension. You can view the registry with regedit. Your application is called with the filename as parameter on the command line.

Re: [fpc-pascal] Adding command line parameter to GUI application?

2025-02-25 Thread Luca Olivetti via fpc-pascal
El 25/2/25 a les 21:28, Bo Berglund via fpc-pascal ha escrit: I want the program to load a video file if it appears in the command line so it can be immediately played rather than having to click the OpenFile button and navigate to the video and select it. Any ideas, suggestions, links? https

[fpc-pascal] Adding command line parameter to GUI application?

2025-02-25 Thread Bo Berglund via fpc-pascal
I have created a Video Player application to be used in order to create the ffmpeg command to edit a video file according to cut points evaluated inside the program. I have used the PasLibVLC library for the video handling. But I have found that it is also useful as a regular video player where I