Language

Sat32's Avatar Topic Author
User User
  • Posts: 133
  • Thanks: 5

Language

2 years 7 months ago
#1114
Hello,
I've been using using notepad++ to work on macro's and stuff.
Is there any chance we could get "User Defined Language template"
for myserver? right now it's not really needed. But as things start to get more
refined and complex with our configurations it might a great help.
Thanks

What does everyone else think, for or against?

Please Log in or Create an account to join the conversation.

andrew's Avatar
User User
  • Posts: 341
  • Thanks: 28

Re: Language

2 years 7 months ago
#1117
I'd vote for changing the embedded scripting language to something standard like Python, C# or JavaScript but I know that isn't going to happen.

Andrew

Please Log in or Create an account to join the conversation.

davep's Avatar
Admin Admin
  • Posts: 371
  • Thanks: 98

Re: Language

2 years 6 months ago
#1122
Server macros have to be written using native myServer command syntax. While there are hundreds of server commands in day to day use you really only have to master a handful of them.

You are certainly free to write external scripts in other languages of your choice to do things. The server supports a Run|<something> command just for that.
The following user(s) said Thank You: andrew

Please Log in or Create an account to join the conversation.

andrew's Avatar
User User
  • Posts: 341
  • Thanks: 28

Re: Language

2 years 6 months ago
#1128
Server macros have to be written using native myServer command syntax. While there are hundreds of server commands in day to day use you really only have to master a handful of them.

You are certainly free to write external scripts in other languages of your choice to do things. The server supports a Run|<something> command just for that.
I was being facetious but that's really useful to know, thanks. And you can call myServer commands from an 'outside' script by GETting a URL. So some event in myServer could trigger something complex in an external script which in turn calls myServer stuff (as long as you're careful not to get into a loop). Nifty.

Andrew

Please Log in or Create an account to join the conversation.

davep's Avatar
Admin Admin
  • Posts: 371
  • Thanks: 98

Re: Language

2 years 6 months ago
#1134
"With great power comes great responsibility" ...Peter Parker

Please Log in or Create an account to join the conversation.

Sat32's Avatar Topic Author
User User
  • Posts: 133
  • Thanks: 5

Re: Language

2 years 6 months ago
#1137
npp-user-manual.org/docs/programing-languages/

It's just an editor but if the language was defined it highlights comment tags and supports nesting commands and point out errors in your syntax.

The C or C++ language highlights the commit tags in green making it a little easier to read.
As I said right now might not be needed but as macro start to include conditional commands setting variables it might be helpful.

What I mean is copying your macro into the notepad++ editor then pasting it back into the
myserver editor after your done editing

Thanks

Please Log in or Create an account to join the conversation.

Time to create page: 0.435 seconds