<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Плеер]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=13758</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=13758&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Плеер».]]></description>
		<lastBuildDate>Wed, 06 Jun 2018 16:29:24 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Плеер]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=125850#p125850</link>
			<description><![CDATA[<p><strong>shahlik002</strong>,&nbsp; Пожалуйста если это возможно добавьте в плеер, возможность устанавливать точки &quot;A&quot; и &quot;B&quot;, чтоб был цикл прослушивания между установленными точками &quot;A&quot; и &quot;B&quot;.</p>]]></description>
			<author><![CDATA[null@example.com (terra-4)]]></author>
			<pubDate>Wed, 06 Jun 2018 16:29:24 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=125850#p125850</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Плеер]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=125734#p125734</link>
			<description><![CDATA[<p><strong>svoboden</strong><br />Я имел ввиду ahk.<br />На свой вопрос ответ уже нашел.<br />Хватит задавать мне новые вопросы <img src="//forum.script-coding.com/img/smilies/big_smile.png" width="15" height="15" /></p>]]></description>
			<author><![CDATA[null@example.com (shahlik002)]]></author>
			<pubDate>Sun, 03 Jun 2018 17:24:52 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=125734#p125734</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Плеер]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=125732#p125732</link>
			<description><![CDATA[<div class="quotebox"><cite>Malcev пишет:</cite><blockquote><p>Плеер по ссылке базируется на библиотеки bass</p></blockquote></div><p>Так да.</p><p><strong>shahlik002</strong>, а в чем смысл слов: &quot;Спасибо, однако, но я лучше попрактикуюсь в скриптинге&quot;? Это к чему вообще относится?</p>]]></description>
			<author><![CDATA[null@example.com (svoboden)]]></author>
			<pubDate>Sun, 03 Jun 2018 15:14:04 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=125732#p125732</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Плеер]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=125731#p125731</link>
			<description><![CDATA[<p>Плеер по ссылке от <strong>svoboden</strong> базируется на библиотеке bass.<br />ИМХО имеет смысл использовать если не устраивает функционал MCI.</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Sun, 03 Jun 2018 14:59:39 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=125731#p125731</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Плеер]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=125730#p125730</link>
			<description><![CDATA[<p><strong>shahlik002</strong>, а что значит вопрос: &quot;Есть у кого пример уже написанного плеера?&quot; И ответ - &quot;Не хочу качать, свой желаю делать&quot;?</p>]]></description>
			<author><![CDATA[null@example.com (svoboden)]]></author>
			<pubDate>Sun, 03 Jun 2018 14:53:22 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=125730#p125730</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Плеер]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=125728#p125728</link>
			<description><![CDATA[<p>Не хочу качать, свой желаю делать <img src="//forum.script-coding.com/img/smilies/big_smile.png" width="15" height="15" /><br />Вот что уже есть:<br /></p><div class="codebox"><pre><code>#NoEnv
#Include C:\Program Files\AutoHotkey\Gdip.ahk
#Include C:\Program Files\AutoHotkey\MCI.ahk
#IfWinActive, Kroke2
CoordMode, Mouse, Screen
StringCaseSense, off

Size:=30
Spac:=Size+5

If !pToken := Gdip_Startup()
{
	MsgBox, 48, gdiplus error!, Gdiplus failed to start. Please ensure you have gdiplus on your system
	ExitApp
}

Gui, Kroke2: +E0x80000 +LastFound +OwnDialogs -Caption ;-AlwaysOnTop +ToolWindow 
Gui, Kroke2:Show,,Kroke2
hwnd1 := WinExist()															
hbm := CreateDIBSection(A_ScreenWidth, A_ScreenHeight)						
hdc := CreateCompatibleDC()													
obm := SelectObject(hdc, hbm)												
G := Gdip_GraphicsFromHDC(hdc)												
;																			
Gdip_SetSmoothingMode(G, 0) 												

pBrushYellow	:=Gdip_BrushCreateSolid(&quot;0xffbbbb00&quot;)
pBrushBlack		:=Gdip_BrushCreateSolid(&quot;0xff000000&quot;)

EscapeNope:=0

SquarePos:=1

patern:=-1

st2:

Names:=
Pathes:=
Highlight:=

Names:=[]
Pathes:=[]
Highlight:=[]
nNames:=0
MainDY:=0

if patern=-1
	loop %A_ScriptDir%\*.mp3			; loop,%A_ScriptDir%\*.mp3 
	{
		Names.push(A_LoopFileName)
		Pathes.push(A_LoopFileFullPath)
		Highlight.push(0)
		nNames++
	}
Else if patern=
	loop files,D:\Music\*.mp3, R			; loop,%A_ScriptDir%\*.mp3 
	{
		Names.push(A_LoopFileName)
		Pathes.push(A_LoopFileFullPath)
		Highlight.push(0)
		nNames++
	}
Else
	loop files,D:\Music\*.mp3, R
		if A_LoopFileName Contains %patern%
	{
		Names.push(A_LoopFileName)
		Pathes.push(A_LoopFileFullPath)
		Highlight.push(0)
		nNames++
	}


St:
if EscapeNope=1
	goto Lyrics

Gdip_GraphicsClear(G, 0xff000000)
Gdip_FillRectangle(G, pBrushYellow, 0, 0, MCI_Position(hMedia)/MediaLength*A_ScreenWidth, 3)

for k, v in Names
{
	if (A_Index&lt;(-50)//Spac+1+MAINDY or A_Index&gt;(A_ScreenHeight)//Spac+1+MAINDY)
		Continue

	Gdip_TextToGraphics(G, &quot;|  &quot; substr(v,1,-4),&quot;x&quot; 100+Highlight[A_Index]*5 &quot; y&quot; 50+(A_Index-1)*Spac-MainDY*spac &quot; cffaaaaaa s&quot; Size) ;cffbbbb00
}


OnMessage(0x200, &quot;WM_MOUSEMOVE&quot;) ;0xA0 0x200
UpdateLayeredWindow(hwnd1, hdc, 0, 0, A_ScreenWidth, A_ScreenHeight)
WM_MOUSEMOVE()
; goto slide
Return


;############################################################################################################################################



WM_MOUSEMOVE()
{
	global
MouseGetPos, mx, my

if (pSquarePos!=SquarePos)
	pSquarePos:=SquarePos
SquarePos:=(my-50)//Spac+1+MAINDY

if (pSquarePos!=SquarePos)
	{
		hl:=1
		SetTimer, hl, 5
		SetTimer, UnHighlight,30
	}
}


UnHighlight:
		indx:=0
			for k,v in Highlight
				if (v&gt;0 and A_Index!=SquarePos)
			{
				indx++
				Highlight[A_Index]--
				Gdip_FillRectangle(G, pBrushBlack, 0, 53+(A_Index-1-MAINDY)*Spac, A_ScreenWidth, size+4)
				Gdip_TextToGraphics(G, &quot;|  &quot; substr(Names[A_Index],1,-4) ,&quot;x&quot; 100+Highlight[A_Index]*5 &quot;y&quot; 50+(A_Index-1-MAINDY)*Spac &quot; cffaaaaaa s&quot; Size)
			}
				UpdateLayeredWindow(hwnd1, hdc, 0, 0, A_ScreenWidth, A_ScreenHeight)
		if indx=0
SetTimer, UnHighlight,off
Return

hl:
	if (hl=10 or SquarePos&lt;1 or SquarePos&gt;nNames)
	{
		SetTimer, hl, off
		Return
	}

	hl++
	Gdip_FillRectangle(G, pBrushBlack, 0, 50+(SquarePos-1-MAINDY)*Spac, A_ScreenWidth, size+9)
	Gdip_TextToGraphics(G, &quot;|  &quot; substr(Names[SquarePos],1,-4) ,&quot;x&quot; 100+hl*3 &quot; y&quot; 50+(SquarePos-1-MAINDY)*Spac &quot; cffbbbb00 s&quot; Size) ;cffbbbb00
	UpdateLayeredWindow(hwnd1, hdc, 0, 0, A_ScreenWidth, A_ScreenHeight)
	Highlight[SquarePos]:=hl
Return

LButton::
MouseGetPos, x, y
if y&lt;4
{
	MCI_Play(hMedia, &quot;from &quot; round(MediaLength*x/A_ScreenWidth),&quot;NotifyEndOfPlay&quot;)
	Gdip_FillRectangle(G, pBrushBlack, 0, 0, A_ScreenWidth, 3)
	goto slide
}
Else if EscapeNope=0
{
MCI_Stop(hMedia)
hMedia:=MCI_Open(Pathes[SquarePos])
MediaLength:=MCI_Length(hMedia)
MCI_Play(hMedia, &quot;from &quot; 0,&quot;NotifyEndOfPlay&quot;)
Gdip_FillRectangle(G, pBrushBlack, 0, 0, A_ScreenWidth, 3)
SetTimer, slide, 500
}
Return

slide:
Gdip_FillRectangle(G, pBrushYellow, 0, 0, MCI_Position(hMedia)/MediaLength*A_ScreenWidth, 3)
UpdateLayeredWindow(hwnd1, hdc, 0, 0, A_ScreenWidth, A_ScreenHeight)
Return

Space::
if EscapeNope=0
	Return
MCI_Stop(hMedia)
hMedia:=MCI_Open(Pathes[SquarePos])
MediaLength:=MCI_Length(hMedia)
MCI_Play(hMedia, &quot;from &quot; 0,&quot;NotifyEndOfPlay&quot;)
Gdip_FillRectangle(G, pBrushBlack, 0, 0, A_ScreenWidth, 3)
SetTimer, slide, 500
Return

RButton::
MouseGetPos, x, y
if (EscapeNope=1 and x=0 and y=0)
	goto escape
else if EscapeNope=1
	Return
SetTimer, hl, off
SetTimer, UnHighlight,off
FileRead, lyrics, % substr(Names[SquarePos],1,-4) &quot;.txt&quot;
yst:=0
maxyst:=-spac*15
loop,parse,lyrics,`n
	maxyst+=spac

OnMessage(0x200, &quot;WM_MOUSEMOVE&quot;,0)
EscapeNope:=1
; Return

Lyrics:
Gdip_GraphicsClear(G, 0xff000000)
Gdip_FillRectangle(G, pBrushYellow, 0, 0, MCI_Position(hMedia)/MediaLength*A_ScreenWidth, 3)
Gdip_TextToGraphics(G, lyrics,&quot;x100 y&quot; 50+(A_Index-1)*Spac-yst &quot; cffaaaaaa s&quot; Size) ;cffbbbb00
UpdateLayeredWindow(hwnd1, hdc, 0, 0, A_ScreenWidth, A_ScreenHeight)
Return


;#############################################		HotKeys		#############################################

MButton::
Status:=MCI_Status(hMedia)
if Status=Playing
{
	MCI_Pause(hMedia)
	SetTimer, slide, off
}
else if Status=Paused
{
	MCI_Resume(hMedia)
	SetTimer, slide, on
}
Return

Escape::
if EscapeNope=0
	ExitApp
else
{
	EscapeNope:=0
	goto st
}


^WheelUp::
if (size&lt;50)
{
Size++
Spac:=Size+5
}
if EscapeNope=0
	goto st
else
	goto Lyrics

^WheelDown::
if (size&gt;14)
{
Size--
Spac:=Size+5
}
gosub st

WheelDown::
if (EscapeNope=1 and yst&lt;maxyst)
	yst+=spac*4
Else
	MainDY+=4
goto sub

WheelUp::
if (EscapeNope=1 and yst&gt;0)
	yst-=spac*4
Else if MainDY&gt;0
	MainDY-=4
goto sub

^f::
InputBox, patern, Find,,,200,100
goto st2


sub:
if Escapenope=1
	goto Lyrics
		SetTimer, hl, off
		SetTimer, UnHighlight,off
gosub st
		SetTimer, hl, 5
		SetTimer, UnHighlight,30
Return</code></pre></div><p>Спасибо, Malcev-у за ссылку)</p>]]></description>
			<author><![CDATA[null@example.com (shahlik002)]]></author>
			<pubDate>Sun, 03 Jun 2018 14:38:02 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=125728#p125728</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Плеер]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=125726#p125726</link>
			<description><![CDATA[<p>Не понял ответа. Ну так скачайте исходный код этого плеера или посмотрите его в exe файле. И практикуйтесь сколько хотите.</p>]]></description>
			<author><![CDATA[null@example.com (svoboden)]]></author>
			<pubDate>Sun, 03 Jun 2018 13:55:22 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=125726#p125726</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Плеер]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=125723#p125723</link>
			<description><![CDATA[<p><strong>svoboden</strong><br />Спасибо, однако, но я лучше попрактикуюсь в скриптинге.</p>]]></description>
			<author><![CDATA[null@example.com (shahlik002)]]></author>
			<pubDate>Sun, 03 Jun 2018 13:05:37 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=125723#p125723</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Плеер]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=125721#p125721</link>
			<description><![CDATA[<div class="quotebox"><cite>shahlik002 пишет:</cite><blockquote><p>Ну раз уж они есть, поделись, пожалуйста.</p></blockquote></div><p><a href="https://autohotkey.com/boards/viewtopic.php?f=6&amp;t=1694&amp;hilit=Lyrics">https://autohotkey.com/boards/viewtopic … lit=Lyrics</a>.</p><div class="quotebox"><cite>shahlik002 пишет:</cite><blockquote><p>Я вот не знаю, как этот плагин можно подружить с AHK.</p></blockquote></div><p>Так не с ahk нужно его дружить, а практически c любым нормальным плеером.<br />Крякнутых версий этого плагина в интернете полно.</p>]]></description>
			<author><![CDATA[null@example.com (svoboden)]]></author>
			<pubDate>Sun, 03 Jun 2018 12:25:35 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=125721#p125721</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Плеер]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=125720#p125720</link>
			<description><![CDATA[<p><strong>Malcev</strong><br />Спасибо огромное, буду разбираться.</p>]]></description>
			<author><![CDATA[null@example.com (shahlik002)]]></author>
			<pubDate>Sun, 03 Jun 2018 11:16:34 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=125720#p125720</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Плеер]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=125719#p125719</link>
			<description><![CDATA[<p><a href="https://autohotkey.com/joe_df/autohotkey_scripts_archive/jballi/MCI_v1.1.zip">https://autohotkey.com/joe_df/autohotke … I_v1.1.zip</a></p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Sun, 03 Jun 2018 10:07:44 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=125719#p125719</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Плеер]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=125718#p125718</link>
			<description><![CDATA[<p><strong>svoboden</strong><br />Ну раз уж они есть, поделись, пожалуйста.<br />Я вот не знаю как этот плагин можно подружить с AHK.<br />Я ведь пример просил...</p>]]></description>
			<author><![CDATA[null@example.com (shahlik002)]]></author>
			<pubDate>Sun, 03 Jun 2018 07:00:09 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=125718#p125718</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Плеер]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=125714#p125714</link>
			<description><![CDATA[<div class="quotebox"><cite>shahlik002 пишет:</cite><blockquote><p>Есть у кого пример уже написанного плеера?</p></blockquote></div><p>Плеера существуют на autohotkey, а зачем они нужны, если есть плагин MiniLyrics.<br /><a href="https://ru.wikipedia.org/wiki/MiniLyrics">https://ru.wikipedia.org/wiki/MiniLyrics</a>.</p>]]></description>
			<author><![CDATA[null@example.com (svoboden)]]></author>
			<pubDate>Sat, 02 Jun 2018 19:57:35 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=125714#p125714</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Плеер]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=125713#p125713</link>
			<description><![CDATA[<p>Решил сделать универсальное окошко с текстами песен. <br />Сюда же нужны и возможности включить, выключить, поставить на паузу, промотать музыку.. <br />Вобщем-то, полноценный плеер нужен. <br />К своему удивлению, библиотек для плееров на ahk не нашел. <br />Да, есть SoundPlay, но SoundPause нету, не думаю что это подойдет. <br />К тому же, <em>душа жаждет ту заветную плеерскую полосочку</em> <img src="//forum.script-coding.com/img/smilies/big_smile.png" width="15" height="15" /></p><p><em>Есть у кого пример уже написанного плеера?</em></p><p>Пока что перебиваюсь фоновым AIMP-ом<br />Вот что получилось:</p><div class="codebox"><pre><code>#NoEnv
#Include C:\Program Files\AutoHotkey\Gdip.ahk
#IfWinActive, Kroke2

Size:=30
Spac:=Size+5

If !pToken := Gdip_Startup()
{
	MsgBox, 48, gdiplus error!, Gdiplus failed to start. Please ensure you have gdiplus on your system
	ExitApp
}

Gui, Kroke2: +E0x80000 +LastFound +OwnDialogs -Caption ;-AlwaysOnTop +ToolWindow 
Gui, Kroke2:Show,,Kroke2
hwnd1 := WinExist()															
hbm := CreateDIBSection(A_ScreenWidth, A_ScreenHeight)						
hdc := CreateCompatibleDC()													
obm := SelectObject(hdc, hbm)												
G := Gdip_GraphicsFromHDC(hdc)												
;																			
Gdip_SetSmoothingMode(G, 0) 												

pBrushYellow	:=Gdip_BrushCreateSolid(&quot;0xffbbbb00&quot;)
pBrushBlack		:=Gdip_BrushCreateSolid(&quot;0xff000000&quot;)

EscapeNope:=0

Names:=[]
loop,%A_ScriptDir%\*.mp3
{
	Names.push(A_LoopFileName)
	nNames++
}

MainDY:=0

St:
Gdip_GraphicsClear(G, 0xff000000)

for k, v in Names
	Gdip_TextToGraphics(G, &quot;|  &quot; substr(v,1,-4),&quot;x100 y&quot; 50+(A_Index-1)*Spac-MainDY*spac &quot; cffaaaaaa s&quot; Size) ;cffbbbb00

SquarePos:=1

UpdateLayeredWindow(hwnd1, hdc, 0, 0, A_ScreenWidth, A_ScreenHeight)
OnMessage(0x200, &quot;WM_MOUSEMOVE&quot;)
Return

WM_MOUSEMOVE()
{
	global
MouseGetPos, mx, my
if (mx&lt;100 or mx&gt;A_ScreenWidth-100 or my&lt;50 or (my-50)//Spac+1+MAINDY&gt;nNames)
	Return

pSquarePos:=SquarePos
SquarePos:=(my-50)//Spac+1+MAINDY

if (pSquarePos!=SquarePos)
	{
	Gdip_FillRectangle(G, pBrushBlack, 0, 53+(SquarePos-1-MAINDY)*Spac, A_ScreenWidth, size+4)
	Gdip_FillRectangle(G, pBrushBlack, 0, 53+(pSquarePos-1-MAINDY)*Spac, A_ScreenWidth, size+4)
	Gdip_TextToGraphics(G, &quot;|  &quot; substr(Names[SquarePos],1,-4) ,&quot;x110 y&quot; 50+(SquarePos-1-MAINDY)*Spac &quot; cffbbbb00 s&quot; Size) ;cffbbbb00
	Gdip_TextToGraphics(G, &quot;|  &quot; substr(Names[pSquarePos],1,-4) ,&quot;x100 y&quot; 50+(pSquarePos-1-MAINDY)*Spac &quot; cffaaaaaa s&quot; Size) ;cffbbbb00

	UpdateLayeredWindow(hwnd1, hdc, 0, 0, A_ScreenWidth, A_ScreenHeight)
	}
}

LButton::
if EscapeNope=0
	Run, % Names[SquarePos]
	; SoundPlay, % Names[SquarePos]
Return

Space::
if EscapeNope=1
	Run, % Names[SquarePos]
Return

RButton::
Gdip_GraphicsClear(G, 0xff000000)
FileRead, lyrics, % substr(Names[SquarePos],1,-4) &quot;.txt&quot;
yst:=0
maxyst:=-spac*15
loop,parse,lyrics,`n
	maxyst+=spac

Gdip_TextToGraphics(G, lyrics,&quot;x100 y&quot; 50+(A_Index-1)*Spac-yst &quot; cffbbbb00 s&quot; Size) ;cffbbbb00
UpdateLayeredWindow(hwnd1, hdc, 0, 0, A_ScreenWidth, A_ScreenHeight)

OnMessage(0x200, &quot;WM_MOUSEMOVE&quot;,0)
Hotkey, LButton, MinusTime
Hotkey, RButton, PlusTime
EscapeNope:=1
Return

Lyrics:
Gdip_GraphicsClear(G, 0xff000000)
Gdip_TextToGraphics(G, lyrics,&quot;x100 y&quot; 50+(A_Index-1)*Spac-yst &quot; cffbbbb00 s&quot; Size) ;cffbbbb00
UpdateLayeredWindow(hwnd1, hdc, 0, 0, A_ScreenWidth, A_ScreenHeight)
Return

MButton::Media_Play_Pause

Escape::
if EscapeNope=0
	ExitApp
else
{
	EscapeNope:=0
	Hotkey, LButton, LButton
	Hotkey, RButton, RButton
	goto st
}
Return

PlusTime:
Send,^!{Volume_Up}
Return

MinusTime:
Send,^!{Volume_Down}
Return

^WheelUp::
if (size&lt;50)
{
Size++
Spac:=Size+5
}
if EscapeNope=0
	goto st
if EscapeNope=1
	goto Lyrics
Return

^WheelDown::
if (size&gt;14)
{
Size--
Spac:=Size+5
}
if EscapeNope=0
	goto st
if EscapeNope=1
	goto Lyrics
Return


WheelDown::
if EscapeNope=1
{
if (yst&lt;maxyst)
	yst+=spac*2
goto Lyrics
}
Else
{
	MainDY++
	goto st
}
Return


WheelUp::
if EscapeNope=1
{
if (yst&gt;0)
	yst-=spac*2
goto Lyrics
}
Else if MainDY&gt;0
{
	MainDY--
	goto st
}
Return</code></pre></div><p>Для работы нужно закинуть в папку со скриптом mp3 и txt файлы с одинаковым именем. (MyMysic.mp3, MyMysic.txt)<br />А там, потыкаете и разберетесь.</p>]]></description>
			<author><![CDATA[null@example.com (shahlik002)]]></author>
			<pubDate>Sat, 02 Jun 2018 19:45:01 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=125713#p125713</guid>
		</item>
	</channel>
</rss>
