<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK:  AHK для чайников! (уточнение)]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=8838&amp;type=atom" />
	<updated>2013-10-30T06:38:04Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=8838</id>
		<entry>
			<title type="html"><![CDATA[AHK:  AHK для чайников! (уточнение)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=76681#p76681" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2013-10-30T06:38:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=76681#p76681</id>
		</entry>
</feed>
