<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Загрузить сохранить из поля Edit в ini файл]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=9285</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=9285&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Загрузить сохранить из поля Edit в ini файл».]]></description>
		<lastBuildDate>Sun, 23 Feb 2014 16:16:11 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Загрузить сохранить из поля Edit в ini файл]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=80318#p80318</link>
			<description><![CDATA[<p>Я в восторге, огромное спасибо <strong>sergeiplugatyr</strong> вам за помощь.</p>]]></description>
			<author><![CDATA[null@example.com (Ядрён)]]></author>
			<pubDate>Sun, 23 Feb 2014 16:16:11 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=80318#p80318</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Загрузить сохранить из поля Edit в ini файл]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=80315#p80315</link>
			<description><![CDATA[<p>Вот так не пробовал?<br /></p><div class="codebox"><pre><code>Gui, Add, Edit, vDllCall3 -WantReturn Limit gMySubroutine, 

Gui, Add, Edit, vDllCall1 -WantReturn Limit gMySubroutine, 

Gui, Add, Edit, vDllCall2 -WantReturn Limit gMySubroutine, 

Gui, Add, Button, gSave, Save

Gui, Add, Button, gOpen, Open

Gui, Show, x557 y130 h171 w255, New GUI Window
Return

~vk78::
Suspend, toggle
return

*~lbutton::
while GetKeyState(&quot;LButton&quot;,&quot;P&quot;)
{
DllCall(&quot;Sleep&quot;, UInt, Time)
DllCall(&quot;mouse_event&quot;,uint,1,int,x,int,y,uint,0,int,0)
DllCall(&quot;Sleep&quot;, UInt, Timee)
}
Return

Save:
Gui Submit, NoHide
FileSelectFile, SelectedFile, S9, , сохранить макрос, *.ini

IniWrite, %DllCall3%, %SelectedFile%, xdirectory, dir3 
IniWrite, %DllCall1%, %SelectedFile%, ydirectory, dir1 
IniWrite, %DllCall2%, %SelectedFile%, sldirectory, dir2  

Return

Open:
Gui Submit, NoHide
FileSelectFile, SelectedFile, 9, , загрузить макрос, *.ini

IniRead, OutputVar3, %SelectedFile%, xdirectory, dir3, %A_Space%
IniRead, OutputVar1, %SelectedFile%, ydirectory, dir1, %A_Space%
IniRead, OutputVar2, %SelectedFile%, sldirectory, dir2, %A_Space%

GuiControl,, DllCall3, % OutputVar3
GuiControl,, DllCall1, % OutputVar1
GuiControl,, DllCall2, % OutputVar2

Return

Edit:
Return
MySubroutine:
Gui Submit, NoHide
Time := DllCall2%Sleep%
Timee := DllCall2%Sleep%
x := DllCall1%Move%
y := DllCall3%RMove%
Return
GuiClose:
ExitApp</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (sergeiplugatyr)]]></author>
			<pubDate>Sun, 23 Feb 2014 15:19:55 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=80315#p80315</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Загрузить сохранить из поля Edit в ini файл]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=80314#p80314</link>
			<description><![CDATA[<p>Не могу разобраться с командой &quot;FileSelectFile&quot;. Написал скрипт на анти-отдачу, теперь хочу сделать сохранение профилей в &quot;ini&quot;файлы, и загрузку профилей из &quot;ini&quot;файлов.Мысль такая, из полей &quot;Edit&quot;, сохранить параметры в &quot;ini&quot;файл при нажатии кнопки &quot;Save&quot; , а при нажатии кнопки &quot;Open&quot; что бы можно было загрузить профиль из файла &quot;ini&quot;. Сейчас такая проблема, когда я сохраняю файл &quot;ini&quot; под своим именем, то сохраняет всё равно под именем &quot;program.ini&quot;.И когда пытаюсь загрузить другой файл &quot;ini&quot; открывает только файл &quot;program.ini&quot; . Возможно я не правильно соединил переменные &quot;FileSelectFile&quot; и &quot;IniWrite&quot;. Помогите пожалуйста.</p><div class="codebox"><pre><code>
Gui, Add, Edit, vDllCall3 -WantReturn Limit gMySubroutine, 

Gui, Add, Edit, vDllCall1 -WantReturn Limit gMySubroutine, 

Gui, Add, Edit, vDllCall2 -WantReturn Limit gMySubroutine, 

Gui, Add, Button, gSave, Save

Gui, Add, Button, gOpen, Open

Gui, Show, x557 y130 h171 w255, New GUI Window
Return

~vk78::
Suspend, toggle
return

*~lbutton::
while GetKeyState(&quot;LButton&quot;,&quot;P&quot;)
{
DllCall(&quot;Sleep&quot;, UInt, Time)
DllCall(&quot;mouse_event&quot;,uint,1,int,x,int,y,uint,0,int,0)
DllCall(&quot;Sleep&quot;, UInt, Timee)
}
Return

Save:
Gui Submit, NoHide
FileSelectFile, SelectedFile, S9, , сохранить макрос, *.ini

IniWrite, %DllCall3%, %A_WorkingDir%\program.ini, xdirectory, dir3 
IniWrite, %DllCall1%, %A_WorkingDir%\program.ini, ydirectory, dir1 
IniWrite, %DllCall2%, %A_WorkingDir%\program.ini, sldirectory, dir2  

Return

Open:
Gui Submit, NoHide
FileSelectFile, SelectedFile, 9, , загрузить макрос, *.ini

IniRead, OutputVar3, %A_ScriptDir%\program.ini, xdirectory, dir3, %A_Space%
IniRead, OutputVar1, %A_ScriptDir%\program.ini, ydirectory, dir1, %A_Space%
IniRead, OutputVar2, %A_ScriptDir%\program.ini, sldirectory, dir2, %A_Space%

GuiControl,, DllCall3, % OutputVar3
GuiControl,, DllCall1, % OutputVar1
GuiControl,, DllCall2, % OutputVar2

Return

Edit:
Return
MySubroutine:
Gui Submit, NoHide
Time := DllCall2%Sleep%
Timee := DllCall2%Sleep%
x := DllCall1%Move%
y := DllCall3%RMove%
Return
GuiClose:
ExitApp</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Ядрён)]]></author>
			<pubDate>Sun, 23 Feb 2014 15:09:17 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=80314#p80314</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Загрузить сохранить из поля Edit в ini файл]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=80297#p80297</link>
			<description><![CDATA[<p><strong>Ядрён</strong>, обрати внимание на следующие строки:<br /></p><div class="quotebox"><blockquote><p>FileSelectFile, <strong>program</strong>, S1, , Select the program you would like to run, *.ini<br />IniWrite, %DllCall3%, %a_scriptdir%\<strong>program.ini</strong>, xdirectory, dir3</p></blockquote></div><p>В первой строке у тебя идет присвоение переменной <strong>program</strong>, но во второй вместо её использования название скрипта задано как <strong>program.ini</strong>. В части кода с <strong>IniRead</strong> ситуация аналогичная.</p>]]></description>
			<author><![CDATA[null@example.com (Irbis)]]></author>
			<pubDate>Sun, 23 Feb 2014 11:16:55 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=80297#p80297</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Загрузить сохранить из поля Edit в ini файл]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=80293#p80293</link>
			<description><![CDATA[<p>Приведите <span class="bbu">полный</span> код скрипта. Укажите, <span class="bbu">что конкретно</span> не получается.</p>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Sun, 23 Feb 2014 09:01:10 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=80293#p80293</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Загрузить сохранить из поля Edit в ini файл]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=80292#p80292</link>
			<description><![CDATA[<p>Подскажите что тут не так .</p>]]></description>
			<author><![CDATA[null@example.com (Ядрён)]]></author>
			<pubDate>Sun, 23 Feb 2014 07:59:02 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=80292#p80292</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Загрузить сохранить из поля Edit в ini файл]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=80263#p80263</link>
			<description><![CDATA[<p>Почти разобрался, помогите с именем файла которое можно написать поле команды &quot;FileSelectFile&quot;.<br />Когда пытаюсь сохранить файл &quot;ini&quot; под своим именем, то сохраняет всё равно под именем &quot;program.ini&quot;.И когда пытаюсь открыть другой файл &quot;ini&quot; открывает только файл &quot;program.ini&quot;.<br /></p><div class="codebox"><pre><code>Save:
Gui Submit, NoHide

FileSelectFile, program, S1, , Select the program you would like to run, *.ini

IniWrite, %DllCall3%, %a_scriptdir%\program.ini, xdirectory, dir3 
IniWrite, %DllCall1%, %a_scriptdir%\program.ini, ydirectory, dir1 
IniWrite, %DllCall2%, %a_scriptdir%\program.ini, sldirectory, dir2 
Return

Open:
Gui Submit, NoHide
FileSelectFile, program, 1, , Select the program you would like to run, *.ini

IniRead, OutputVar3, %a_scriptdir%\program.ini, xdirectory, dir3
IniRead, OutputVar1, %a_scriptdir%\program.ini, ydirectory, dir1
IniRead, OutputVar2, %a_scriptdir%\program.ini, sldirectory, dir2

GuiControl,, DllCall3, % OutputVar3
GuiControl,, DllCall1, % OutputVar1
GuiControl,, DllCall2, % OutputVar2

Return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Ядрён)]]></author>
			<pubDate>Sat, 22 Feb 2014 11:26:37 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=80263#p80263</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Загрузить сохранить из поля Edit в ini файл]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=80249#p80249</link>
			<description><![CDATA[<p>Ничего не понял, что куда, объясните пожалуйста.<br /></p><div class="codebox"><pre><code>IniRead, OutputVar, Filename, Section, Key [, Default]
IniWrite, Value, Filename, Section, Key</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Ядрён)]]></author>
			<pubDate>Fri, 21 Feb 2014 14:31:11 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=80249#p80249</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Загрузить сохранить из поля Edit в ini файл]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=80231#p80231</link>
			<description><![CDATA[<p>Gui, Submit<br />GuiControl<br />GuiControlGet</p>]]></description>
			<author><![CDATA[null@example.com (YMP)]]></author>
			<pubDate>Fri, 21 Feb 2014 03:29:53 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=80231#p80231</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Загрузить сохранить из поля Edit в ini файл]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=80215#p80215</link>
			<description><![CDATA[<p>Доброго времени суток. Подскажите пожалуйста как сделать чтение и запись параметров из полей &quot;Edit&quot; по нажатию кнопок &quot;Open&quot; и &quot;Save&quot;.</p><div class="codebox"><pre><code>

Gui, Add, Edit, vDllCall3 gMySubroutine, 

Gui, Add, Edit, vDllCall1  gMySubroutine, 

Gui, Add, Edit, vDllCall2  gMySubroutine, 

Gui, Add, Button, gSave, Save

Gui, Add, Button, gOpen, Open

Gui, Show, x557 y130 h171 w255, New GUI Window
Return

*~lbutton::
while GetKeyState(&quot;LButton&quot;,&quot;P&quot;)
{
DllCall(&quot;Sleep&quot;, UInt, Time)
DllCall(&quot;mouse_event&quot;,uint,1,int,x,int,y,uint,0,int,0)
DllCall(&quot;Sleep&quot;, UInt, Timee)

}
Return

Save:
Gui Submit, NoHide
FileSelectFile, SelectedFile, S1, ,Сохранить файл, Текстовые файлы (*.ini)

return

Open:
Gui Submit, NoHide
FileSelectFile, SelectedFile, M1, ,Открыть файл, Текстовые файлы (*.ini)

return

Edit:
Return
MySubroutine:
Gui Submit, NoHide
Time := DllCall2%Sleep%

Timee := DllCall2%Sleep%

x := DllCall1%Move%

y := DllCall3%RMove%
Return
GuiClose:
ExitApp</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Ядрён)]]></author>
			<pubDate>Thu, 20 Feb 2014 17:06:54 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=80215#p80215</guid>
		</item>
	</channel>
</rss>
