help with strings needed!

runcdfirst's picture

Hi everybody,

that's my problem: i make a composition that send some value as string (in the main comp theres some picture, when the user select a picture the name of the picture is sended as string) and i receive it in another comp network receiver on the same machine.. but i need to count how many times that string comes in my receiver.. how i can do it?

i dont know if i explane well..in the attachment the receiver QC file.

PreviewAttachmentSize
test_string.qtz21.95 KB

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Swiftlikeninja's picture
Re: help with strings needed!

if you have a list of words that it will always be then you can pass the received word through a string compare and test for 0 (matching) and pipe that conditional into a counter. If any of the words are unknowns then you may have to investigate a more robust javascript, perhaps someone else here could assit with that.

PreviewAttachmentSize
test_string.qtz23.85 KB

runcdfirst's picture
Re: help with strings needed!

Well, thank you very much, ill give a try with your advise.. i start to think to use an sql database but im not really able to..

runcdfirst's picture
Re: help with strings needed!

ehi!

i just use your advise, replicating the compare for 20 image that i have on folder and now ive got the counter for each image!

you're great man thank you very much..

another question, there's a way to compress the work? i mean, a way to dont make for every image all the patches?

look at the attachment maybe explane well.

PreviewAttachmentSize
network receiver angel.qtz206.18 KB

cwilms's picture
Re: help with strings needed!

I think I understand what you are asking.

Just select the patches you want to "compress" and press the Create Macro button at the top of the Editor window.

PreviewAttachmentSize
network receiver angel - Create Macro.qtz221.7 KB

cwilms's picture
Re: help with strings needed!

Ah, after re-reading your post I think you mean a way to lessen the tedious work of creating all the patches... I think JavaScript is the only way to automate that. Someone with more experience might be able speak about this.

runcdfirst's picture
Re: help with strings needed!

yeah thats exactly what i mean..but anyway thank you for your help!

i'll try to search something about javascript for do it.