<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Получение имени подключенной сети]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=12691&amp;type=atom" />
	<updated>2017-05-23T12:59:16Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=12691</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение имени подключенной сети]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=116000#p116000" />
			<content type="html"><![CDATA[<p>Или так: </p><div class="codebox"><pre><code>dhw := A_DetectHiddenWindows
DetectHiddenWindows On
Run &quot;%ComSpec%&quot; /k,, Hide, pid
while !(hConsole := WinExist(&quot;ahk_pid&quot; pid))
    Sleep 10
DllCall(&quot;AttachConsole&quot;, &quot;UInt&quot;, pid)
DetectHiddenWindows %dhw%
objShell := ComObjCreate(&quot;WScript.Shell&quot;)
objExec := objShell.Exec(&quot;cmd /c netsh wlan show interface&quot;)
While !objExec.Status
    Sleep 100
wlanres := objExec.StdOut.ReadAll()
DllCall(&quot;FreeConsole&quot;)
Process Exist, %pid%
if (ErrorLevel == pid)
    Process Close, %pid%
RegExMatch(wlanres,&quot;\sSSID\s+:\s(.+)&quot;,m)
ssid := m1
MsgBox % ssid</code></pre></div>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2017-05-23T12:59:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=116000#p116000</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение имени подключенной сети]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=115999#p115999" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Runwait %comspec% /c netsh wlan show interface | clip,,hide
msgbox % RegExReplace(clipboard, &quot;s).*?\R\s+SSID\s+:(\V+).*&quot;, &quot;$1&quot;)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2017-05-23T12:55:15Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=115999#p115999</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Получение имени подключенной сети]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=115998#p115998" />
			<content type="html"><![CDATA[<p>Необходимо задать условие работы скрипта в зависимости от того, к какой точке доступа беспроводной сети совершено подключение. Можно ли получить соответствующую информацию посредством AHK? Спасибо!</p>]]></content>
			<author>
				<name><![CDATA[becauseim]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33149</uri>
			</author>
			<updated>2017-05-23T11:47:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=115998#p115998</id>
		</entry>
</feed>
