Page 2 of 2
Re: TeamViewer and management from the console
Published: April 28, 2016 - 11:40 AM
by sfonteneau
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.
Re: TeamViewer and management from the console
Published: April 28, 2016 - 12:09 PM
by sfonteneau
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.
Re: TeamViewer and management from the console
Published: May 3, 2016 - 3:56 PM
by Omahaddict
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.
Re: TeamViewer and management from the console
Published: May 3, 2016 - 5:51 PM
by sfonteneau
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"
Re: TeamViewer and management from the console
Published: May 4, 2016 - 10:06 AM
by Omahaddict
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?
Re: TeamViewer and management from the console
Published: May 4, 2016 - 11:28
by sfonteneau
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.
Re: TeamViewer and management from the console
Published: May 4, 2016 - 7:19 PM
by htouvet
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...
Re: TeamViewer and management from the console
Published: May 4, 2016 - 11:33 PM
by sfonteneau
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?