View Single Post
Old 03-22-2017, 09:05 AM   #22
Airal
Banned
 
Join Date: Nov 2015
Posts: 406
Default

Thanks. Could you had the ability for it to execute a simple script at startup automatically. e.g.,

iReaScriptStartup.lua

(if it exists in the scripts or lua dir it is executed automatically)

Should be simple to add(load file then parse it line by line as if the user typed it in)

By having that and the the history, it should work well. It would still require one to reload the script but it won't require a complete restart of the entire process like it does now.

Also, it would be nice if the `esc` key would clear the current line. It seems that the graphics window also loses focus when pasting which requires one to grab the mouse and reselect it... pretty annoying ;. Also, when starting the script for the first time, it loses focus.

It would be nice to do simple expressions.

e.g., one can't compute 1/3

I suppose this is because you are simply eval the expression as is. Maybe add a test for something like an expression and if the line seems like an expression(doesn't start with local, =, alpha, etc) then prepend a `local val =` to it then report the `value of val`. If it fails try executing the line directly(or vice versa).

Last edited by Airal; 03-22-2017 at 03:37 PM.
Airal is offline   Reply With Quote