Thanks, but finding variables in Autohotkey by syntax is hard. Screenshot:https://1drv.ms/u/s!AtSPtQwhN85bgjhoW479ISylXZ7i?e=WfI499 Following the rules a variable should be declared by giving it a value. This usually should be done by any := statement, but also variables came from function parameters and from the old legacy statements (in the example above the "stringreplace" command initializes the "keyname" variable).
There is a #WARN directive in AHK the gives error messages for every variable without initial declaration. According the forum site (https://www.autohotkey.com/boards/) there are some other AHK programmers that use PSPad. For me the Keywords3 section is just a good place to declare new valid variable names for the individual ahk file. Automatic recognition of variable names from some initialization statements wouldn't find misspelled names like: this_var := 351 increase_value := 3 thisvar := increase_value + MIN(this_var,400) -- <https://forum.pspad.com/read.php?2,74256,74282> PSPad freeware editor https://www.pspad.com