LiveCode to build GUI for a command line tool

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
lithium630
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 23
Joined: Tue Mar 12, 2013 12:28 am

LiveCode to build GUI for a command line tool

Post by lithium630 »

Can LiveCode be used to build a GUI for a Windows command line tool? I would like to make a simple GUI for ffmpeg for the commands I use frequently. I have tried other GUI's but none do exactly what I'm looking for. I was just wondering if LiveCode is an option for that. I haven't seen anything similar.
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: LiveCode to build GUI for a command line tool

Post by FourthWorld »

See the shell function in the Dictionary. For Windows, see also the hideConsoleWindows global property.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
lithium630
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 23
Joined: Tue Mar 12, 2013 12:28 am

Re: LiveCode to build GUI for a command line tool

Post by lithium630 »

Thank you very much.
MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

Re: LiveCode to build GUI for a command line tool

Post by MaxV »

Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: LiveCode to build GUI for a command line tool

Post by FourthWorld »

Here's a fun project using LiveCode (then called "MetaCard") to query /proc on Linux to make a GUI top:
http://www.linuxjournal.com/article/2110
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
capellan
Posts: 654
Joined: Wed Aug 15, 2007 11:09 pm

Re: LiveCode to build GUI for a command line tool

Post by capellan »

Now that Richard mentions Metacard, take a look at this stack
(published by Scott Raney) that shows some examples of
launching and calling an external process.

Use LC Project browser to visit the card with these handlers or
just click the right arrow until this card appears.

Almost 20 years later, this stack and most of these handlers
works fine in Livecode running on Linux. :D

https://dl.dropboxusercontent.com/u/383 ... s.livecode
Post Reply