Advertisement
Lorenzo501

TaskbarY.ahk

Mar 5th, 2024 (edited)
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Requires AutoHotkey 2.0
  2.  
  3. deactivatedTaskbarY := A_ScreenHeight - 2
  4. WinGetPos(, &currentTaskbarY,,, "ahk_class Shell_TrayWnd")
  5. while (currentTaskbarY != deactivatedTaskbarY)               ; WaitDeactivate()
  6. if (currentCursorY >= deactivatedTaskbarY)                   ; ActionOnHover()
  7.  
  8. WinGetPos(, &currentTaskbarY,, &taskbarHeight, "ahk_class Shell_TrayWnd")
  9. if (currentTaskbarY != (A_ScreenHeight - taskbarHeight))
  10.     WinActivate()
  11. WinWaitNotActive()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement