This App is No Longer Maintained. Visit the Replacement at StrokesPlus.net

StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | Active Topics
Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 About
 Did you know...
 DYK: Running Lua Files
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Rob

USA
2615 Posts

Posted - 06/12/2012 :  15:54:54  Show Profile  Visit Rob's Homepage
Did you know...

You can execute a file containing Lua code from an action via the built-in dofile() Lua function.

For example, you could have a large, complicated Lua script stored in MyCrazyBig.lua that you prefer to work with in robust text editor, but call from S+. All you'd need to add to your action script in S+ is:
dofile("MyCrazyBig.lua")
Of course, the above would assume the file is in the current application path (generally along side of StrokesPlus.exe); you could specify the full path if needed (remembering to escape \'s...though may not be necessary).

Every time you executed the gesture, the code in MyCrazyBig.lua would be sent to the Lua processor and run.


breakcore

Russia
74 Posts

Posted - 01/04/2013 :  04:32:22  Show Profile
This helps a lot!
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000