Welcome, Guest
Please Login or Register.    Lost Password?

using lua
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: using lua
#1661
using lua 7 Years, 7 Months ago  
Hi,

I'm intresting in using lue scripts in my own skin.
Can I use
Code:

os.execute(command)
? Maybe in future?
Or there is other way to call commmand?
driutheman
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1689
Re:using lua 7 Years, 7 Months ago  
Yes, you can. Or well, you probably cannot call the lua functions directly but you can create a new function for it. Something like this:

Code:

function Execute(program)
  os.execute(program)
end



There are few problems with this though. Lua uses system()-call to execute the command which brings up the command prompt. Other problem is that it will also wait until the application quits which makes Rainlendar to hang. Though running applications with "start" helps with the latter case.

Code:

action="Execute(start Notepad.exe)"
Rainy
Moderator
Posts: 5940
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
get the latest posts directly to your desktop