You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: UserManual.md
+33-1Lines changed: 33 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -706,6 +706,9 @@ The application support multiple types of actions. The list of each specific act
706
706
707
707
The <exec> element is used to launch an application. The <exec> element must be added under the <actions> element.
708
708
709
+
**Note:**
710
+
When a process is created, ShellAnything will set property `process.id` to the process id of the new launched application.
711
+
709
712
The <exec> elements have the following attributes:
710
713
711
714
@@ -754,7 +757,7 @@ For example, the following launch `cmd.exe` and list files and directories recur
754
757
```
755
758
756
759
**Note:**
757
-
It is recommanded to use the `wait` attribute with the `timeout` attribute. Without a _timeout_ value, ShellAnything will wait indefinitely until the launched process exits. This can result in system instability. If the launced process freezes, pauses or never exists, it will lock _ShellAnything_ and _File Explorer_.
760
+
It is recommanded to use the `wait` attribute with the `timeout` attribute. Without a _timeout_ value, ShellAnything will wait indefinitely until the launched process exits. This can result in system instability. If the launced process freezes, pauses or never exists, it will lock _ShellAnything_ and _File Explorer_ forever.
758
761
759
762
When combined with other elements, the `wait` attribute allows advanced use case.
760
763
@@ -773,6 +776,7 @@ Tell ShellAnything to wait until the search is complete before proceeding to the
773
776
774
777
775
778
779
+
776
780
#### timeout attribute: ####
777
781
778
782
The `timeout` attribute defines the maximum time to wait in seconds with the `wait` attribute. If the running process fails to exit before the _timeout_ value, a warning is logged and the next actions of the menu are not executed. The value must be numerical. The attribute is optional.
@@ -784,6 +788,34 @@ For example, the following launch `cmd.exe` and list files and directories recur
784
788
785
789
786
790
791
+
#### console attribute: ####
792
+
793
+
The `console` attribute defines how we should display the main window of the launched application. The attribute allow console applications to be launched without a console. The feature is particularly useful for running background tasks. The attribute must be set to a value that evaluates to `false` to enable the feature. See [istrue attribute](https://github.com/end2endzone/ShellAnything/blob/master/UserManual.md#istrue-attribute) or [isfalse attribute](https://github.com/end2endzone/ShellAnything/blob/master/UserManual.md#isfalse-attribute) logic for details. The attribute is optional.
794
+
795
+
For example, the following will launch ImageMagick `magick.exe` command line application to convert webp images to jpg :
The conversion to JPEG format will be performed without showing a console and no window flickering will be visible.
800
+
801
+
**Note:**
802
+
* The _console_ attribute may also affects windowed applications and may hide their main graphical user interface.
803
+
* Users must be careful when launching background applications (hidden applications). A background application should not wait for user input or it may never complete/terminate gracefully. Background tasks can also cause system instability if the `wait` attribute is also set and the background process freezes, pauses or never exists because it will lock _ShellAnything_ and _File Explorer_ forever.
804
+
805
+
806
+
807
+
#### pid attribute: ####
808
+
809
+
The `pid` attribute defines the name of the property to set with the new launch process id.
810
+
811
+
For example, the following will sets the property `mspaint.process.id` to the process id of `mspaint.exe` :
The target property is left untouched if the process cannot be launched.
817
+
818
+
787
819
#### verb attribute: ####
788
820
789
821
The `verb` attribute defines special directives on how to execute a file or launching the application. For example, the verb `open` or `edit` allows the user to open a document using the associated application. The attribute is optional.
// Check if the regitering action is declared by the plugin xml
559
559
if (!plugin->SupportAction(name))
560
560
{
561
-
sa_logging_print_format(SA_LOG_LEVEL_ERROR, SA_API_LOG_IDDENTIFIER, "Failed to register action '%s' event function. The plugin '%s' does not report this condition.", name, plugin->GetPath().c_str());
561
+
sa_logging_print_format(SA_LOG_LEVEL_ERROR, SA_API_LOG_IDDENTIFIER, "Failed to register action '%s' event function. The plugin '%s' does not report this action.", name, plugin->GetPath().c_str());
0 commit comments