OpenFunscripter - a scripting tool - 3.2.0 release

See top menu: File → Export → Export active script.
Save it where you want it, then you have the .funscript file.

For more and detailed help, check the video tutorial series.