GNScript history

6.10.2025 fixed debugger window: print operations did not show text in output window during debugging with debugger dialog


16.9.2025 added gnscript option -maxloopcount=nnn    to allow a higher number of loops till assuming endless loop
16.9.2025 added gnscript option -maxrecursions=nnn   to allow a higher number of nested function calls till assuming endless recursion

16.9.2025 added gnscript option -usegnscriptdebugger=yes/no    to choose between debugger dialog or console debugger (default is yes), console debugger requires entering debugger commands on the console e.g. p myvar
 
13.8.2025 added getdefaultprofilepath()
12.8.2025 added deletefilelater(path)

28.3.2025 added debugger window when using -debug option

27.3.2025 fixed like(text, pattern)  function when text contained * or ? or [ or #

10.3.2025   fixed copybinaryfile when 0 bytes are to copy (was treated as copy failed but must copy whole file), create empty destination file if nothing to copy.

14.2.2025 exception error message sometimes contained filename + position twice

27.12.2024 add keyword next alternative to continue
27.12.2024 add keyword last alternative to break

10.12.2024 add function getfunctionargs() 
10.12.2024 added function getargs()
10.12.2024 added function getglobalvariables()
10.12.2024 bug fixed aborted by user => do not print twice (one in debugger, and one as result)
9.12.2024 added time functions 

28.11.2024 bug fixed:  getarg("param1") must return the first argument parmeter and not the script filename
28.11.2024 getarg("scriptfilename") returns the script name parameter

22.10.2024 added shellexecute_commandline(cmdline) and shellexecute_command(cmdline)

12.9.2024 bug fixed: multiline strings were not correctly stored in some case

6.9.2024 added match2 for regular expression matching that has options parameter 
6.9.2024 added index and rindex with offset

12.7.2024 added date functions and date conversion between date string and date structure

23.4.2024 added debugger printvariables
23.4.2024 added debugger printcallstack

19.4.2024 bug fixed: when auto var then search variable in all scopes
19.4.2024 added getinputlinebox(prompt, caption, &input)

18.4.2024 added shortcut(text, maxlen)
18.4.2024 added shortmiddlecut(text, maxlen)

16.4.2024 bug fixed: debuginfo of structure  lists max 10 field names => for 11 field names it did not add ... or last field name

12.4.2024 added gnscriptexecute(scriptfile)

6.4.2024 bug fixed:   (int) or (long) 0xhhhh is allowed to calculate decimal number


10.12.2024 prevent "aborted by user" that message occurs twice during exception handling

10.12.2024 set local variable with name of function inside function that contains the function parameters that are a variable list at end (e.g. function myfunc(a, b, ...)), sets local variables a, b, myfunc

10.12.2024 added getfunctionargs() function

10.12.2024 added getargs() function 

10.12.2024 added getglobalvariables() function

9.12.2024 added time functions

28.11.2024 bug fixed:  getarg("param1") must return the first argument parmeter and not the script filename, getarg("scriptfilename") returns the script name parameter

22.10.2024 added shellexecute_commandline(cmdline) and shellexecute_command(cmdline)

6.9.2024 added match2(text,regex, options,...) for regular expression matching with options

12.7.2024 added date functions

11.8.2023 added gnscriptdemo win32 dialogue application for testing gnscript commands

10.8.2023 bug fixed  beep() with no arguments asked for a string parameter

22.7.2023 added gnscript version to documentation

22.7.2023 some functions were missing in documentation

19.7.2023 added savepicture   (for jpg, gif, tiff,png, bmp ...), added loadpicture 

15.6.2023 added:  when unknown function is called error message also suggests similar functions 

14.6.2023 fixed: do not limit foreach loop in collections

30.5.2023 added: error message when called function did not exist only contained the function name, now added function prototype

24.5.2023 bug fixed: some function calls had no error message when function did not exist

7.3.2023 added unescapestring(text), added unquotestring(text)

20.9.2022 bug fixed: variable change command did often not break when variable was changed (e.g. postfix++, function l-value argument)

19.9.2022 bug fixed: crash when debugging and a print() command followed e.g. break at line with condition

10.9.2022 debugger list command improved: list command in debugger remembers end of last shown list so that another list command shows next lines. When breaking then start again with the new position


20.8.2022 fixed: __FILE__() and __FOLDER__() return full path of source file and not only the name of the file

16.8.2022 added functions parsejson and createjson 

2.8.2022 bug fixed  when error occurs in getting a not existing structure field then no error message was shown

14.6.2022 memory leak fixed in function definitions

5.5.2022 added namespace modifier for variables and function names
    syntax   [::][namespace::]*identifier  e.g. package::subpackage::variablename,    use :: at beginning to express that the variable or function must be a global variable

17.3.2022 added parseintrangelist(values), splitwords(text), splitwords(text,delimitercharacters)

14.2.2022 bug fixed random(100000) did only produce values 0..32676 => make higher values

17.1.2022 bug fixed: sort() behavior has changed => did not sort first numeric and then alpha, added: sortalphabetic

26.12.2021 added setclipboardtext(text), getclipboardtext()

28.7.2021 added createfilebackup(srcpath), createfilebackup(srcpath, destfolder), isbackupfilename(srcpath)

3.5.2021 added gnscriptlibrary that most variables and functions can be used by dll extensions


29.4.2021 added added setlibrarypath(folder,...)

20.4.2021 added fill(text, pos, size, filltext)

19.4.2021 added openfilesize, openfilechangeize

10.3.2021 added gnscript testsuite with many demo programs 

3.2.2021 added profiler 

29.5.2020 added unit tests for self testing (gnscript -tests)

6.5.2020 used gnscript for gnmidiscript extension (modify or analyse midi files by script)

3.5.2020 added debugger

27.3.2020 gnscript project started
