Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- logout() {
- wingetpos, , , width, height, A ; get active window width and height
- winget style, style, A ; get window style, using this to determine title bar presence
- width := width * 0.5
- height := style & 0xC00000 ? height * 0.4125 : height * 0.4025 ; slightly different location depending on title bar which is calculated into window height
- blockinput on
- sendinput {escape}
- sendinput {click, %width%, %height%, 0}
- sleep 50
- sendinput {click, %width%, %height%}
- blockinput off
- return
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement