<?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=17574&amp;type=atom" />
	<updated>2023-02-03T16:21:28Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=17574</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выдача доступа к скрипту на определённое время]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=156625#p156625" />
			<content type="html"><![CDATA[<p>Всё получилось и работает. Огромное спасибо, <strong>__Михаил__</strong>.</p>]]></content>
			<author>
				<name><![CDATA[shkvrk]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42980</uri>
			</author>
			<updated>2023-02-03T16:21:28Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=156625#p156625</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выдача доступа к скрипту на определённое время]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=156623#p156623" />
			<content type="html"><![CDATA[<p>Хорошо, попробую. <strong>__Михаил__</strong></p>]]></content>
			<author>
				<name><![CDATA[shkvrk]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42980</uri>
			</author>
			<updated>2023-02-03T16:02:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=156623#p156623</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выдача доступа к скрипту на определённое время]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=156622#p156622" />
			<content type="html"><![CDATA[<p><strong>shkvrk</strong> Насколько мне помнится даты в обычном виде (дд.мм.гггг) нужно конвертировать в число (Unix например), тогда их сравнение будет верным. Как вариант записать обратную дату без точек (20230203).</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2023-02-03T15:47:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=156622#p156622</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выдача доступа к скрипту на определённое время]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=156621#p156621" />
			<content type="html"><![CDATA[<p>Извиняюсь, исправил. <strong>teadrinker</strong></p>]]></content>
			<author>
				<name><![CDATA[shkvrk]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42980</uri>
			</author>
			<updated>2023-02-03T15:31:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=156621#p156621</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выдача доступа к скрипту на определённое время]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=156620#p156620" />
			<content type="html"><![CDATA[<p>Посмотрите, как <a href="https://forum.script-coding.com/misc.php?action=rules#links-formatting">правильно</a> ссылки оформлять.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2023-02-03T15:29:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=156620#p156620</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выдача доступа к скрипту на определённое время]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=156619#p156619" />
			<content type="html"><![CDATA[<p>Вот ссылка: <a href="https://github.com/shkvrk/admbinder/blob/main/serial.txt">https://github.com/shkvrk/admbinder/blo … serial.txt</a>. <strong>teadrinker</strong></p>]]></content>
			<author>
				<name><![CDATA[shkvrk]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42980</uri>
			</author>
			<updated>2023-02-03T15:27:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=156619#p156619</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выдача доступа к скрипту на определённое время]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=156618#p156618" />
			<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>2023-02-03T15:25:51Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=156618#p156618</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выдача доступа к скрипту на определённое время]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=156617#p156617" />
			<content type="html"><![CDATA[<p>Так я поэтому и прошу помощи. Как правильно необходимо сделать, чтобы с GitHub скрипт брал дату, которую я туда написал и сравнивал её с реальной? <strong>teadrinker</strong></p><p>Вот код:<br /></p><div class="codebox"><pre><code>
FormatTime, realdate, DDMMYY, ShortDate
if dateaccess &lt; %realdate%
{
msgbox, 0x30,, У Вас закончился доступ к скрипту!, 5
ExitApp
}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[shkvrk]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42980</uri>
			</author>
			<updated>2023-02-03T15:24:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=156617#p156617</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выдача доступа к скрипту на определённое время]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=156616#p156616" />
			<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>2023-02-03T15:22:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=156616#p156616</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выдача доступа к скрипту на определённое время]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=156615#p156615" />
			<content type="html"><![CDATA[<p>Это странно, ибо переменную LVL, nick и сHwid я беру с GitHub и они у меня тоже пустые. <strong>teadrinker</strong></p>]]></content>
			<author>
				<name><![CDATA[shkvrk]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42980</uri>
			</author>
			<updated>2023-02-03T15:20:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=156615#p156615</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выдача доступа к скрипту на определённое время]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=156614#p156614" />
			<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>2023-02-03T15:15:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=156614#p156614</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выдача доступа к скрипту на определённое время]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=156613#p156613" />
			<content type="html"><![CDATA[<p>Что мне нужно записать туда? Просто текст в этой переменной берётся с GitHub. Или я что-то не так делаю или же понимаю. <strong>teadrinker</strong></p>]]></content>
			<author>
				<name><![CDATA[shkvrk]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42980</uri>
			</author>
			<updated>2023-02-03T15:12:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=156613#p156613</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выдача доступа к скрипту на определённое время]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=156612#p156612" />
			<content type="html"><![CDATA[<p>У вас переменная dateaccess пустая.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2023-02-03T13:55:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=156612#p156612</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выдача доступа к скрипту на определённое время]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=156611#p156611" />
			<content type="html"><![CDATA[<p>Сделал вот таким способом, но скрипт читает только dd на GitHub. Если прописать на GitHub дату месяцем ранее, скрипт пишет мне, что доступ закончился.</p><div class="codebox"><pre><code>
global dateaccess := &quot;&quot;

CheckHwid() {
    Active := FALSE
    DriveGet, cHwid, Serial, C:\
    Loop, Parse, % UrlGetContents(hwid_url), `n
    {
        sHwid := strsplit(A_LoopField, &quot; - &quot;)
        if (cHwid == sHwid[1]) {
            Active := TRUE
    	    nick := sHwid[2]
	        LVL := sHwid[3]
	        dateaccess := sHwid[4]
        }
    }
    return Active
}

FormatTime, realdate, ddMMyyyy, ShortDate
if dateaccess &lt; %realdate%
{
msgbox, 0x30,, У Вас закончился доступ к скрипту!, 5
ifMsgBox OK
ExitApp
}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[shkvrk]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42980</uri>
			</author>
			<updated>2023-02-03T13:16:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=156611#p156611</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выдача доступа к скрипту на определённое время]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=156596#p156596" />
			<content type="html"><![CDATA[<p>А может получится сделать что-то из этого?<br />Как в скрипт дополнить переменную с датой? Не очень понимаю просто.<br />На GitHub я записываю вот так: &quot;476450800 - name - 6 - 04.02.2023&quot;. Датой будет тот день, когда доступ должен закончиться.<br /></p><div class="codebox"><pre><code>
global date := &quot;&quot;

CheckHwid() {
    Active := FALSE
    DriveGet, cHwid, Serial, C:\
    Loop, Parse, % UrlGetContents(hwid_url), `n
    {
        sHwid := strsplit(A_LoopField, &quot; - &quot;)
        if (cHwid == sHwid[1]) {
            Active := TRUE
    	    nick := sHwid[2]
	    LVL := sHwid[3]
	    date := sHwid[4]
        }
    }
    return Active
}

if date &lt; dd.MM.yyyy
{
msgbox, 0x30,, У Вас закончился доступ к скрипту!, 5
ExitApp
}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[shkvrk]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42980</uri>
			</author>
			<updated>2023-02-02T18:22:46Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=156596#p156596</id>
		</entry>
</feed>
