Advertisement
Guest User

ahk taskview open hotcorner

a guest
Aug 29th, 2015
1,406
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. #Persistent
  2. SetTimer, HotCorners, 0
  3. return
  4.  
  5. HotCorners:
  6. CoordMode, Mouse, Screen
  7. WinGetPos, X, Y, Xmax, Ymax, Program Manager ; get desktop size
  8. T = 5 ; adjust tolerance value if desired
  9. MouseGetPos, MouseX, MouseY
  10. Xcenter := Xmax/2
  11. Ycenter := Ymax/2
  12.  
  13. CornerTopLeft := (MouseY < T and MouseX < T)
  14. CornerTopRight := (MouseY < T and MouseX > Xmax - T)
  15. CornerBottomLeft := (MouseY > Ymax - T and MouseX < T)
  16. CornerBottomRight := (MouseY > Ymax - T and MouseX > Xmax - T)
  17.  
  18.  
  19. if CornerTopLeft
  20. {
  21. Send, {LWin down}{tab down}
  22. Send, {LWin up}{tab up}
  23. Sleep, 1000
  24. }
  25. ; else if CornerTopLeft
  26. ; {
  27. ; MouseMove, Xcenter, Ycenter
  28. ; do sth
  29. ; }
  30. ; ...
  31. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement