Language

More
2 years 5 months ago #1139 by andrew
Replied by andrew on topic Language
I've made a start but I'm not an expert at defining NP++ UDLs and I don't know if the system will be able to cope with myServer macros unusual structure.

 

File Attachment:

File Name: userDefineLang.zip
File Size:902 B


The .xml file goes in C:\Users\[username]\AppData\Roaming\Notepad++

Andrew

Please Log in to join the conversation.

More
2 years 5 months ago - 2 years 5 months ago #1141 by Sat32
Replied by Sat32 on topic Language

 I've made a start but I'm not an expert at defining NP++ UDLs and I don't know if the system will be able to cope with myServer macros unusual structure.

 

File Attachment:

File Name: userDefineLang.zip
File Size:902 B


The .xml file goes in C:\Users\[username]\AppData\Roaming\Notepad++

Andrew

Thanks seems to be a good start a few things not working like if you have
AV|49~Power~On!AV|54~Power~On!
it only highlights the first command in the line
I started looking at doing this myself but like you not an expert with udl's  and still struggling with myserver commands
was hoping one of the Dave's would be familiar with this and it seems like they can write this code in there sleep.
On a side note I'm starting to like the syntax of the commands

Thanks
Last edit: 2 years 5 months ago by Sat32.

Please Log in to join the conversation.

More
2 years 5 months ago #1144 by andrew
Replied by andrew on topic Language
Here's a better one. It's not going to syntax check for you but it makes things a bit more readable.

 

File Attachment:

File Name: myServer.zip
File Size:978 B

 

Andrew

Please Log in to join the conversation.

More
2 years 5 months ago #1153 by Sat32
Replied by Sat32 on topic Language
I'm out at the moment but looks awesome!

Please Log in to join the conversation.

More
2 years 5 months ago #1155 by David Li
Replied by David Li on topic Language
I see you found my WakeSurf boat control code!
Good to see it repurposed.
Hope it helps.

Please Log in to join the conversation.

More
2 years 5 months ago #1158 by Sat32
Replied by Sat32 on topic Language
Here is the macro code I've been working on it's still work in beta and needs tweaking. But the basic idea is a harmony like activitys so when
I start a source it turns everything I need on and turn off what don't need and switches the inputs around only doing what is needed. I'm hoping to be able to copy and paste this into what ever scenes I want and then just edit the varables to match the activty
Code:
//Power Commands! //! //conditionaly turns on TV and Sets varable that the TV is on! if|IsNE##{{IR-SamsungTV_Power}}##OFF##SetVariable|IR-SamsungTVPower~ON!Control|2~SendIR~Samsung-Most Models~POWER ON! //conditionaly turns on av reciver if not on! if|IsNE##{{av_47_power}}##1##AV|47~Power~On! //conditionaly turns on av reciver! if|IsNE##{{av_49_power}}##off##AV|49~Power~On! //conditionaly turns on shield if not on! if|IsNE##{{IR-Xbox1_Power}}##OFF##SetVariable|IR-Xbox1_Power~OFF!2~SendIR~Microsoft-Xbox One~POWER OFF! // inputs commands! //! //conditionaly changes Tv input and sets varable! if|IsNE##{{IR-SamsungTV_Input}}##HDMI3##SetVariable|IR-SamsungTV_Input~HDMI3!Control|2~SendIR~Samsung-Most Models~INPUT HDMI 3! //conditionaly changes av reciever input! if|IsNE##{{av_47_input}}##AUX2##AV|47~Source~Aux2!



What do you guy think??

Please Log in to join the conversation.

Time to create page: 0.180 seconds