Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Save config tree when in python script editor.

Got a good idea? You can suggest new features here.
Post Reply
thug
Plugin Developer
Posts: 64
Joined: Sat Jul 22, 2006 2:37 pm
Location: Australia

Save config tree when in python script editor.

Post by thug »

I more often than not work in the python script editor to create scripts and test big code F4 then F5, sometimes EG crashes out on me because i get some sort of coding error or something, and I lose my entire script :cry:, other than when I click across to EG's main window and press CTRL+S (to save the config tree) then click back to the script window.

A very useful feature would be to have a save (config tree) (CTRL+S) inside the python script editor.

What are my chances? :oops:
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster »

I don't like the idea that much. But I might consider it. Possibly through a PythonScript that patches EG at runtime.

If you really do huge coding, I would suggest to use an external editor and execute an external script file through "execfile" inside a PythonScript action. You can then assign some event to it and use a tool chain like:
1. Save external file
2. execute EventGhost.exe (even if it already runs to bring it to front)
3. execute EventGhost.exe -e MyScriptEvent (to trigger your PythonScript, that executes your external script file through "execfile")
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
Post Reply