title: VBScript to detect an open messagebox and close it
body: <p>I'm looking for a way to detect and close an open system messagebox with VBScript.</p>
  
  <p>Using the following script, I can bring the message to foreground and close it:</p>
  
  <pre><code>set WshShell = WScript.CreateObject("WScript.Shell")
  WshShell.AppActive "System Settings Change"
  WshShell.SendKeys "%N"
  </code></pre>
  
  <p><strong>The Question:</strong> I need a way to detect if a messagebox is waiting user interaction using VBsciprt so I can close it.</p>
  
  <p>Thnak you.</p>