Error 403 from Google Calendar? Upgrade to the new Google Calendar support. See here for details. close
Welcome, Guest
Please Login or Register.    Lost Password?

Run an app from a Lua function
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Run an app from a Lua function
#15087
Run an app from a Lua function 3 Years, 7 Months ago  
I need to know how can I run an executable from a lua function (ex. notepad.exe). I tried with Rainlendar_PlaySound but nothing happens.
Any idea?
instigator
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#15089
Re: Run an app from a Lua function 3 Years, 7 Months ago  
you can use Rainlendar_Execute("FullPath")

Note: the "\" must with "\\"
anoob
Platinum Boarder
Posts: 508
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: TaiChung, Taiwan, R.O.C. Birthday: 02/12
The administrator has disabled public write access.
I couldn't speak English! This skin released to Customize.org(Do you want it? Click Picture) Please contact me if interested: jhg5702@gmail.com
 
#15104
Re: Run an app from a Lua function 3 Years, 7 Months ago  
anoob wrote:
you can use Rainlendar_Execute("FullPath")

Note: the "\" must with "\\"



Sweet.
And can I run the app with parameters?
Because, waht I'm gonna to do is run this command:
nircmd.exe speak text "The text to read"
and for "The text to read" I mean the task or the event. Now, This is possible just send it #TEXT# as parameter. But how can I work with this in the LUA function?
instigator
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2011/04/24 17:22 By instigator.
The administrator has disabled public write access.
 
#15115
Re: Run an app from a Lua function 3 Years, 7 Months ago  
you can try:
os.execute('Full_Path\\nircmd.exe speak text_' .. ' " ' .. #TEXT# .. ' " ')
(p.s the _ is a space)
But, it will display a command-window when running, i don't know how to hide the window.
anoob
Platinum Boarder
Posts: 508
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: TaiChung, Taiwan, R.O.C. Birthday: 02/12
The administrator has disabled public write access.
I couldn't speak English! This skin released to Customize.org(Do you want it? Click Picture) Please contact me if interested: jhg5702@gmail.com
 
Go to topPage: 1
get the latest posts directly to your desktop