<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; [AHK] Очень странно работает Hotkey]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=11493&amp;type=atom" />
	<updated>2016-04-13T15:51:01Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=11493</id>
		<entry>
			<title type="html"><![CDATA[Re: [AHK] Очень странно работает Hotkey]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=102546#p102546" />
			<content type="html"><![CDATA[<p>Всё, разобрался, благодарствую мастера.</p>]]></content>
			<author>
				<name><![CDATA[alekksss]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33684</uri>
			</author>
			<updated>2016-04-13T15:51:01Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=102546#p102546</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [AHK] Очень странно работает Hotkey]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=102545#p102545" />
			<content type="html"><![CDATA[<p><strong>Alectric</strong> а как быть с #IfWinActive, GTA:SA:MP<br />Клавиша срабатывает в любом случае.</p>]]></content>
			<author>
				<name><![CDATA[alekksss]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33684</uri>
			</author>
			<updated>2016-04-13T15:46:26Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=102545#p102545</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [AHK] Очень странно работает Hotkey]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=102544#p102544" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>return
PrintR:
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2016-04-13T15:38:57Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=102544#p102544</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [AHK] Очень странно работает Hotkey]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=102543#p102543" />
			<content type="html"><![CDATA[<p><span style="color: green"><strong>alekksss</strong>, в конце предложения у нас <a href="http://forum.script-coding.com/viewtopic.php?id=9590">положена точка</a>, исправьте. Если скрипт касается автоматизации игр, он должен быть в этой ветке, такие правила.</span></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2016-04-13T15:35:27Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=102543#p102543</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [AHK] Очень странно работает Hotkey]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=102542#p102542" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong> для игры, но самой игры функция Hotkey не касается, он странно срабатывает.</p>]]></content>
			<author>
				<name><![CDATA[alekksss]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33684</uri>
			</author>
			<updated>2016-04-13T15:29:00Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=102542#p102542</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [AHK] Очень странно работает Hotkey]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=102541#p102541" />
			<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>2016-04-13T14:09:55Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=102541#p102541</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [AHK] Очень странно работает Hotkey]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=102540#p102540" />
			<content type="html"><![CDATA[<p>Тогда приводите пример без </p><div class="codebox"><pre><code>#include ..\..\..\include\SAMP.ahk</code></pre></div><p>и</p><div class="codebox"><pre><code>isInChat()</code></pre></div><p>на примере блокнота например.</p><div class="quotebox"><cite>alekksss пишет:</cite><blockquote><p>#IfWinActive и Hotkey, ifWinActive не попагает, клавиша работает даже вне игры.</p></blockquote></div><p>А где пример их использования?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2016-04-13T14:09:51Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=102540#p102540</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [AHK] Очень странно работает Hotkey]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=102538#p102538" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong> причем здесь игры если я спрашиваю о функции AHK Hotkey, на примере бинда...</p>]]></content>
			<author>
				<name><![CDATA[alekksss]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33684</uri>
			</author>
			<updated>2016-04-13T12:59:46Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=102538#p102538</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [AHK] Очень странно работает Hotkey]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=102531#p102531" />
			<content type="html"><![CDATA[<p><span style="color: green"><strong>alekksss</strong>, по играм темы здесь, не создавайте в ветке Autohotkey.</span></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2016-04-13T09:36:19Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=102531#p102531</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [AHK] Очень странно работает Hotkey]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=102529#p102529" />
			<content type="html"><![CDATA[<p>ЗЫ: Функцию сделал чтобы в последствии можно было перезагрузить кнопки)</p>]]></content>
			<author>
				<name><![CDATA[alekksss]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33684</uri>
			</author>
			<updated>2016-04-13T08:32:02Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=102529#p102529</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[[AHK] Очень странно работает Hotkey]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=102528#p102528" />
			<content type="html"><![CDATA[<p>Доброго времени суток уважаемые кодеры. Делаю биндер для себя с использованием GUI. Сделал сохранение и загрузку с конфига.<br />Дело дошло до горячих клавиш загруженных с config.ini.<br />Нарыл что можно создать горячуу клавишу по срадствам Hotkey.<br />А теперь сама проблема. При запуске скрипта хоткей срабатывает сам по себе, каждый, единожды. Затем уже работает нормально. #IfWinActive и Hotkey, ifWinActive не попагает, клавиша работает даже вне игры.<br /></p><div class="codebox"><pre><code>SendMode, Input
LoadKeys()
LoadKeys()
{
	iniRead, uTagR, config.ini, settings, varTagR
	iniRead, kPrintR, config.ini, settings, keyPrintR
	iniRead, kPrintRo, config.ini, settings, keyPrintRo
	iniRead, kTime, config.ini, settings, keyTime
	iniRead, kQ, config.ini, settings, keyQ
	iniRead, kWarehouse, config.ini, settings, keyWarehouse
	iniRead, kMembers, config.ini, settings, keyMembers
	Hotkey, ~%kPrintR%, PrintR
	Hotkey, ~%kPrintRo%, PrintRo
	return
}
#include ..\..\..\include\SAMP.ahk
PrintR:
if(!isInChat())
{
	Send, {f6}^{vk41}{Backspace}/r [%uTagR%]:{space}
}
return
PrintRo:
if(!isInChat())
{
	Send, {f6}^{vk41}{Backspace}/r (( {space})){left 3}
}
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[alekksss]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33684</uri>
			</author>
			<updated>2016-04-13T08:29:33Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=102528#p102528</id>
		</entry>
</feed>
