Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CoordMode, ToolTip, Screen
- sw = 0
- time = 1000 ; время задержки перед повторным вводом
- F1::
- if (sw = 0)
- {
- ToolTip, Script ON ,50, 100
- SetTimer, RemoveToolTip, -1000
- #Persistent
- SetTimer, Hp, %time%
- sw = 1
- }
- else
- {
- ToolTip, Script OFF ,50, 100
- SetTimer, RemoveToolTip, -1000
- SetTimer, Hp, off
- sw = 0
- }
- return
- -------------------------------------
- Hp:
- h = A_ScreenWidth/2 - 100
- Loop, 100
- {
- PixelGetColor, color, h + A_Index, 15
- if color != 792122
- ToolTip, a_index HP ,50, 100
- SetTimer, RemoveToolTip, -1000
- break ; Выход из цикла
- }
- Return
- RemoveToolTip: ;Удаление подсказки
- ToolTip
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement