Return to Snippet

Revision: 63205
at April 16, 2013 16:44 by deanhouseholder


Initial Code
; Function to simplify window activating
WinWaitFull(win) {
  SetWinDelay, 2
  WinWait, %win%, , 2
  If ErrorLevel {
    Return 1
  } else {
    IfWinNotActive, %win%, , WinActivate, %win%
    WinWaitActive, %win%, , 2
    Return 0
  }
}

Initial URL


Initial Description
Call this function to activate a named window.

Initial Title
AutoHotKey function to activate a window

Initial Tags
window

Initial Language
AutoIt