Our new official repo is on github
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases

.dll to Execute .exe .bat and possibly run command lines.

Place your requests for plugins here

Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo

Post Reply
Blaze89
Posts: 13
Joined: September 25th, 2007, 10:14 am

.dll to Execute .exe .bat and possibly run command lines.

Post by Blaze89 »

OK! What?

Forgive me if someone has already invented this, I promised I looked and did a search.
I'm looking for a dll or plugin to execute .exe's and .bat's.
I'm hoping to use it with the menu plugin, to, basically run an irrigation controller.
Thats right, I'm going to attempt to use LCD Smartie to control an embedded system.

I need to, via the menu, end an .exe and stop a removable disk, and having an option to shut it down would be nice. I know how to do all this with such a plugin, but so far the closest thing I have found is MORA's, ExecCmdLine, however I couldn't get it to work.
I'm not sure such a thing will be possible, at least with this version or via the menu, as I know how Smartie hates running a plugin in a plugin, but if anyone could help I would be very gratefull as it is the only thing stopping me so far.

Blaze.

limbo
Plugin Author
Posts: 1604
Joined: February 13th, 2005, 7:38 pm
Location: Athens - Greece
Contact:

Post by limbo »

Have checked the actions?

Blaze89
Posts: 13
Joined: September 25th, 2007, 10:14 am

Post by Blaze89 »

I've had a look in actions, and it appears not to be possible.
I need smartie to open an .exe or .bat when I go to an menu item.
Theres a $file command but thats for text files I think.

caesar
Forum Supporter
Posts: 734
Joined: October 15th, 2005, 10:39 am
Location: Romania
Contact:

Post by caesar »

Is "If __ then Exec[c:\autoexec.bat]" so hidden in the actions menu? ;)

Blaze89
Posts: 13
Joined: September 25th, 2007, 10:14 am

Post by Blaze89 »

I have "Execute[C:\autoexec.bat]", but where did you pull the "IF" command from?

Blaze89
Posts: 13
Joined: September 25th, 2007, 10:14 am

Post by Blaze89 »

Well I didn't know that smartie had a built in IF command, but it works.
Thank you for your help, limbo & caesar, I should be able to make some progress now.

If anyone wants to know how I go with this, I'll post up progress/results ect. For the record, I am working on a home automation system/irrigation controller.

Again, many thanks, Blaze.

Post Reply