<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Ошибка повторного вызова GUI]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=13675&amp;type=atom" />
	<updated>2018-05-05T21:26:50Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=13675</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ошибка повторного вызова GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125128#p125128" />
			<content type="html"><![CDATA[<p>Тема закрыта.</p>]]></content>
			<author>
				<name><![CDATA[smol]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27054</uri>
			</author>
			<updated>2018-05-05T21:26:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125128#p125128</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ошибка повторного вызова GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125127#p125127" />
			<content type="html"><![CDATA[<p>10 000<br />спасибо.</p>]]></content>
			<author>
				<name><![CDATA[smol]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27054</uri>
			</author>
			<updated>2018-05-05T21:25:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125127#p125127</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ошибка повторного вызова GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125124#p125124" />
			<content type="html"><![CDATA[<p>Прикручивайте в самый конец кода.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2018-05-05T21:11:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125124#p125124</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ошибка повторного вызова GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125123#p125123" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>Допишите в скрипт такую метку:<br /></p><div class="codebox"><pre><code>GuiClose:
   Gui, Destroy
   Return</code></pre></div></blockquote></div><p>Уважаемый teadrinker .<br />Я не так силен в AHK ,как прикрутить это?<br />Или не запускается или не закрывается.</p>]]></content>
			<author>
				<name><![CDATA[smol]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27054</uri>
			</author>
			<updated>2018-05-05T21:04:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125123#p125123</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ошибка повторного вызова GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125117#p125117" />
			<content type="html"><![CDATA[<p>Допишите в скрипт такую метку:<br /></p><div class="codebox"><pre><code>GuiClose:
   Gui, Destroy
   Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2018-05-05T20:07:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125117#p125117</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Ошибка повторного вызова GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125108#p125108" />
			<content type="html"><![CDATA[<p>Скрипт Работает хорошо.<br />Если Вызвать Gui на&nbsp; клавишу&nbsp; F2 окно откроется и все ищет , но если закрыть окно и нажать F2. &quot;Ошибка вызова Gui&quot; !!!!!!<br />11 списков и в каждом может быть до 100.000 значений.<br />Скрипт внушительный.<br />Может есть вариант сократить скрипт?<br /></p><div class="codebox"><pre><code>#Persistent




                         
   F10::
Reload   
   return
   
POY:
Varr =
IfWinActive, База ahk_class BchfBacRIQ
ControlGetText, Varr, omboEdit21, База ahk_class BchfBacSAB ; Окно
POI:


Needle = %Varr%




Haystack = 1,2,3 ; И так далее

IfInString, Haystack, %Needle%
{
    
    FileAppend, %Varr%`, ,%A_ScriptDir%\Список МАРТ.txt
    MsgBox, Список МАРТ
                        
    Varr =
    return
}

Haystack = 4,5,6 ; И так далее

IfInString, Haystack, %Needle%
{
    
    FileAppend, %Varr%`, ,%A_ScriptDir%\Список АПРЕЛЬ.txt
    MsgBox, Список АПРЕЛЬ
                        
    Varr =
    return
}

Haystack = 1,2,5,8,9,500,999107

IfInString, Haystack, %Needle%
{
    
    FileAppend, %Varr%`, ,%A_ScriptDir%\Список МАЙ.txt
    MsgBox, Список МАЙ
                        
    Varr =
    return
}

else



{
    
   
     FileAppend, %Varr%`, ,%A_ScriptDir%\Список Июнь.txt
    MsgBox, Нет В списках. Ошибка № Наклодной
                        
    return
}





F2::

Varr =
Gui, Font, S50 Cred, Verdana
Gui, Add, Edit,  x12 y10 w300 h90 vIND Limit6 Number, 
Gui, Font, S15 Cred, Verdana
Gui, Add, Button, x82 y120 w210 h80 , Поиск
; Generated using SmartGUI Creator for SciTE
Gui, Show, w384 h275, Поиск в Базе



return
ButtonПоиск:

   GuiControlGet, IND
   Varr = %IND%

Goto, POI


F1::
Goto, POY</code></pre></div>]]></content>
			<author>
				<name><![CDATA[smol]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27054</uri>
			</author>
			<updated>2018-05-05T17:23:25Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125108#p125108</id>
		</entry>
</feed>
