<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Проверка на наличие определённого usb устройства.]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=7412&amp;type=atom" />
	<updated>2012-08-03T17:55:00Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=7412</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проверка на наличие определённого usb устройства.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=62322#p62322" />
			<content type="html"><![CDATA[<p>спасибо большое всё работает.</p>]]></content>
			<author>
				<name><![CDATA[Naiglos]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=28443</uri>
			</author>
			<updated>2012-08-03T17:55:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=62322#p62322</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проверка на наличие определённого usb устройства.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=62312#p62312" />
			<content type="html"><![CDATA[<p>Идём в диспетчер устройств, копируем путь к экземпляру устройства (Device Instance Path)<br /><span class="postimg"><img src="http://img4.imageshack.us/img4/2771/clipboarddip.jpg" alt="http://img4.imageshack.us/img4/2771/clipboarddip.jpg" /></span><br />Присваиваем скопированную информацию переменной VID, проверяем:</p><div class="codebox"><pre><code>VID:=&quot;USB\VID_1005&amp;PID_B113\K610081100000048&quot;
For Key In ComObjGet(&quot;winmgmts:{impersonationLevel=impersonate}!\\&quot;
. A_ComputerName &quot;\root\cimv2&quot;)
.ExecQuery(&quot;select DeviceID from Win32_PnPEntity&quot;)
   If Key.DeviceID=VID
   {
      Bool:=True
      Break
   }
MsgBox, % 262 . (Bool ? 208:192)
      , % &quot;устройство&quot;
      , % (Bool ? &quot;&quot;:&quot;не &quot;)&quot;подключено&quot;
      , 1
ExitApp</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2012-08-03T12:45:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=62312#p62312</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Проверка на наличие определённого usb устройства.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=62253#p62253" />
			<content type="html"><![CDATA[<p>Вообщем проблема такая: Дан vid usb устройства и надо проверить подключено ли оно в данный момент к компьютеру.<br />Вопрос, как же это реализовать средствами AHK?</p>]]></content>
			<author>
				<name><![CDATA[Naiglos]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=28443</uri>
			</author>
			<updated>2012-08-01T23:02:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=62253#p62253</id>
		</entry>
</feed>
