Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CoordMode, Pixel, Screen
- ;PixelGetColor, Color, 959, 539
- ;MsgBox, , ,%Color%
- global FlagD, FlagU ;объявление глобальных переменных
- F7:: ;запускаем Tools по кругу с минимальной задержкой
- FlagD:=false
- FlagU:=true
- #Persistent
- SetTimer, Tools
- return
- F8:: ;Останавливаем таймер
- SetTimer, Tools, off
- return
- F2:: Reload
- ----------------------------------------------------
- Tools:
- PixelGetColor, co1, 959, 539
- If (co1 = 0xC14F4F)
- {
- If (FlagD = false)
- {
- SoundBeep, 400, 100
- Send, {LButton Down}
- FlagD:=true
- FlagU:=false
- }
- }
- else
- {
- If (FlagU = false)
- {
- SoundBeep, 350, 100
- Send, {LButton Up}
- FlagU:=true
- FlagD:=false
- }
- }
- Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement