We appreciate the contributions many of you have been able to make towards repairing the storm damage and keeping a roof over our heads. With your help we’ve been able to complete much of the critical work. There is still work to be done to secure the house and your continued support will be a huge help.
Guests have read-only access to our forums. If you wish to participate you will need to register. Be sure to activate your account from the email sent to you when you register.
I've been messing around with config for a few days now comparing it to sample ini's and looking at doc. I want to have a button that opens a pdf which I have working, but I only want the button to appear if the file path actually exists - this part I can't get working. I've tried using a "file "line with a variable and then an "if" right before the button , but maybe that's not the way to go about it. Can anyone assist or give suggestions?
Thanks!
So I was able to get something working finally. I set a fileexist line and did some rearrangement of the config, but not sure if I have the interval set right, or maybe that's something that can't be set here. I enabled logging and I see it trying to validate the variable at least once per second. Can I disable this or at least slow this down? I tried setting the "interval" but that didn't seem to do anything.
Here is my code block for example:
FILEEXIST=interval:600,file:C:\DesktopInfo3195\Desktop Info Manual.pdf,set:pdffile,hidden:1 IF=value1:%pdffile%, comp:eq, value2:True, interval:600 BUTTON=active:1,interval:600,align:r,color:%blue%,text:,display:PDF,style:b,font-size:16,uri:C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe,args:"C:\DesktopInfo3195\Desktop Info Manual.pdf",hint:PDF
FILEEXIST=interval:6,file:C:\DesktopInfo\Desktop Info Manual.pdf,set:pdffile,hidden:1 IF=value1:%pdffile%, comp:eq, value2:True BUTTON=align:r,color:%blue%,text:,display:PDF,style:b,font-size:16,uri:C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe,args:"C:\DesktopInfo3195\Desktop Info Manual.pdf",hint:PDF
You only need to put the interval in the FILEEXIST item in order to update the %pdffile% variable as required.
I was able to make the button appear when the file appears but if the file disappears, the button seems to hang around. I notice if I change page and back, the button is gone. I would call this a bug.
