AutoHotKey function to activate a window


/ Published in: AutoIt
Save to your folder(s)

Call this function to activate a named window.


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.