Advertisement
DevTricks

Функция. Проверка активного окна.

Apr 9th, 2021
875
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. F1::
  2. {
  3.     if (Wincheck()=1)
  4.       Tooltip, Окно есть
  5.     Else
  6.       Tooltip
  7.     }
  8.    
  9. return
  10.  
  11. Wincheck()
  12. {
  13.     if WinActive("ahk_class Notepad")
  14.     {
  15.       Return 1
  16.     }
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement