Im trying to make script with C-Action in Graphic Designer but my knowlage is really limited.
What I want to do is to make a button, that will change state of defined tags.
Example:
Show
Code: Select all
Tagname section... start
#define TAG_1 "tag1"
#define TAG_2 "tag2"
..
#define TAG_68 "tag68"
Tagname section end..
Picname section start...
Picname section end...
// Here I have IF function converted from Dynamic Action to C action
if((GetTagDWord(TAG_1)) & 0x1)
return value;
else
return value2;
I tried to search for info about using arrays or tables but as I said, my knowlage is really limited, I just started with scripts and in fact I don't know how to do that :S
Can anyone show me on example how to use here FOR loop? It will help me a lot! Thank you!