Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #SingleInstance Force
- height := 400
- whith := 8
- r := 1920
- b := 1080
- switch := false
- minX := (r - whith)
- minY := ((b // 2) - (height // 2))
- maxX := (r)
- maxY := ((b // 2) + (height // 2))
- Gui, New, , swapArea
- Gui, -Caption
- WinSet, AlwaysOnTop, On, swapArea
- WinSet, Disable, , swapArea
- WinSet, Transparent, 211, swapArea
- Gui, Show, W8 H400 X1912 Y340
- #if switch
- LButton::RButton
- RButton::LButton
- #if
- Hotkey, RButton, Toggle
- Hotkey, LButton, Toggle
- F1::ExitApp
- Toggle(){
- global minX
- global maxX
- global minY
- global maxY
- global switch
- OutputDebug, "1"
- CoordMode Mouse
- MouseGetPos, mouseX, mouseY
- if (mouseX > minX AND mouseX < maxX AND mouseY > minY AND mouseY < maxY) {
- switch := !switch
- }
- return
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement