Advertisement
Guest User

Untitled

a guest
Nov 5th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.63 KB | None | 0 0
  1. HotKeySet('^{F1}', "_TransPlus")
  2. HotKeySet('^{F2}', "_TransMoins")
  3. HotKeySet('^{F3}', "_Stop")
  4. HotKeySet('^{F4}', '_Selectionner')
  5.  
  6. Dim $fenActive = Null
  7.  
  8. Dim $transparence = 255
  9.  
  10. While True
  11. WEnd
  12.  
  13. Func _TransPlus()
  14.     $transparence = $tansparence + 10
  15.    
  16.     If $fenActive <> Null Then
  17.         WinSetTrans($fenActive, '', $transparence)
  18.     EndIf
  19. EndFunc
  20.  
  21. Func _TransMoins()
  22.     $transparence = $tansparence - 10
  23.    
  24.     If $fenActive <> Null Then
  25.         WinSetTrans($fenActive, '', $transparence)
  26.     EndIf
  27. EndFunc
  28.  
  29. Func _Selectionner()
  30.     $fenActive = WinGetTitle("[ACTIVE]")
  31. EndFunc
  32.  
  33. Func _Stop()
  34.     Exit
  35. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement