Posted By

deanhouseholder on 04/16/13


Tagged

window activate autohotkey


Versions (?)

AutoHotKey function to activate a window


 / Published in: AutoIt
 

Call this function to activate a named window.

  1. ; Function to simplify window activating
  2. WinWaitFull(win) {
  3. SetWinDelay, 2
  4. WinWait, %win%, , 2
  5. If ErrorLevel {
  6. } else {
  7. IfWinNotActive, %win%, , WinActivate, %win%
  8. WinWaitActive, %win%, , 2
  9. }
  10. }

Report this snippet  

You need to login to post a comment.