KenoRosarioPH
Posts: 41
Joined: Wed Nov 18, 2015 1:51 pm

How will my button execute an lxterminal code on lazarus IDE

Fri Dec 04, 2015 2:59 pm

Good day forums! I would like to ask for help how will my button execute the command "arecord ...." on lxt terminal. I have no idea how to tag the command on the button. Thanks everyone! Have a great day
Attachments
Capture.JPG
Capture.JPG (18.27 KiB) Viewed 1289 times

gordon77
Posts: 5036
Joined: Sun Aug 05, 2012 3:12 pm

Re: How will my button execute an lxterminal code on lazarus

Fri Dec 04, 2015 3:06 pm

How do you produce the buttons ?

Heater
Posts: 15949
Joined: Tue Jul 17, 2012 3:02 pm

Re: How will my button execute an lxterminal code on lazarus

Fri Dec 04, 2015 3:11 pm

I thought pascal had a "system" function that would run commands for you. Or perhaps "exec". Goggle will finx it for you.
Memory in C++ is a leaky abstraction .

KenoRosarioPH
Posts: 41
Joined: Wed Nov 18, 2015 1:51 pm

Re: How will my button execute an lxterminal code on lazarus

Fri Dec 04, 2015 3:26 pm

gordon77 wrote:How do you produce the buttons ?
Lazarus IDE is capable of dragging and dropping of buttons on the gui.

KenoRosarioPH
Posts: 41
Joined: Wed Nov 18, 2015 1:51 pm

Re: How will my button execute an lxterminal code on lazarus

Fri Dec 04, 2015 3:29 pm

Heater wrote:I thought pascal had a "system" function that would run commands for you. Or perhaps "exec". Goggle will finx it for you.
I am new to programming and pascal have been a great initial step. Thanks to the keywords, Google will surely help me with this. Btw sir, have you tried building pascal program similar to my problem?

User avatar
topguy
Posts: 6491
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: How will my button execute an lxterminal code on lazarus

Fri Dec 04, 2015 3:30 pm

KenoRosarioPH wrote:
gordon77 wrote:How do you produce the buttons ?
Lazarus IDE is capable of dragging and dropping of buttons on the gui.
You realize that you force most of the people reading this thread to google "Lazarus IDE" just to figure out that its a IDE for FreePascal.

User avatar
hansotten
Posts: 341
Joined: Fri Jul 13, 2012 6:01 am
Contact: Website

Re: How will my button execute an lxterminal code on lazarus

Fri Dec 04, 2015 3:36 pm

Various solutions are available to execute an external program frpm within a Lazarus program.

This may help:

http://wiki.lazarus.freepascal.org/Exec ... l_Programs
Last edited by hansotten on Fri Dec 04, 2015 6:33 pm, edited 1 time in total.
http://duinorasp.hansotten.com for Raspberry Pi and Arduino and ESP8266
http://retro.hansotten.nl for retrocomputing with the 6502 cpu

KenoRosarioPH
Posts: 41
Joined: Wed Nov 18, 2015 1:51 pm

Re: How will my button execute an lxterminal code on lazarus

Fri Dec 04, 2015 4:27 pm

topguy wrote:
KenoRosarioPH wrote:
gordon77 wrote:How do you produce the buttons ?
Lazarus IDE is capable of dragging and dropping of buttons on the gui.
You realize that you force most of the people reading this thread to google "Lazarus IDE" just to figure out that its a IDE for FreePascal.
Apologies Sire! Thanks

KenoRosarioPH
Posts: 41
Joined: Wed Nov 18, 2015 1:51 pm

Re: How will my button execute an lxterminal code on lazarus

Fri Dec 04, 2015 4:27 pm

hansotten wrote:Various solutions are available to execute an external program form within a Lazarus program.

This may help:

http://wiki.lazarus.freepascal.org/Exec ... l_Programs
Great help Sir! Thanks :D :D :D :D :D

Return to “General discussion”