<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Совместной использование Loop'a и GUI.]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=11284</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=11284&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Совместной использование Loop'a и GUI.».]]></description>
		<lastBuildDate>Tue, 02 Feb 2016 18:13:26 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Совместной использование Loop'a и GUI.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=100805#p100805</link>
			<description><![CDATA[<p>Почитайте про команду return, потом пройдитесь по коду, и посмотрите, какая не на месте.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Tue, 02 Feb 2016 18:13:26 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=100805#p100805</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Совместной использование Loop'a и GUI.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=100803#p100803</link>
			<description><![CDATA[<div class="codebox"><pre><code>#include %A_ScriptDir%\SAMP.ahk

CL = %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt  
StringCaseSense, Locale
FileDelete, %CL%

delfunc()
{
	FileDelete %A_ScriptDir%\carlist.ahk
}

createfunc()
{
	FileAppend,
(
#include %A_ScriptDir%\SAMP.ahk
:?:/respawnbike::`n
), %A_ScriptDir%\carlist.ahk
}

closefunc()
{
	FileAppend,
(
return
), %A_ScriptDir%\carlist.ahk
}

Gui, Add, Tab2,, Меню|Помощь
Gui, Add, Button, gcreatefunc, Начать создание нового списка
Gui, Add, Button, gclosefunc, Закончить создание списка
Gui, Add, Button, gdelfunc, Удалить список.
Gui, Tab, 2
Gui, Add, Text,, Кек
Gui, Tab, 3
Gui, Add, Edit, vMyEdit r5  ; r5 means 5 rows tall.
Gui, Tab  ; i.e. subsequently-added controls will not belong to the tab control.
Gui, Add, Button, ghide xm, Cвернуть  ; xm puts it at the bottom left corner.
Gui, Add, Button, gclose xm, Закрыть  ; xm puts it at the bottom left corner.
Gui, Show
return
hide()
{
	Gui, cancel
}
close()
{
	ExitApp
}

Loop
{
        Loop,Read, %CL%
        {
                adminid := getId()
                Line := A_LoopReadLine
				timestamp := A_LoopReadLine
                RegExMatch(Line, &quot;`[[0-9]+:[0-9]+:[0-9]+`] &quot;, timestamp)
                Line := RegExReplace(Line, &quot;`[[0-9]+:[0-9]+:[0-9]+`] &quot;, &quot;&quot;)
                RegExMatch(Line, &quot;`[[0-9]+`]&quot;, ID)
                StringTrimLeft, ID, ID, 1
                StringTrimRight, ID, ID, 1
				
				regExMatch(timestamp, &quot;:[0-9]+:&quot;, timestamp)
				timestamp := RegExReplace(timestamp, &quot;:&quot;, &quot;&quot;)
		
		
			IfInString, A_LoopReadLine, Автомобиль
			IfInString, A_LoopReadLine, создан
                {
					RegExMatch(Line, &quot;[0-9]+&quot;, carid)
					FileAppend,
					(
sendChatMessage(&quot;/respawn %carid%&quot;)`n
sleep 350`n
					), %A_ScriptDir%\carlist.ahk		
                }
        }
 FileDelete, %CL%
 sleep 1000  
}
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Bek1zo)]]></author>
			<pubDate>Tue, 02 Feb 2016 18:06:15 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=100803#p100803</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Совместной использование Loop'a и GUI.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=100798#p100798</link>
			<description><![CDATA[<p>А как вы пробовали? Приведите код.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Tue, 02 Feb 2016 14:36:04 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=100798#p100798</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Совместной использование Loop'a и GUI.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=100795#p100795</link>
			<description><![CDATA[<p>Столкнулся с такой проблемой, что при наличие GUI невозможно запустить loop. Работает что то одно в зависимости от месторасположение кода. Возможно как то решить эту проблему?</p>]]></description>
			<author><![CDATA[null@example.com (Bek1zo)]]></author>
			<pubDate>Tue, 02 Feb 2016 14:22:21 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=100795#p100795</guid>
		</item>
	</channel>
</rss>
