#895 Button in Tools menu available at all time

Won't_Implement
open
Neil Hodgson
SciTE (230)
4
2012-02-02
2012-02-02
Mega
No

Hi,
is it possible to create an addition to the tools menu, which is available even if a script is running.
I can add scripts and shortcuts to the tools menu like this in the SciteUSer.properties
# 36 OrganizeIncludes
#command.36.*.au3="$(autoit3dir)\beta\autoit3.exe" "$(SciteDefaultHome)\OrganizeIncludes\OI_1.0.0.50.au3" "$(FilePath)"
command.36.*.au3="c:\Programme\Autoit3\autoit3.exe" "c:\Programme\Autoit3\Scite\OrganizeIncludes\OI_1.0.0.56.au3" "$(FilePath)"
command.name.36.*.au3=OrganizeIncludes
command.save.before.36.*.au3=1
command.is.filter.36.*.au3=1
command.shortcut.36.*.au3=Ctrl+Shift+Alt+I

But I would like to add a shortcut for a command which is accessable even if another Script (e.g. Autoitscript) is currently running.
The same as "stop executing".
Then it would be possible to create a "Restart script" option and that would be very nice for testing.
Thanks
Mega

Discussion

  • Mega
    Mega
    2012-02-02

    • assigned_to: nobody --> nyamatongwe
    • priority: 5 --> 4
     
  • Neil Hodgson
    Neil Hodgson
    2012-02-02

    • milestone: --> Won't_Implement
     
  • Neil Hodgson
    Neil Hodgson
    2012-02-02

    SciTE only supports running a single program at a time and it would add considerable complexity to allow multiple running programs. You can, however, run a program that detaches control from SciTE. On Windows, it may be possible to use the "start" command to run a program detached.

     
  • Mega
    Mega
    2012-02-03

    Firstly, thanks for the fast reply. Why would that add complexity to Scite? All you need to add is the possibility to run the "watcher" which should be an external exe in my case AND the normal script I'm curently developing. Scite has no need to control the "watcher" program. That programm needs to care of its own
    a) If the shortcut for "restart" is pressed
    then the watcher ends the currently running script which is Autoit.exe and autoitwrapper
    and starts the script and another watcher again and then terminates itself.
    b) the script ends (from whatever - stop executing or normal Exit command)
    then the watcher terminates itself.

    Normally, you just start the script.
    Now you would add another option to start the script and another external script
    So, it is more or less an additional start the script option/feature (with a watcher)
    I'll have a look, whether I can change the autoitwrapper from Jos van Zande.