Advertisement
Zanges

Untitled

Nov 22nd, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #SingleInstance Force
  2.  
  3. height := 400
  4. whith := 8
  5. r := 1920
  6. b := 1080
  7.  
  8. switch := false
  9.  
  10. minX := (r - whith)
  11. minY := ((b // 2) - (height // 2))
  12. maxX := (r)
  13. maxY := ((b // 2) + (height // 2))
  14.  
  15. Gui, New, , swapArea
  16. Gui, -Caption
  17. WinSet, AlwaysOnTop, On, swapArea
  18. WinSet, Disable, , swapArea
  19. WinSet, Transparent, 211, swapArea
  20. Gui, Show, W8 H400 X1912 Y340
  21.  
  22. #if switch
  23.     LButton::RButton
  24.     RButton::LButton
  25. #if
  26.  
  27. Hotkey, RButton, Toggle
  28. Hotkey, LButton, Toggle
  29.  
  30. F1::ExitApp
  31.  
  32. Toggle(){
  33.     global minX
  34.     global maxX
  35.     global minY
  36.     global maxY
  37.     global switch
  38.    
  39.     OutputDebug, "1"
  40.    
  41.     CoordMode Mouse
  42.        
  43.     MouseGetPos, mouseX, mouseY
  44.     if (mouseX > minX AND mouseX < maxX AND mouseY > minY AND mouseY < maxY) {
  45.         switch := !switch
  46.     }
  47.     return
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement