<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Пароль на AHK]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=10289&amp;type=atom" />
	<updated>2014-12-30T17:32:30Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=10289</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Пароль на AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=89874#p89874" />
			<content type="html"><![CDATA[<p>OFF:<br />Просто привык с реестром работать.</p>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2014-12-30T17:32:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=89874#p89874</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Пароль на AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=89873#p89873" />
			<content type="html"><![CDATA[<p>А зачем такие сложности с регистром?<br />От дурака достаточно:<br /></p><div class="codebox"><pre><code>InputBox,pass,Пароль,Введите пароль,HIDE,,,,,,,***
If (pass!=&quot;Password&quot;)
{
  tooltip,Неворно
  sleep,2000
  exitapp
}

msgbox,Ok</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2014-12-30T17:30:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=89873#p89873</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Пароль на AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=89872#p89872" />
			<content type="html"><![CDATA[<p><a href="http://forum.script-coding.com/viewtopic.php?pid=89864#p89864">Я же уже описал...</a></p>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2014-12-30T17:27:06Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=89872#p89872</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Пароль на AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=89871#p89871" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Alectric пишет:</cite><blockquote><div class="codebox"><pre><code>Gui, -Caption +Border +ToolWindow +AlwaysOnTop
Gui, Add, Text, vText
Gui, Add, Edit, yp xp w125 hwndhPass vpass
GuiControl, Focus, Text
SendMessage, EM_SETCUEBANNER := 0x1501, 0, &quot;Password&quot;,, ahk_id %hPass%
Gui, Show


~numpadenter::
~enter::
gui,submit
RegRead,Password,HKCR,.txt

If (pass!=Password)
{
  tooltip,Неворно
  sleep,2000
  exitapp
}
return

~esc::
gui,hide
;exitapp
return
</code></pre></div></blockquote></div><p>Если я вас правильно понял то должно быть так?<br />Да,и как создать пароль в реестре?</p>]]></content>
			<author>
				<name><![CDATA[HideGenius]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32783</uri>
			</author>
			<updated>2014-12-30T17:05:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=89871#p89871</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Пароль на AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=89870#p89870" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Gui, -Caption +Border +ToolWindow +AlwaysOnTop
Gui, Add, Text, vText
Gui, Add, Edit, yp xp w125 hwndhPass vpass
GuiControl, Focus, Text
SendMessage, EM_SETCUEBANNER := 0x1501, 0, &quot;Password&quot;,, ahk_id %hPass%
Gui, Show


~numpadenter::
~enter::
gui,submit
msgbox,% pass
return

~esc::
gui,hide
;exitapp
return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2014-12-30T16:53:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=89870#p89870</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Пароль на AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=89869#p89869" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Alectric пишет:</cite><blockquote><p>Вот пример, пароль txtfile.</p></blockquote></div><p>Можно сделать такое же окно только что бы была только строка ввода, как на картинке ниже.<br /><span class="postimg"><img src="https://pp.vk.me/c625529/v625529742/14933/7xbStq46hKY.jpg" alt="https://pp.vk.me/c625529/v625529742/14933/7xbStq46hKY.jpg" /></span><br />Вот код скрипта, нужно только чтобы при включении скрипта появлялось только строка ввода как на картинке без кнопок и без обрамления окна, а кнопки ОК и отмена заменяли бы ентер и эскейп. Заранее благодарю.<br /></p><div class="codebox"><pre><code>Gui, +AlwaysOnTop
Gui, Add, Text, vText
Gui, Add, Edit, yp xp w125 hwndhPass
GuiControl, Focus, Text
SendMessage, EM_SETCUEBANNER := 0x1501, 0, &quot;Password&quot;,, ahk_id %hPass%
Gui, Show</code></pre></div>]]></content>
			<author>
				<name><![CDATA[HideGenius]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32783</uri>
			</author>
			<updated>2014-12-30T15:20:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=89869#p89869</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Пароль на AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=89868#p89868" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>ypppu пишет:</cite><blockquote><div class="quotebox"><cite>HideGenius пишет:</cite><blockquote><p>Мне нужно только скрипт запаролить поскольку пользуюсь не я 1 компютером.</p></blockquote></div><p> Одно другому не противоречит. На компьютере можно создать нескольких пользователей. Я вообще себе не представляю, как может быть порядок на компьютере, где у всех людей одна общая учётка.</p></blockquote></div><p>Я не могу поставить все на пароли потому что это не личный копютер, но защитить свои данные надо.</p>]]></content>
			<author>
				<name><![CDATA[HideGenius]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32783</uri>
			</author>
			<updated>2014-12-30T15:17:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=89868#p89868</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Пароль на AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=89867#p89867" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Eduard пишет:</cite><blockquote><p>Советую поступить так:</p></blockquote></div><p>Спасибо, это как раз именно то, что мне нужно.</p>]]></content>
			<author>
				<name><![CDATA[HideGenius]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32783</uri>
			</author>
			<updated>2014-12-30T15:15:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=89867#p89867</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Пароль на AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=89866#p89866" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>HideGenius пишет:</cite><blockquote><p>Мне нужно только скрипт запаролить поскольку пользуюсь не я 1 компютером.</p></blockquote></div><p> Одно другому не противоречит. На компьютере можно создать нескольких пользователей. Я вообще себе не представляю, как может быть порядок на компьютере, где у всех людей одна общая учётка.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2014-12-30T14:54:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=89866#p89866</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Пароль на AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=89864#p89864" />
			<content type="html"><![CDATA[<p>Вот пример, пароль txtfile.<br />Только место хранения пароля в реестре нужно выбрать другое например &quot;HKCU\software\asdf&quot;</p><div class="codebox"><pre><code>RegRead,Password,HKCR,.txt

InputBox,pass,Пароль,Введите пароль,HIDE,,,,,,,***
If (pass!=Password)
{
  tooltip,Неворно
  sleep,2000
  exitapp
}

msgbox,Ok</code></pre></div><p>Вот так сохранить или поменять пароль.<br /></p><div class="codebox"><pre><code>  RegWrite,REG_SZ,HKCU,software\asdf,,txtfile
</code></pre></div><p>В данном примере пароль тот же.</p>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2014-12-30T14:40:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=89864#p89864</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Пароль на AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=89863#p89863" />
			<content type="html"><![CDATA[<p>Советую поступить так:<br />В главном скрипте пишешь что-то похожее:<br /></p><div class="codebox"><pre><code>
:*:parol:: ; вместо &quot;parol&quot; пароль
Run, Reserve_script.ahk ; Reserve_script – прячешь этот файл так что бы его не смогли найти
ExitApp
return
</code></pre></div><p>Содержание Reserve_script.ahk:<br /></p><div class="codebox"><pre><code>
#NoTrayIcon
:*:parol::
Run, Main_script.ahk ; Main_script – твой главный скрипт
ExitApp
</code></pre></div><p>Итог: вводишь пароль во время работы скрипт ложиться, вводишь еще раз – восстанавливается.<br />ПС: защита для дураков. Что бы не правили исходники их лучше скомпилировать в .exe.</p>]]></content>
			<author>
				<name><![CDATA[Eduard]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=28482</uri>
			</author>
			<updated>2014-12-30T14:37:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=89863#p89863</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Пароль на AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=89862#p89862" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Alectric пишет:</cite><blockquote><p>Можно использовать &quot;InputBox&quot; и &quot;RegWrite\RegRead&quot; (т.е. хранить пароль в реестре, если они конечно не умеют им пользоваться).</p></blockquote></div><p>Было бы замечательно если бы вы дали пример скрипта.</p>]]></content>
			<author>
				<name><![CDATA[HideGenius]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32783</uri>
			</author>
			<updated>2014-12-30T14:27:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=89862#p89862</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Пароль на AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=89858#p89858" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>ypppu пишет:</cite><blockquote><p>А почему не использовать смену (блокировку) пользователя Windows? И запаролить пользователя.</p></blockquote></div><p>Мне нужно только скрипт запаролить поскольку пользуюсь не я 1 компютером.</p>]]></content>
			<author>
				<name><![CDATA[HideGenius]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32783</uri>
			</author>
			<updated>2014-12-30T13:03:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=89858#p89858</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Пароль на AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=89852#p89852" />
			<content type="html"><![CDATA[<p>А почему не использовать смену (блокировку) пользователя Windows? И запаролить пользователя.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2014-12-30T07:17:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=89852#p89852</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Пароль на AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=89850#p89850" />
			<content type="html"><![CDATA[<p>Можно использовать &quot;InputBox&quot; и &quot;RegWrite\RegRead&quot; (т.е. хранить пароль в реестре, если они конечно не умеют им пользоваться).</p>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2014-12-30T06:08:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=89850#p89850</id>
		</entry>
</feed>
