title: How to Get Monitor Info with Autohotkey?
body: <p>I try to get current monitor status and found GetMonitorInfo function at <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/dd144901(v=vs.85).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/windows/desktop/dd144901(v=vs.85).aspx</a> but I do not know <a href="/questions/tagged/c%2b%2b" class="post-tag" title="show questions tagged 'c++'" rel="tag">c++</a> and how to use it in <a href="/questions/tagged/autohotkey" class="post-tag" title="show questions tagged 'autohotkey'" rel="tag">autohotkey</a>. DllCall line is just a guess so this is what I wrote for now.</p>
  
  <pre><code>MonitorStatus := 1 &gt; 2  ; Creates a boolean variable so size of it is determined.
  Sleep 1000
  DllCall("GetMonitorInfo","HMONITOR",1,"LPMONITORINFO",MonitorStatus,"int")
  Sleep 1000
  MsgBox Monitor status is %MonitorStatus%.   ; Status should be turned to 1.
  Return
  </code></pre>
  
  <p>Shortly how to detect if monitor is on or off with assuming it has power?</p>