IDE External Tools and variables PB_TOOL_XXXXX [resolved]
Posted: Fri Aug 15, 2025 4:28 pm
Hello,
in the documentation it is noted regarding external tools:
The IDE provides additional information for tools in the form of environment variables. They can be easily read by the tool using Process library commands.
Here is a list of variables provided. Note that those that provide information about the file being edited are not accessible for tools running when starting or closing the IDE.
under Windows PB 6.21(x64)
anyone have an idea? is this no longer relevant? is there another way to do it?
thanks in advance
in the documentation it is noted regarding external tools:
The IDE provides additional information for tools in the form of environment variables. They can be easily read by the tool using Process library commands.
Here is a list of variables provided. Note that those that provide information about the file being edited are not accessible for tools running when starting or closing the IDE.
but I don't get any back by doing itPB_TOOL_IDE - Chemin complet et nom de l'exécutable de l'IDE
PB_TOOL_Compiler - Chemin complet et nom de l'exécutable du compilateur
PB_TOOL_Preferences - Chemin complet et nom du fichier des préférences de l'IDE
PB_TOOL_Project - Chemin complet et le nom du projet actuellement ouvert (le cas échéant)
PB_TOOL_Language - Langue actuellement utilisée dans l'IDE
PB_TOOL_FileList - Liste de tous les fichiers ouverts dans l'IDE, séparés par un Chr(10)
PB_TOOL_Debugger - Ces variables fournissent les paramètres correspondant à ceux de la fenêtre d'options de compilation
PB_TOOL_InlineASM pour le source en cours. Elles sont à 1 si l'option
PB_TOOL_Unicode est activée, à 0 sinon.
PB_TOOL_Thread
PB_TOOL_XPSkin
PB_TOOL_OnError
PB_TOOL_SubSystem - Contenu du champ Bibliothèque Sous-système dans les options de compilation
PB_TOOL_Executable - Identique au mot-clef %COMPILEFILE pour la ligne de commande
PB_TOOL_Cursor - Identique au mot-clef %CURSOR pour la ligne de commande
PB_TOOL_Selection - Identique au mot-clef %SELECTION pour la ligne de commande
PB_TOOL_Word - Identique au mot-clef %WORD pour la ligne de commande
PB_TOOL_MainWindow - Identifiant système (Handle) de la fenêtre principale de l'IDE
PB_TOOL_Scintilla - Identifiant système (Handle) du composant d'édition de code Scintilla pour le source en cours
Code: Select all
If ExamineEnvironmentVariables()
While NextEnvironmentVariable()
Debug (EnvironmentVariableName() + " = " + EnvironmentVariableValue())
Wend
EndIf
anyone have an idea? is this no longer relevant? is there another way to do it?
thanks in advance