<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK:  AHK для чайников! (уточнение)]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=8838</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=8838&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK:  AHK для чайников! (уточнение)».]]></description>
		<lastBuildDate>Wed, 30 Oct 2013 06:38:04 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[AHK:  AHK для чайников! (уточнение)]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=76681#p76681</link>
			<description><![CDATA[<p><strong><a href="http://forum.script-coding.com/profile.php?id=24515">teadrinker</a> </strong> <br />В&nbsp; теме&nbsp; <a href="http://forum.script-coding.com/viewtopic.php?id=7439">AHK для чайников! </a> требуется уточнение, как мне кажется,&nbsp; надо добавить не только <strong>vk-code</strong>, но <strong>sc-code</strong>.<br />Скрипт определения <strong>vk-code</strong> и <strong>sc-code</strong> для всех версий - ANSI, U-32 и U-64 </p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><div class="codebox"><pre><code>;==========SC и VK коды клавиш==============
^+ESC::
If fScVkCode:= !fScVkCode

lScVkCode:
  if (fScVkCode)
      {
        ToolTip        
        DllCall(&quot;UnhookWindowsHookEx&quot;, Ptr, hHookKeybd)
        fScVkCode:=false
      }
    else
      {
        hHookKeybd := DllCall(&quot;SetWindowsHookEx&quot;
          , Int, WH_KEYBOARD_LL := 13
          , Ptr, RegisterCallback(&quot;LowLevelKeyboardProc&quot;, &quot;Fast&quot;)
          , Ptr, DllCall(&quot;GetModuleHandle&quot;, UInt, 0, &quot;Ptr&quot;)
          , UInt, 0, &quot;Ptr&quot;)
        fScVkCode:=true
      }
  Return
 
  LowLevelKeyboardProc(nCode, wParam, lParam)
    {
      Critical
      SetFormat, Integer, H
      ToolTip, % wParam . &quot;| vkCode: &quot; . NumGet(lParam+0, 0, &quot;UInt&quot;) . &quot; scCode: &quot; . NumGet(lParam+0, 4, &quot;UInt&quot;)
                        . &quot; Extended: &quot; . NumGet(lParam+0, 8, &quot;UInt&quot;) &amp; 1 . &quot; Time: &quot; . NumGet(lParam+0, 12, &quot;UInt&quot;)
      Return DllCall(&quot;CallNextHookEx&quot;, Ptr, 0, Int, nCode, Ptr, wParam, Ptr, lParam)
    }
return 
;==============================</code></pre></div></div></div>]]></description>
			<author><![CDATA[null@example.com (Indomito)]]></author>
			<pubDate>Wed, 30 Oct 2013 06:38:04 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=76681#p76681</guid>
		</item>
	</channel>
</rss>
