1 (изменено: silver, 2020-10-02 01:32:53)

Тема: Анимация текста(Цвета) Как исправить?

Сделал анимацию на текст, но есть проблемка как сделать можно ещо что бы курсор не мелькал.
Через SetTimer тоже пробовал.


Gui, Font, S17 CDefault, Comic Sans MS
Gui, Add, Edit, x0 y0 w500 h400 +Center vtext,
Gui, Show, w500 h400, new

m:
{
	Gui, Font, Cff0000
	GuiControl, Font, text
	Sleep, 100
	Gui, Font, Cff2a00
	GuiControl, Font, text
	Sleep, 100
	Gui, Font, Cff5500
	GuiControl, Font, text
	Sleep, 100
	Gui, Font, Cff8000
	GuiControl, Font, text
	Sleep, 100
	Gui, Font, Cffaa00
	GuiControl, Font, text
	Sleep, 100
	Gui, Font, Cffd500
	GuiControl, Font, text
	Sleep, 100
	Gui, Font, Cffff00
	GuiControl, Font, text
	Sleep, 100
	Gui, Font, Cd4ff00
	GuiControl, Font, text
	Sleep, 100
	Gui, Font, Caaff00
	GuiControl, Font, text
	Sleep, 100
	Gui, Font, C80ff00
	GuiControl, Font, text
	Sleep, 100
	Gui, Font, C55ff00
	GuiControl, Font, text
	Sleep, 100
	Gui, Font, C2bff00
	GuiControl, Font, text
	Sleep, 100
	Gui, Font, C00ff00
	GuiControl, Font, text
	Sleep, 100
	Gui, Font, C00ff2a
	GuiControl, Font, text
	Sleep, 100
	Gui, Font, C00ff55
	GuiControl, Font, text
	Sleep, 100
	Gui, Font, C00ff80
	GuiControl, Font, text
	Sleep, 100
	Gui, Font, C00ffaa
	GuiControl, Font, text
	Sleep, 100
	Gui, Font, C00ffd5
	GuiControl, Font, text
	Sleep, 100
	Gui, Font, C00ffff
	GuiControl, Font, text
	Sleep, 100
	Gui, Font, C00d5ff
	GuiControl, Font, text
	Sleep, 100
	Gui, Font, C00aaff
	GuiControl, Font, text
	Sleep, 100
	Gui, Font, C0080ff
	GuiControl, Font, text
	Sleep, 100
	Gui, Font, C0055ff
	GuiControl, Font, text
	Sleep, 100
	Gui, Font, C002aff
	GuiControl, Font, text
	Sleep, 100
	Gui, Font, C0000ff
	GuiControl, Font, text
	Sleep, 100
	Gui, Font, C2b00ff
	GuiControl, Font, text
	Sleep, 100
	Gui, Font, C5500ff
	GuiControl, Font, text
	Sleep, 100
	Gui, Font, C8000ff
	GuiControl, Font, text
	Sleep, 100
	Gui, Font, Caa00ff
	GuiControl, Font, text
	Sleep, 100
	Gui, Font, Cd400ff
	GuiControl, Font, text
	Sleep, 100
	Gui, Font, Cff00ff
	GuiControl, Font, text
	Sleep, 100
	Gui, Font, Cff00d4
	GuiControl, Font, text
	Sleep, 100
	Gui, Font, Cff00aa
	GuiControl, Font, text
	Sleep, 100
	Gui, Font, Cff0080
	GuiControl, Font, text
	Sleep, 100
	Gui, Font, Cff0055
	GuiControl, Font, text
	Sleep, 100
	Gui, Font, Cff002b
	GuiControl, Font, text
	Sleep, 100
	goto m
}
return

GuiClose:
ExitApp

Или так. Тут курсор уже не мелькает но, слишком быстро цвета переливаются.


Gui, Font, S17 CDefault, Comic Sans MS
Gui, Add, Edit, x0 y30 w500 h370 +Center vtext,
Gui, Add, Text, x0 y0 w500 h30 +Center vtext1, Цветной чат
Gui, Show, w500 h400, new

SetTimer, colors, 1
return

GuiClose:
ExitApp

colors:
{
	Gui, Font, Cff0000
	GuiControl, Font, text
	GuiControl, Font, text1
	Sleep, 1
	Gui, Font, Cff2a00
	GuiControl, Font, text
	GuiControl, Font, text1
	Sleep, 1
	Gui, Font, Cff5500
	GuiControl, Font, text
	GuiControl, Font, text1
	Sleep, 1
	Gui, Font, Cff8000
	GuiControl, Font, text
	GuiControl, Font, text1
	Sleep, 1
	Gui, Font, Cffaa00
	GuiControl, Font, text
	GuiControl, Font, text1
	Sleep, 1
	Gui, Font, Cffd500
	GuiControl, Font, text
	GuiControl, Font, text1
	Sleep, 1
	Gui, Font, Cffff00
	GuiControl, Font, text
	GuiControl, Font, text1
	Sleep, 1
	Gui, Font, Cd4ff00
	GuiControl, Font, text
	GuiControl, Font, text1
	Sleep, 1
	Gui, Font, Caaff00
	GuiControl, Font, text
	GuiControl, Font, text1
	Sleep, 1
	Gui, Font, C80ff00
	GuiControl, Font, text
	GuiControl, Font, text1
	Sleep, 1
	Gui, Font, C55ff00
	GuiControl, Font, text
	GuiControl, Font, text1
	Sleep, 1
	Gui, Font, C2bff00
	GuiControl, Font, text
	GuiControl, Font, text1
	Sleep, 1
	Gui, Font, C00ff00
	GuiControl, Font, text
	GuiControl, Font, text1
	Sleep, 1
	Gui, Font, C00ff2a
	GuiControl, Font, text
	GuiControl, Font, text1
	Sleep, 1
	Gui, Font, C00ff55
	GuiControl, Font, text
	GuiControl, Font, text1
	Sleep, 1
	Gui, Font, C00ff80
	GuiControl, Font, text
	GuiControl, Font, text1
	Sleep, 1
	Gui, Font, C00ffaa
	GuiControl, Font, text
	GuiControl, Font, text1
	Sleep, 1
	Gui, Font, C00ffd5
	GuiControl, Font, text
	GuiControl, Font, text1
	Sleep, 1
	Gui, Font, C00ffff
	GuiControl, Font, text
	GuiControl, Font, text1
	Sleep, 1
	Gui, Font, C00d5ff
	GuiControl, Font, text
	GuiControl, Font, text1
	Sleep, 1
	Gui, Font, C00aaff
	GuiControl, Font, text
	GuiControl, Font, text1
	Sleep, 1
	Gui, Font, C0080ff
	GuiControl, Font, text
	GuiControl, Font, text1
	Sleep, 1
	Gui, Font, C0055ff
	GuiControl, Font, text
	GuiControl, Font, text1
	Sleep, 1
	Gui, Font, C002aff
	GuiControl, Font, text
	GuiControl, Font, text1
	Sleep, 1
	Gui, Font, C0000ff
	GuiControl, Font, text
	GuiControl, Font, text1
	Sleep, 1
	Gui, Font, C2b00ff
	GuiControl, Font, text
	GuiControl, Font, text1
	Sleep, 1
	Gui, Font, C5500ff
	GuiControl, Font, text
	GuiControl, Font, text1
	Sleep, 1
	Gui, Font, C8000ff
	GuiControl, Font, text
	GuiControl, Font, text1
	Sleep, 1
	Gui, Font, Caa00ff
	GuiControl, Font, text
	GuiControl, Font, text1
	Sleep, 1
	Gui, Font, Cd400ff
	GuiControl, Font, text
	GuiControl, Font, text1
	Sleep, 1
	Gui, Font, Cff00ff
	GuiControl, Font, text
	GuiControl, Font, text1
	Sleep, 1
	Gui, Font, Cff00d4
	GuiControl, Font, text
	GuiControl, Font, text1
	Sleep, 1
	Gui, Font, Cff00aa
	GuiControl, Font, text
	GuiControl, Font, text1
	Sleep, 1
	Gui, Font, Cff0080
	GuiControl, Font, text
	GuiControl, Font, text1
	Sleep, 1
	Gui, Font, Cff0055
	GuiControl, Font, text
	GuiControl, Font, text1
	Sleep, 1
	Gui, Font, Cff002b
	GuiControl, Font, text
	GuiControl, Font, text1
	Sleep, 1
}