<?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=15862&amp;type=atom" />
	<updated>2020-11-28T17:03:30Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=15862</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Привязка скрипта к пк]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143728#p143728" />
			<content type="html"><![CDATA[<p><strong>nncoder</strong></p><p>Кто мешает проверять наличие файла и создавать под другим названием или удалять его, снимать атрибут и куча чего ещё? Фантазии нет совсем?</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2020-11-28T17:03:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143728#p143728</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Привязка скрипта к пк]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143725#p143725" />
			<content type="html"><![CDATA[<p>Не знаю даже.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2020-11-28T14:07:51Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143725#p143725</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Привязка скрипта к пк]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143724#p143724" />
			<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>2020-11-28T14:03:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143724#p143724</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Привязка скрипта к пк]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143723#p143723" />
			<content type="html"><![CDATA[<p>Ну может, но там ключи обновлять не нужно, они всегда одинаковые, чего бы их использовать <img src="//forum.script-coding.com/img/smilies/sad.png" width="15" height="15" />.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2020-11-28T13:55:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143723#p143723</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Привязка скрипта к пк]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143722#p143722" />
			<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>2020-11-28T13:51:28Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143722#p143722</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Привязка скрипта к пк]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143721#p143721" />
			<content type="html"><![CDATA[<p>Не плохо, но зачем отправлять обычные запросы, когда есть api pastebina.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2020-11-28T13:49:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143721#p143721</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Привязка скрипта к пк]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143720#p143720" />
			<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>2020-11-28T13:46:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143720#p143720</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Привязка скрипта к пк]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143719#p143719" />
			<content type="html"><![CDATA[<p>О господи. Тогда уже такое протестируйте <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" />:<br /></p><div class="codebox"><pre><code>global activation_key := &quot;Hello, myrusakov.ru!&quot; ; ключ активации программы из пастбина писать свой нужно
global api_paste_key := &quot;0JeNRG3D&quot; ; свой api_paste_key из пастбина http://pastebin.com/0JeNRG3D

try {
  api_dev_key := &quot;VwoHZ8NzHOg&quot; ; свой api_dev_key: https://pastebin.com/doc_api
   api_user_key := &quot;502d5b81c68ac20ab7&quot; ; свой api_user_key
     api_option := &quot;show_paste&quot;

    show_paste_raw := &quot;api_dev_key=&quot; . api_dev_key . &quot;&amp;api_user_key=&quot; . api_user_key . &quot;&amp;api_paste_key=&quot; . api_paste_key . &quot;&amp;api_option=&quot; . api_option

   url := &quot;https://pastebin.com/api/api_raw.php&quot;

   HttpObj := ComObjCreate(&quot;WinHttp.WinHttpRequest.5.1&quot;)
    HttpObj.Open(&quot;POST&quot;, url, True)
     HttpObj.SetRequestHeader(&quot;Content-Type&quot;, &quot;application/x-www-form-urlencoded&quot;) ; есть еще вариант с utf-8 HttpObj.SetRequestHeader(&quot;Content-Type&quot;, &quot;application/x-www-form-urlencoded;charset=utf-8&quot;)
  HttpObj.Send(show_paste_raw)
    HttpObj.WaitForResponse()
    Body := HttpObj.ResponseBody
     pData := NumGet(ComObjValue(Body)+8+A_PtrSize)
    ResponseText := StrGet(pData, Body.MaxIndex() + 1, &quot;utf-8&quot;)
     If (ResponseText != activation_key)
   ; может нужно использовать InStr() надежней может будет работать
   ; if ResponseText not in %activation_key%
     {
    ; msgbox Ключ активации программы истек...
    msgbox Окончен период пробного использования ПО! Если хотите дальше использовать данное ПО, приобретите ключ активации у поставщика программы на сайте https://

       ExitApp
     }
     ; }
}
catch e {
    msgbox Не удается установить доступ к сети интернет...
    ExitApp
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2020-11-28T13:45:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143719#p143719</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Привязка скрипта к пк]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143718#p143718" />
			<content type="html"><![CDATA[<p>Думаю, просто руки не очень ровные. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /> Протестируйте такое:<br /></p><div class="codebox"><pre><code>Whr := ComObjCreate(&quot;WinHttp.WinHttpRequest.5.1&quot;)
Whr.Open(&quot;GET&quot;, &quot;https://pastebin.com/raw/ExvZbiDY&quot;, false)
Whr.Send()
MsgBox, % Whr.ResponseText</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-11-28T13:43:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143718#p143718</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Привязка скрипта к пк]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143717#p143717" />
			<content type="html"><![CDATA[<p>Ну мы тестировали эти запросы и они ненадежно работали. А если указывать ключи dev key, api user key, то все нормально работало. Только обязательно Https запросы нужны.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2020-11-28T13:41:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143717#p143717</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Привязка скрипта к пк]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143716#p143716" />
			<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>2020-11-28T13:32:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143716#p143716</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Привязка скрипта к пк]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143715#p143715" />
			<content type="html"><![CDATA[<p>Так у меня тоже отправляются. Просто на многих компьютерах, такие запросы не работают почему-то.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2020-11-28T13:24:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143715#p143715</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Привязка скрипта к пк]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143714#p143714" />
			<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>2020-11-28T13:20:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143714#p143714</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Привязка скрипта к пк]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143713#p143713" />
			<content type="html"><![CDATA[<p>Ну да, так можно еще https://pastebin.com/raw/ExvZbiDY. Все равно плохо работают такие запросы.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2020-11-28T13:17:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143713#p143713</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Привязка скрипта к пк]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143712#p143712" />
			<content type="html"><![CDATA[<p>А откуда вы взяли <em>raw.php</em>? В ссылке не так.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-11-28T13:14:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143712#p143712</id>
		</entry>
</feed>
