<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; Нужно полное блокирование (и подмена) сочетания клавиш в игре.]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=15614&amp;type=atom" />
	<updated>2020-08-19T22:02:18Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=15614</id>
		<entry>
			<title type="html"><![CDATA[Re: Нужно полное блокирование (и подмена) сочетания клавиш в игре.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=141785#p141785" />
			<content type="html"><![CDATA[<p>Некоторые игры имеют свой перехват событий клавиш и фиг им что отправить извне.</p><p>Ещё вариант - повысить права самому скрипту (так же вначале скрипта): </p><div class="codebox"><pre><code>;Запуск от Администратора:
full_command_line := DllCall(&quot;GetCommandLine&quot;, &quot;str&quot;)
if not (A_IsAdmin or RegExMatch(full_command_line, &quot; /restart(?!\S)&quot;))
{
 Try
  {
   If A_IsCompiled
    RunWait *RunAs &quot;%A_ScriptFullPath%&quot; /restart
   Else
    RunWait *RunAs &quot;%A_AhkPath%&quot; /restart &quot;%A_ScriptFullPath%&quot;
  }
 }
If Not A_IsAdmin
{
 TrayTip, , Обычные права доступа
 ;MsgBox,Administrator rights not found, the program might not work correctly.
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2020-08-19T22:02:18Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=141785#p141785</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Нужно полное блокирование (и подмена) сочетания клавиш в игре.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=141784#p141784" />
			<content type="html"><![CDATA[<p>Возможно поможет, но не уверен: (добавить в самый вверх скрипта)</p><div class="codebox"><pre><code>SetKeyDelay, 10, 10
SetKeyDelay, 0, 10</code></pre></div><p>Так же можно попробовать:</p><div class="codebox"><pre><code>Hotkey, WheelUp, Start
Hotkey, WheelUp, On

Start:
SoundBeep
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2020-08-19T22:01:04Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=141784#p141784</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Нужно полное блокирование (и подмена) сочетания клавиш в игре.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=141767#p141767" />
			<content type="html"><![CDATA[<p>Скажу сразу - выяснил, что в обычных виндовых программах - срабатывает как надо, но в игре - нет ((<br />Без понятия в чём суть отличия.</p><p>#InstallKeybdHook<br />#InstallMouseHook<br />#IfWinActive Russian Fishing 4</p><p>WheelUp::<br />{<br />SoundBeep<br />return<br />}</p><p>Я специально упростил код до предела - была проверка на прижатость Ctrl и т.п.<br />Сейчас просто пытаюсь получить писк от вращения колёсика ВМЕСТО реакции игры на вращение вверх.<br />Но остаётся и писк и реакция. <img src="//forum.script-coding.com/img/smilies/sad.png" width="15" height="15" />(</p><p>Втыкание первых двух команд над SoundBeep тоже не помогло.<br />(Да, я знаю, что полный нуб в автохоткее).</p>]]></content>
			<author>
				<name><![CDATA[Gray12]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41032</uri>
			</author>
			<updated>2020-08-18T18:08:17Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=141767#p141767</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Нужно полное блокирование (и подмена) сочетания клавиш в игре.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=141764#p141764" />
			<content type="html"><![CDATA[<p>Весь код покажите.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2020-08-18T17:23:39Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=141764#p141764</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Нужно полное блокирование (и подмена) сочетания клавиш в игре.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=141763#p141763" />
			<content type="html"><![CDATA[<p>Здравствуйте!<br />Собственно речь идёт о сочетании Ctrl с вращением колёсиком мышки.<br />К нему игрой привязано определённое действие. Точнее оно привязано к самому вращению колёсика,<br />но при нажатом Ctrl делает тоже самое.<br />А мне нужно, чтобы при нажатом Ctrl делалось другое действие.<br />Это вообще как то возможно?</p><p>Пробовал вставлять в начало скрипта </p><p>#InstallKeybdHook<br />#InstallMouseHook</p><p>но эффекта нет..</p><p>Помогите, пожалуйста!<br />Буду премного благодарен.</p>]]></content>
			<author>
				<name><![CDATA[Gray12]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41032</uri>
			</author>
			<updated>2020-08-18T13:41:01Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=141763#p141763</id>
		</entry>
</feed>
