<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Распознавание машинного ввода и эмуляции нажатия кнопки мыши.]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=12782</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=12782&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Распознавание машинного ввода и эмуляции нажатия кнопки мыши.».]]></description>
		<lastBuildDate>Mon, 03 Jul 2017 11:02:35 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Распознавание машинного ввода и эмуляции нажатия кнопки мыши.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=117049#p117049</link>
			<description><![CDATA[<p>Я про свой хук.<br />Насчет синхронизации может и ошибаюсь, надо код пробовать с хуком и проверками. Да и задача размытая, помимо координат может и все кнопки мыши тоже надо проверять. А если требуется блокировать все эмулированные действия, то такое скорее всего будет часто подвисать.</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Mon, 03 Jul 2017 11:02:35 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=117049#p117049</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Распознавание машинного ввода и эмуляции нажатия кнопки мыши.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=117048#p117048</link>
			<description><![CDATA[<p>Почему хук не нужен?<br />Для A_TimeIdlePhysical нужен #InstallMouseHook.<br />Насчет синхронизации не понял.</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Mon, 03 Jul 2017 10:55:38 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=117048#p117048</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Распознавание машинного ввода и эмуляции нажатия кнопки мыши.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=117047#p117047</link>
			<description><![CDATA[<p>И даже с нулевым интервалом синхронизация будет так себе.</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Mon, 03 Jul 2017 10:52:06 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=117047#p117047</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Распознавание машинного ввода и эмуляции нажатия кнопки мыши.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=117046#p117046</link>
			<description><![CDATA[<p>Тогда и хук и как бы не нужен.</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Mon, 03 Jul 2017 10:50:09 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=117046#p117046</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Распознавание машинного ввода и эмуляции нажатия кнопки мыши.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=117045#p117045</link>
			<description><![CDATA[<p>Ну да. Через MouseGetPos.</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Mon, 03 Jul 2017 10:48:56 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=117045#p117045</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Распознавание машинного ввода и эмуляции нажатия кнопки мыши.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=117044#p117044</link>
			<description><![CDATA[<p>Так оно и на смену положения не реагирует. Предлагаешь проверять циклом координаты?<br /></p><div class="codebox"><pre><code>SendPlay {Click 100, 200, 0}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Mon, 03 Jul 2017 10:46:21 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=117044#p117044</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Распознавание машинного ввода и эмуляции нажатия кнопки мыши.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=117043#p117043</link>
			<description><![CDATA[<p>Проверять при смене положения курсора.</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Mon, 03 Jul 2017 10:17:38 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=117043#p117043</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Распознавание машинного ввода и эмуляции нажатия кнопки мыши.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=117042#p117042</link>
			<description><![CDATA[<p>Проверять то можно, но когда? Если мы не можем знать, что событие произошло.</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Mon, 03 Jul 2017 09:56:41 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=117042#p117042</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Распознавание машинного ввода и эмуляции нажатия кнопки мыши.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=117041#p117041</link>
			<description><![CDATA[<p>Можно проверять A_TimeIdlePhysical с установленным мышиным хуком.</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Mon, 03 Jul 2017 09:50:48 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=117041#p117041</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Распознавание машинного ввода и эмуляции нажатия кнопки мыши.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=117040#p117040</link>
			<description><![CDATA[<p>MouseMove есть опция Relative.<br /></p><div class="quotebox"><cite>powercat пишет:</cite><blockquote><p>И все равно SendMode Play остается незаметным.</p></blockquote></div><p>HID тоже пропускает такое событие.</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Mon, 03 Jul 2017 09:30:13 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=117040#p117040</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Распознавание машинного ввода и эмуляции нажатия кнопки мыши.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=117038#p117038</link>
			<description><![CDATA[<p><strong>teadrinker</strong><br />Спасибо все работает. И все равно SendMode Play остается незаметным. </p><p>Чуть не в тему. Можно ли данную строку воспроизвести с помощью MouseMove или чего-то из инструментария AutoHotKey?<br /></p><div class="codebox"><pre><code>DllCall(&quot;mouse_event&quot;,uint,1,int,x,int,y,uint,0,int,0)</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (powercat)]]></author>
			<pubDate>Mon, 03 Jul 2017 00:49:13 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=117038#p117038</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Распознавание машинного ввода и эмуляции нажатия кнопки мыши.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=117037#p117037</link>
			<description><![CDATA[<div class="codebox"><pre><code>OnExit, Exit
hHookMouse := DllCall(&quot;SetWindowsHookEx&quot;
   , Int, WH_MOUSE_LL := 14
   , Int, RegisterCallback(&quot;LowLevelMouseProc&quot;, &quot;Fast&quot;)
   , Ptr, DllCall(&quot;GetModuleHandle&quot;, UInt, 0, Ptr)
   , UInt, 0, Ptr)
Return

Exit:
    DllCall(&quot;UnhookWindowsHookEx&quot;, Ptr, hHookMouse)
    ExitApp

LowLevelMouseProc(nCode, wParam, lParam)
{
   static msg, mouse_x, mouse_y, ext, time, injected, LOWER_IL_INJECTED
      , oMsg := { 0x200: &quot;WM_MOUSEMOVE&quot;
                , 0x201: &quot;WM_LBUTTONDOWN&quot;, 0x202: &quot;WM_LBUTTONUP&quot;
                , 0x204: &quot;WM_RBUTTONDOWN&quot;, 0x205: &quot;WM_RBUTTONUP&quot;
                , 0x207: &quot;WM_MBUTTONDOWN&quot;, 0x208: &quot;WM_MBUTTONUP&quot;
                , 0x20B: &quot;WM_XBUTTONDOWN&quot;, 0x20C: &quot;WM_XBUTTONUP&quot;
                , 0x20A: &quot;WM_MOUSEWHEEL&quot; , 0x20E: &quot;WM_MOUSEHWHEEL&quot; }
                
      , oMouseData := { 0: &quot;0&quot;, 1: &quot;XBUTTON1&quot;, 2: &quot;XBUTTON2&quot;
                      , 120: &quot;WHEEL_DELTA forward&quot;, -120: &quot;WHEEL_DELTA backward&quot; }

   msg := wParam
   mouse_x := NumGet(lParam + 0, &quot;Int&quot;)
   mouse_y := NumGet(lParam + 4, &quot;Int&quot;)
   ext     := NumGet(lParam + 10, &quot;Short&quot;)
   injected:= NumGet(lParam + 12, &quot;Char&quot;) &amp; 1
   LOWER_IL_INJECTED := NumGet(lParam + 12, &quot;Char&quot;) &gt;&gt; 1
   time    := NumGet(lParam + 16, &quot;UInt&quot;)
   
   SetTimer, EventHandling, -10
   Return DllCall(&quot;CallNextHookEx&quot;, Ptr, 0, Int, nCode, UInt, wParam, UInt, lParam)

EventHandling:
   ToolTip, % &quot;Message = &quot;     . oMsg[msg]
            . &quot;`nMouse_X = &quot;   . mouse_x
            . &quot;`nMouse_Y = &quot;   . mouse_y
            . &quot;`nMouseData = &quot; . oMouseData[ext]
            . &quot;`ninjected = &quot;  . injected
            . &quot;`nLOWER_IL_INJECTED = &quot; . LOWER_IL_INJECTED
            . &quot;`nTime = &quot;      . time
   Return
}

Esc::ExitApp</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sun, 02 Jul 2017 23:25:27 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=117037#p117037</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Распознавание машинного ввода и эмуляции нажатия кнопки мыши.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=117036#p117036</link>
			<description><![CDATA[<p>Подскажите пожалуйста, как узнать значение флага LLMHF_LOWER_IL_INJECTED.</p>]]></description>
			<author><![CDATA[null@example.com (powercat)]]></author>
			<pubDate>Sun, 02 Jul 2017 21:59:27 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=117036#p117036</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Распознавание машинного ввода и эмуляции нажатия кнопки мыши.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=117035#p117035</link>
			<description><![CDATA[<p>Не знаю, не интересовался.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sun, 02 Jul 2017 20:02:04 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=117035#p117035</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Распознавание машинного ввода и эмуляции нажатия кнопки мыши.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=117034#p117034</link>
			<description><![CDATA[<p><strong>teadrinker</strong><br />Это возможно как-то отследить?</p>]]></description>
			<author><![CDATA[null@example.com (powercat)]]></author>
			<pubDate>Sun, 02 Jul 2017 19:57:24 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=117034#p117034</guid>
		</item>
	</channel>
</rss>
