<?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=6352&amp;type=atom" />
	<updated>2011-10-24T06:28:01Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=6352</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как это перевести на AHK?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=52850#p52850" />
			<content type="html"><![CDATA[<p>Извините, оно работает. Ошибся при проверке.</p>]]></content>
			<author>
				<name><![CDATA[D_Pavel]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27294</uri>
			</author>
			<updated>2011-10-24T06:28:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=52850#p52850</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как это перевести на AHK?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=52847#p52847" />
			<content type="html"><![CDATA[<p>Требуется сделать SendMessage с нужными параматрами.</p>]]></content>
			<author>
				<name><![CDATA[D_Pavel]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27294</uri>
			</author>
			<updated>2011-10-24T01:55:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=52847#p52847</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как это перевести на AHK?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=52841#p52841" />
			<content type="html"><![CDATA[<p>OFF: Похоже, я не в теме! <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-10-23T19:09:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=52841#p52841</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как это перевести на AHK?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=52839#p52839" />
			<content type="html"><![CDATA[<p>OFF:: Требуется погасить светодиод, используя водителя космической навигации. Капитан Пикард подойдёт. <img src="//forum.script-coding.com/img/smilies/wink.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2011-10-23T19:05:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=52839#p52839</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как это перевести на AHK?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=52837#p52837" />
			<content type="html"><![CDATA[<p>А чего должно происходить-то?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-10-23T18:55:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=52837#p52837</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Как это перевести на AHK?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=52817#p52817" />
			<content type="html"><![CDATA[<p>В другой программе используется такая команда:<br /></p><div class="codebox"><pre><code>    &lt;device type=&quot;hid&quot; name=&quot;SpaceNavigator&quot; vid=&quot;0x046D&quot; pid=&quot;0xC626&quot;&gt;
      &lt;command name=&quot;Led Off&quot; report=&quot;0x0004&quot; value=&quot;0x0000&quot;/&gt;
    &lt;/device&gt;

sendWindowMessage 
      type=&quot;CopyData&quot;
      window=&quot;SpaceNavigatorDriver&quot;
      message=&quot;HID;SpaceNavigator;Led Off&quot;</code></pre></div><p>Как ее написать для AutoHotkey? Я сделел так, не работает:</p><div class="codebox"><pre><code>    StringToSend := &quot;HID;SpaceNavigator;Led On&quot;
    VarSetCapacity(CopyDataStruct, 12, 0)  ; Set up the structure&#039;s memory area.
    ; First set the structure&#039;s cbData member to the size of the string, including its zero terminator:
    NumPut(StrLen(StringToSend) + 1, CopyDataStruct, 4)  ; OS requires that this be done.
    NumPut(&amp;StringToSend, CopyDataStruct, 8)  ; Set lpData to point to the string itself.
    DetectHiddenWindows On
    SetTitleMatchMode 2
    SendMessage, 0x4a, 0, &amp;CopyDataStruct,, SpaceNavigatorDriver  ; 0x4a is WM_COPYDATA. Must use Send not Post.</code></pre></div>]]></content>
			<author>
				<name><![CDATA[D_Pavel]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27294</uri>
			</author>
			<updated>2011-10-23T07:44:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=52817#p52817</id>
		</entry>
</feed>
