Uw opmerkingen

Hi, that's what I meant:
- it will make a snapshot on button press in JS window.
- it will make a temporary file automatically or when you leave the JS window + every minute.

So the name would be (~projectname.scriptname.js.temp)
yes, but it is easier to make a snapshot of all the scripts in single file. Many users create more then 10, 20, 30... script files, and the separated .temp files will not look nice.

If we make a backups and .temp files, you'll not need a global Save in JS window. Your script will be safe.
Global Save will be needed only when you want to close the editor (or GUI) at all.

PS: you don't need to press Save when start Emulator. It applies the last changes automatically.

Ok, so we have a
request and a vision of future changes, so we are able to mark it as Idea (I'll do it with this topic) and vote it.
Jackie, the script is a part of project, but we are not agree to make this button works as a global Save button.

Our vision of changes for the good work of this functionality:

Change the "Save" button in [JS] window to "Snapshot" button.

It will make a script copy in "Backup" folder (name-date-time.js).
When you press [x], [OK], [Snapshot] (and every minute, for exampe) the Editor automaticly makes a temporary file of all the scripts in UI (~projectname.js.temp) on the same level where project saved.

So, the temporary file recovers your script if your PC turnes off without project saving (incorrect closing).
The backup file (snapshot) makes you able to recover the script from -date and -time.

When you close [JS] window and closing Editor by the normal way, it asks: [Save Project] > [Yes] > all the project saved.

What do you think about it?

Hi Roger. On your screenshot it is cutted by the Start menu. Try to minimize and maximize it again.


Евгений, скрипт не может остановить экшены на кнопках, он работает без пересечения с системой экшенов.
Так что в сущействующей системе останавливать экшн скриптом - нельзя.

Как сказал Дмитрий, вариант один - слушать нажатия на кнопки и выполнять заранее заданный в скрипте набор действий, который соответствует этим кнопкам.
Вручную создавать все слушатели не нужно, есть методы PopupCount и ItemCount, которые могут пробежаться по проекту и вернуть имена страниц и итемов на страницах.
Более того, можно делать так: page.GetPopup(i).Name т.е. возвращать только те попапы, которые сейчас открыты на странице. Таким образом, число слушателей резко уменьшается.
Конечно, это не отменяет того, что сами команды переедут из экшенов в скриптовую систему, но этого уже никак не избежать.