title: AutoHotKey, Foxit, PHP
body: <p>I'm trying to print same PDF lables that are generated with PHP and Mysql.</p>
  
  <p>The creation of the PDF file is done and working. I save the pdf on a temp folder.
  and then i run this Autohotkey script:</p>
  
  <pre><code>#Persistent 
  SetTimer, PrintMon, 5000 ;every 5 seconds return
  PrintMon:
  IfExist C:\rolls\temp\*.pdf
    {
     runwait, "C:\Program Files (x86)\Foxit Software\Foxit Reader\FoxitReader.exe" /p "C:\rolls\temp\%A_LoopFileName%",,min 
  }
  FileDelete, C:\rolls\temp\*.pdf
  Process, Close, foxitreader.exe
  return
  </code></pre>
  
  <p>I need to close the Foxit program before i can generate and print another PDF file.</p>
  
  <p>I've tried "Process, Close, foxitreader.exe"
  And "Winclose, Start - Foxit Reader",</p>
  
  <p>but still no luck.</p>
  
  <p>Hope someone can help me on this one, </p>
  
  <p>Thanks</p>