--- In [email protected], "lakeshoresurfer" <camice...@...> wrote:
>
> Hi,
> 
> I have changed the code and it now looks like below :
> 
> 
> if (win.exename(mycliphan)=="POWERPRO")do
>    mycaption=win.caption(window("firstwindow", "c=POWERPRONOTE" && "CMS"))
> 
> for (i=len;i<0;i--) 
> 
>   if (find(v[i],"COMPLETED") > -1)
>   v.delete(v[i])
>    
> endfor
> 
> clip.set(v)
> wait.for (100)
> endif
> 
> ============================================
> 
> Just to make sure, that I am doing this right.
> 
> if (win.exename(mycliphan)=="POWERPRO")do
>    mycaption=win.caption(window("firstwindow", "c=POWERPRONOTE" && "CMS"))
> 

When you use clip set, you need clip.set(v.makelines), not clip.set(v)

> This line should be triggered when the clip is captured on a powerpronote 
> with the title "CMS". Is this correct ?

No, it is triggered based on your "if" statement. The variable mycaption is 
also set based on that if statement. But the caption list in the setting of 
mycaption is not specified correctly. For a caption list to use multiple 
criteria, the criteria are separated by ,&, and only one set of quotes 
surrounds the entire caption list.

Regards,
Sheri

Reply via email to