<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; АНК: Проблемы с созданием скриптов для игры World of Tanks]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=5847&amp;type=atom" />
	<updated>2011-05-30T16:59:53Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=5847</id>
		<entry>
			<title type="html"><![CDATA[Re: АНК: Проблемы с созданием скриптов для игры World of Tanks]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48834#p48834" />
			<content type="html"><![CDATA[<p>Собственно проблему решил методом перебора подходящей для данной игры программы. Из всей &quot;кучи&quot; на мою Ultimate подошла только Hot Keyboard, которая нормально работает в окне W.o.T. Client. Конечно по сравнению с АНК&nbsp; программа скудна и примитивна, но....работает... Пообщался со знакомыми программерами, в один голос говорят что причина отказа работы скриптов АНК в конфликте последней и X7 Oscar Edition (макрокоманды для мыши A4Tech X7 с встроенной памятью), и вообще советовали не допускать параллельной работы в Windows 7 программ, использующих клавиатурные макрокоманды.</p>]]></content>
			<author>
				<name><![CDATA[Запорожец]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26982</uri>
			</author>
			<updated>2011-05-30T16:59:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48834#p48834</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК: Проблемы с созданием скриптов для игры World of Tanks]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48815#p48815" />
			<content type="html"><![CDATA[<p>А у меня господа оба ваши скрипта не работают. А вот команда Launch_App1 работает в окне программы без проблем.</p>]]></content>
			<author>
				<name><![CDATA[Запорожец]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26982</uri>
			</author>
			<updated>2011-05-29T23:15:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48815#p48815</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК: Проблемы с созданием скриптов для игры World of Tanks]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48805#p48805" />
			<content type="html"><![CDATA[<p>Считаю, что надо проверить все варианты:</p><div class="codebox"><pre><code>;#IfWinActive, ahk_class App
#Persistent
#InstallKeybdHook
#NoEnv
#SingleInstance, force
Process, Priority,, High
Sensitivity = 20
CoordMode, Mouse
SendMode, Input
SetKeyDelay -1, -1
Return
F12:: ExitApp
MButton::
   NewGesture = 1
   Loop
      {
         If NewGesture
            {
               MouseGetPos, StartX, StartY
               NewGesture =
            }
         MouseGetPos, X, Y
         DX := X - StartX, DY := Y - StartY
         If (Abs(DX) &gt;= Sensitivity)
               Gesture := (DX &gt; 0 ? &quot;{sc20}&quot; : &quot;{sc1E}&quot;), NewGesture := 1
         If (Abs(DY) &gt;= Sensitivity)
               Gesture := (DY &gt; 0 ? &quot;{sc1F}&quot; : &quot;{sc11}&quot;), NewGesture := 1
         If (NewGesture &amp;&amp; Gesture != PrevGesture)
               Gestures .= Gesture, PrevGesture := Gesture
         Sleep, 10
         SendPlay, % Gestures
         Gestures := Gesture := PrevGesture := &quot;&quot;
         If GetKeyState(&quot;MButton&quot;, &quot;P&quot;) = 0
               Break
      }
   Return
MButton Up::Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2011-05-29T18:21:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48805#p48805</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК: Проблемы с созданием скриптов для игры World of Tanks]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48804#p48804" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>SendMode Input 
#InstallKeybdHook
#NoEnv
#Persistent
#SingleInstance, force
Sensitivity = 20
CoordMode, Mouse
Return
SetKeyDelay -1, -1
Process Priority,, High
F12:: ExitApp
;#IfWinActive, ahk_class App
MButton::
   NewGesture = 1
   Loop
      {
         If NewGesture
         {
            MouseGetPos, StartX, StartY
            NewGesture =
         }
         MouseGetPos, X, Y
         DX := X - StartX, DY := Y - StartY
         If (Abs(DX) &gt;= Sensitivity)
            Gesture := (DX &gt; 0 ? &quot;{d}&quot; : &quot;{a}&quot;), NewGesture := 1
         If (Abs(DY) &gt;= Sensitivity)
            Gesture := (DY &gt; 0 ? &quot;{s}&quot; : &quot;{w}&quot;), NewGesture := 1
         If (NewGesture &amp;&amp; Gesture != PrevGesture)
            Gestures .= Gesture, PrevGesture := Gesture
         Sleep, 10
         Sendplay, % Gestures
         Gestures := Gesture := PrevGesture := &quot;&quot;
         If GetKeyState(&quot;MButton&quot;, &quot;P&quot;) = 0
            break
      }
Return
MButton Up::Return</code></pre></div><p>Нашел на просторах этого форума и чуть изменил под WoT, тем не менее, в чат пишет кнопки, а танк не поворачивает.<br />Кстити на кризис 2 тоже писал простой макрос, но он тоже не работал, ни sendplay ни send ни input, <br />думаю я что это ,возможно, делается специально, ну или руки у меня как два неопределенных интеграла <img src="//forum.script-coding.com/img/smilies/lol.png" width="15" height="15" /> .</p>]]></content>
			<author>
				<name><![CDATA[vinternete]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25439</uri>
			</author>
			<updated>2011-05-29T18:10:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48804#p48804</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК: Проблемы с созданием скриптов для игры World of Tanks]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48802#p48802" />
			<content type="html"><![CDATA[<p>Нужно выкладывать факты/наработки (код), просто со слов тяжело понять почему/как. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2011-05-29T17:46:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48802#p48802</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК: Проблемы с созданием скриптов для игры World of Tanks]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48795#p48795" />
			<content type="html"><![CDATA[<p>Тоже пробовал создать скрипт, который при зажатой кнопке и движении мыши по горизонтали нажимал бы или A или D,<br />(чтобы поворачивать пт-сау в снайпер режиме), но кнопки не нажимались, хотя если запустить чат, то там они прописывались, ну а например q::a тоже работает, так что это какая-то &quot;защита&quot; либо криворукость их программистов.</p>]]></content>
			<author>
				<name><![CDATA[vinternete]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25439</uri>
			</author>
			<updated>2011-05-29T16:55:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48795#p48795</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК: Проблемы с созданием скриптов для игры World of Tanks]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48776#p48776" />
			<content type="html"><![CDATA[<p>Можно проверить мысль на счёт создателей, только в другом/других приложении/приложениях.</p>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2011-05-29T13:39:29Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48776#p48776</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК: Проблемы с созданием скриптов для игры World of Tanks]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48773#p48773" />
			<content type="html"><![CDATA[<p>Собственно скан&nbsp; код </p><div class="codebox"><pre><code>VK  SC    Type    Up/Dn    Elapsed    Key        Window
-------------------------------------------------------------------------------------------------------------
A2  01D         u    13.85    Ctrl               C:\Users\valeriy\Скрипты\InstallKeybdHook.ahk - AutoHotkey v1.0.48.05
A6  16A         d    8.77    Browser_Back       
A6  16A         u    0.41    Browser_Back       
74  03F         d    0.77    F5                 
74  03F         u    0.13    F5</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Запорожец]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26982</uri>
			</author>
			<updated>2011-05-29T11:43:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48773#p48773</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК: Проблемы с созданием скриптов для игры World of Tanks]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48772#p48772" />
			<content type="html"><![CDATA[<p>Я ради интереса назначил вместо мультимедийной SC16A (так она определилась) сочетание #z, но результ тот-же. Может создатели игры намеренно запретили работу скриптов АНК? Попробую спросить у них.</p>]]></content>
			<author>
				<name><![CDATA[Запорожец]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26982</uri>
			</author>
			<updated>2011-05-29T11:39:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48772#p48772</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК: Проблемы с созданием скриптов для игры World of Tanks]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48771#p48771" />
			<content type="html"><![CDATA[<p>Такого скэн кода нет (<a href="http://stuff.mit.edu/afs/sipb/project/vmdialup/lib/vmware-console/help-manual/devices_linux_kb_vscan_gsx.htm">sc16a</a>) на клавиатуре стандарта 104-key U.S. Может (если это не критично) стоит попробовать <em>повесить</em> Escape на другую клавишу, или это Ваша опечатка?</p>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2011-05-29T11:35:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48771#p48771</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК: Проблемы с созданием скриптов для игры World of Tanks]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48769#p48769" />
			<content type="html"><![CDATA[<p>К сожалению и скомпилированный в .exe скрипт тоже не работает. Просто интерестно, почему тогда скрипты для мыши работают? Это не может быть связано с тем что мышь и клавиатура дополнительно опредены как HID клавиатура?</p>]]></content>
			<author>
				<name><![CDATA[Запорожец]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26982</uri>
			</author>
			<updated>2011-05-29T11:06:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48769#p48769</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК: Проблемы с созданием скриптов для игры World of Tanks]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48768#p48768" />
			<content type="html"><![CDATA[<p>Есть много прецедентов, когда скрипты не работают в играх. Могу посоветовать скомпилировать скрипт в исполняющий файл (*.exe).</p>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2011-05-29T10:49:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48768#p48768</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК: Проблемы с созданием скриптов для игры World of Tanks]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48766#p48766" />
			<content type="html"><![CDATA[<p>Ну да, но работать то не хочет, хотя если вместо окна игры в #IfWinActive ahk_clas добавить notepad++&nbsp; к примеру, то все чудесно пашет</p>]]></content>
			<author>
				<name><![CDATA[Запорожец]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26982</uri>
			</author>
			<updated>2011-05-29T10:35:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48766#p48766</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК: Проблемы с созданием скриптов для игры World of Tanks]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48765#p48765" />
			<content type="html"><![CDATA[<p>Всё, что нужно из иформации того окна, это вот эта строка. </p><div class="quotebox"><blockquote><p>ahk_class App</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2011-05-29T10:34:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48765#p48765</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК: Проблемы с созданием скриптов для игры World of Tanks]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48763#p48763" />
			<content type="html"><![CDATA[<p>Вот что определил с помощью AutoIT3 Window Spy :<br /></p><div class="codebox"><pre><code>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;( Window Title &amp; Class )&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;
W.o.T. Client
ahk_class App

&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;( Mouse Position )&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;
On Screen:    610, 267  (less often used)
In Active Window:    618, 275

&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;( Now Under Mouse Cursor )&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;

Color:    0xF0F0F0  (Blue=F0 Green=F0 Red=F0)

&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;( Active Window Position )&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;
left: -8     top: -8     width: 1520     height: 916

&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;( Status Bar Text )&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;

&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;( Visible Window Text )&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;

&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;( Hidden Window Text )&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;

&gt;&gt;&gt;&gt;( TitleMatchMode=slow Visible Text )&lt;&lt;&lt;&lt;

&gt;&gt;&gt;&gt;( TitleMatchMode=slow Hidden Text )&lt;&lt;&lt;&lt;</code></pre></div><p>А вот мой пробный скрипт, имитирующий нажатие Escape:<br /></p><div class="codebox"><pre><code> #IfWinActive ahk_class App W.o.T. Client
SC16A::Escape
return</code></pre></div><p>Скрипт в итоге не работает в окне игры.</p>]]></content>
			<author>
				<name><![CDATA[Запорожец]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26982</uri>
			</author>
			<updated>2011-05-29T09:59:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48763#p48763</id>
		</entry>
</feed>
