<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: перезапуск скомпилированного скрипта]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=16539&amp;type=atom" />
	<updated>2021-08-17T15:09:13Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=16539</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: перезапуск скомпилированного скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=149269#p149269" />
			<content type="html"><![CDATA[<p><a href="http://www.script-coding.com/AutoHotkey/SingleInstance.html">SingleInstance</a></p>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2021-08-17T15:09:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=149269#p149269</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: перезапуск скомпилированного скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=149267#p149267" />
			<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>2021-08-17T09:31:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=149267#p149267</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: перезапуск скомпилированного скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=149263#p149263" />
			<content type="html"><![CDATA[<p>Добрый день. С расширением .ahk все работает корректно, но если компилироваться в .exe, то вылезает окно что старая версия скрипта уже запущена. То есть скрипт перезапускается почему-то в скомпилированном виде.</p><br /><br /><div class="codebox"><pre><code>
Gui, Add, Button, x12 y29 w190 h40 , Index-ALL
Gui, Add, Button, x212 y29 w190 h90 , IP(10.74)
Gui, Add, Button, x12 y79 w190 h40 , Index-N
Gui, Show, x448 y478 h155 w420,
Return

ButtonIndex-ALL:
InputBox, UserInput, Enter Name, INDEX?:, , 300, 150
InputBox, UserInput1, Enter Name, WHO?:, , 300, 150

FileAppend,
(
ping x-%UserInput%-%UserInput1% -t ;пример
) ,C:\Users\Roman.Chernov\Desktop\batman.bat
Run, C:\Users\Roman.Chernov\Desktop\batman.bat
sleep 2000
FileDelete, C:\Users\Roman.Chernov\Desktop\batman.bat
Return

;________________________________________

ButtonIndex-N:

InputBox, UserInput, Enter Name, INDEX?:, , 300, 150

FileAppend,
(
ping x-%UserInput%-x -t ;пример
) ,C:\Users\Roman.Chernov\Desktop\batman.bat
Run, C:\Users\Roman.Chernov\Desktop\batman.bat
sleep 2000
FileDelete, C:\Users\Roman.Chernov\Desktop\batman.bat
Return

;________________________________________

ButtonIP(10.74):

InputBox, UserInput, Enter Name, IP?:10.74..., , 300, 150

FileAppend,
(
ping 10.74.%UserInput% -t
) ,C:\Users\Roman.Chernov\Desktop\batman.bat
Run, C:\Users\Roman.Chernov\Desktop\batman.bat
sleep 2000
FileDelete, C:\Users\Roman.Chernov\Desktop\batman.bat
Return

GuiClose:
ExitApp
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[DOLAS1337]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41195</uri>
			</author>
			<updated>2021-08-17T03:48:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=149263#p149263</id>
		</entry>
</feed>
