I don't have CodeTyphon on hand, but I'll tell you tonight!
It needs to be done in the part where you see the console in CodeTyphon,
Simon.
TeamViewer and console management
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
All I can tell you for now is that you shouldn't manually modify actteamviewer.
Let the code typhoon automatically create or modify this text. I wanted to do the same thing at first,
Simon.
Let the code typhoon automatically create or modify this text. I wanted to do the same thing at first,
Simon.
-
Omahaddict
- Messages: 15
- Registration: Apr 20, 2016 - 3:15 p.m.
Well, I can't seem to modify the context menu; neither adding a new entry nor modifying the "Connect via VNC" entry.
If a kind soul (let's be crazy, a developer who happens to be passing by?
) would be willing to explain the procedure step by step...
Thank you.
If a kind soul (let's be crazy, a developer who happens to be passing by?
Thank you.
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
Okay, here's a super quick way to modify the French version (it's not the cleanest method, but it works):
Edit your file:
c:\wapt\languages\waptconsole.fr.po
https://github.com/tranquilit/WAPT/blob ... r.po#L1084
And change the text
"Simon"
Edit your file:
c:\wapt\languages\waptconsole.fr.po
https://github.com/tranquilit/WAPT/blob ... r.po#L1084
And change the text
"Simon"
-
Omahaddict
- Messages: 15
- Registration: Apr 20, 2016 - 3:15 p.m.
Perfect, it works!
Thanks for your help, Simon.
So, if we want to add entries to the context menu, it's in the uwaptconsole.pas file, and the menu title and icon are in the file c:\wapt\languages\waptconsole.fr.po?
Thanks for your help, Simon.
So, if we want to add entries to the context menu, it's in the uwaptconsole.pas file, and the menu title and icon are in the file c:\wapt\languages\waptconsole.fr.po?
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
If I'm not mistaken, in Code Typhon, if you want to add an entry, here's what I did from memory:
In the Window tab, then WaptConsole:
You create an action in Code Typhon.
You create a button that you link to the action.
You can choose an image...
In the case of the VNC button, there's language support (but it's not mandatory).
If you carefully explore how it's currently implemented, you should be able to manage. I know absolutely nothing about Pascal, etc., etc., but by reviewing the work that's already been done and searching a bit online, I finally found the solution and succeeded.
It's doable.
In the Window tab, then WaptConsole:
You create an action in Code Typhon.
You create a button that you link to the action.
You can choose an image...
In the case of the VNC button, there's language support (but it's not mandatory).
If you carefully explore how it's currently implemented, you should be able to manage. I know absolutely nothing about Pascal, etc., etc., but by reviewing the work that's already been done and searching a bit online, I finally found the solution and succeeded.
It's doable.
An interesting solution to this problem would be to add the concept of Python plugins to the console (this would avoid having to recompile...)
. We define a directory to place the plugins, which would be simple Python files
. When the console starts, we load Python code. We could load these plugins, which would have a declarative section like this:
- applies to a host, a set of hosts, a package or packages, listed software... (determines where the action will be added)
- label of the action to add to the relevant context menu
- Python code to execute (receives as a parameter the list of objects or the selected or focused object).
Simple to implement... something to consider for a future version...
. We define a directory to place the plugins, which would be simple Python files
. When the console starts, we load Python code. We could load these plugins, which would have a declarative section like this:
- applies to a host, a set of hosts, a package or packages, listed software... (determines where the action will be added)
- label of the action to add to the relevant context menu
- Python code to execute (receives as a parameter the list of objects or the selected or focused object).
Simple to implement... something to consider for a future version...
Tranquil IT
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
Adding a plugin could also be useful for waptserver and waptservice, allowing the addition of functions without modifying the original waptserver.py file on the server and the waptservice.py file on the clients. This would mean no problems during updates.
I specifically wanted to add a batch command execution function to the console (a bit like in italc).
I managed to do this by encoding the batch lines in base64 and thus passing them as JSON.
But then, I suppose the commands would need to be signed for security reasons?
Or should the function be disabled if the "verify_cert" parameter is false?
I'd be interested to hear your opinion; what do you think?
I specifically wanted to add a batch command execution function to the console (a bit like in italc).
I managed to do this by encoding the batch lines in base64 and thus passing them as JSON.
But then, I suppose the commands would need to be signed for security reasons?
Or should the function be disabled if the "verify_cert" parameter is false?
I'd be interested to hear your opinion; what do you think?
