Advertisement
Guest User

Untitled

a guest
Dec 13th, 2014
455
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. logout() {
  2. wingetpos, , , width, height, A ; get active window width and height
  3. winget style, style, A ; get window style, using this to determine title bar presence
  4.  
  5. width := width * 0.5
  6. height := style & 0xC00000 ? height * 0.4125 : height * 0.4025 ; slightly different location depending on title bar which is calculated into window height
  7.  
  8. blockinput on
  9. sendinput {escape}
  10. sendinput {click, %width%, %height%, 0}
  11. sleep 50
  12. sendinput {click, %width%, %height%}
  13. blockinput off
  14. return
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement