<?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="http://forum.script-coding.com/extern.php?action=feed&amp;tid=15077&amp;type=atom" />
	<updated>2019-12-10T13:43:06Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=15077</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Привязка скрипта к компьютеру]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=136789#p136789" />
			<content type="html"><![CDATA[<p>Я имею ввиду перед кодом, который должен выполняться только с лицензией добавить #if.</p>]]></content>
			<author>
				<name><![CDATA[Phoenixxx_Czar]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34426</uri>
			</author>
			<updated>2019-12-10T13:43:06Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=136789#p136789</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Привязка скрипта к компьютеру]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=136788#p136788" />
			<content type="html"><![CDATA[<p><strong>Phoenixxx_Czar</strong><br />Я в коде не вижу ни одного <strong>#If [Expression]</strong>, так что всё зависит как написать и что написать, а так просто не скажешь.</p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2019-12-09T21:28:07Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=136788#p136788</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Привязка скрипта к компьютеру]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=136780#p136780" />
			<content type="html"><![CDATA[<p>А тут не пройдет условие через #IF?</p>]]></content>
			<author>
				<name><![CDATA[Phoenixxx_Czar]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34426</uri>
			</author>
			<updated>2019-12-07T12:52:03Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=136780#p136780</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Привязка скрипта к компьютеру]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=136753#p136753" />
			<content type="html"><![CDATA[<p><strong>pechenko.iwan</strong> <br />	Когда ты пишешь вот так,&nbsp; то это безусловное срабатывание секции hotkey. </p><div class="codebox"><pre><code>Numpad1::
SendInput, {F6} рлоывталоы {enter}
return</code></pre></div><br /><br /><p>Надо добавить проверку внутри самой секции, например вот так.</p><div class="codebox"><pre><code>Numpad1::
If (fKeysGet = False) ;Проверка ключа, если False то он не введён.
       ;Можно добавить стандартную реакцию на Numpad1
   Return 
SendInput, {F6} рлоывталоы {enter}
Return </code></pre></div>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2019-12-04T14:32:33Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=136753#p136753</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Привязка скрипта к компьютеру]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=136746#p136746" />
			<content type="html"><![CDATA[<p>Немного хелп почитать? Если не хотите, у нас ещё коммерческий раздел есть.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2019-12-02T17:44:56Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=136746#p136746</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Привязка скрипта к компьютеру]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=136745#p136745" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Как сделать так,чтобы горячая клавиша не срабатывала пока скрипт не найдет нужный пароль из скаченого файла?</p>]]></content>
			<author>
				<name><![CDATA[pechenko.iwan]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40477</uri>
			</author>
			<updated>2019-12-02T17:40:41Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=136745#p136745</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Привязка скрипта к компьютеру]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=136743#p136743" />
			<content type="html"><![CDATA[<p>Всё правильно, так в коде и написано:<br /></p><div class="codebox"><pre><code>Numpad1::
SendInput, {F6} рлоывталоы {enter}
return</code></pre></div><p>Где тут зависимость от пароля?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2019-12-02T17:01:47Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=136743#p136743</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Привязка скрипта к компьютеру]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=136742#p136742" />
			<content type="html"><![CDATA[<p>Здравствуйте,нашел такой код для привязки скрипта к компьютеру.<br />Вроде бы все работает,но проблема в том что,когда нажимаю на Numpad1 скрипт срабатывает в независимости от того введен пароль или нет.Подскажите,что я делаю не так?<br /></p><div class="codebox"><pre><code>
#NoTrayIcon
strComputer := &quot;.&quot;
objWMIService := ComObjGet(&quot;winmgmts:{impersonationLevel=impersonate}!\\&quot; . strComputer . &quot;\root\cimv2&quot;)
colSettings := objWMIService.ExecQuery(&quot;Select * from Win32_OperatingSystem&quot;)._NewEnum
While colSettings[objOSItem]
{
    Key := objOSItem.SerialNumber
}
;===========================================================================
URLDownloadToFile, https://ahktested1.000webhostapp.com/ahkkey.txt, %a_temp%/d3d9.txt
fileread, read, %a_temp%/d3d9.txt
if read contains %Key%
 goto true
Gui, Font, S16 CBlack Bold, Arial
Gui, Add, Text, x53 y0 w113 h30 , Ваш ключ:
Gui, Font, , 
Gui, Add, Edit, x1 y31 w219 h21 ReadOnly vEdit,
Gui, Add, Button, x35 y52 w153 h24 gClip , Копировать и закрыть
Gui, Show, w221 h76, Key
GuiControl, , Edit, % Key
return
Clip:
Gui, Submit, NoHide
Clipboard := Edit
ExitApp
GuiClose:
ExitApp
true:
msgbox, ключ есть!
If MsgBox Ok
Numpad1::
SendInput, {F6} рлоывталоы {enter}
return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[pechenko.iwan]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40477</uri>
			</author>
			<updated>2019-12-02T16:47:14Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=136742#p136742</id>
		</entry>
</feed>
