<?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=10082&amp;type=atom" />
	<updated>2015-05-25T09:04:45Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=10082</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поиск в интернете по выделенному тексту]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=94201#p94201" />
			<content type="html"><![CDATA[<p><strong>wisgest</strong><br />Так и есть, спасибо.</p>]]></content>
			<author>
				<name><![CDATA[dredj]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32289</uri>
			</author>
			<updated>2015-05-25T09:04:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=94201#p94201</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поиск в интернете по выделенному тексту]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=94200#p94200" />
			<content type="html"><![CDATA[<p>Возможно, испортился раздел реестра<br />«HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe».<br />Можно попробовать указать полный путь к chrome.exe или убрать его вообще — в этом случае будет использоваться браўзер, назначенный обработчиком протокола <em>http</em> по умолчанию.</p>]]></content>
			<author>
				<name><![CDATA[wisgest]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=3850</uri>
			</author>
			<updated>2015-05-25T08:57:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=94200#p94200</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поиск в интернете по выделенному тексту]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=94198#p94198" />
			<content type="html"><![CDATA[<p>С недавних пор после нажатии хоткея скрипт выдаёт следующее<span class="postimg"><img src="http://ipic.su/img/img7/fs/Izobrazhenieizbuferaobmena.1432539754.jpg" alt="http://ipic.su/img/img7/fs/Izobrazhenieizbuferaobmena.1432539754.jpg" /></span> С чем это может быть связано?</p>]]></content>
			<author>
				<name><![CDATA[dredj]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32289</uri>
			</author>
			<updated>2015-05-25T07:56:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=94198#p94198</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поиск в интернете по выделенному тексту]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=87767#p87767" />
			<content type="html"><![CDATA[<p>teadrinker, благодарю! То, что нужно, очень удобно.</p>]]></content>
			<author>
				<name><![CDATA[dredj]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32289</uri>
			</author>
			<updated>2014-10-26T18:23:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=87767#p87767</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поиск в интернете по выделенному тексту]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=87762#p87762" />
			<content type="html"><![CDATA[<p>Да, и в ней была упущена из виду - <strong>URIEncode(Str)</strong>.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-10-26T17:50:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=87762#p87762</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поиск в интернете по выделенному тексту]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=87760#p87760" />
			<content type="html"><![CDATA[<p>Недавно была похожая тема <a href="http://forum.script-coding.com/viewtopic.php?id=9913">AHK: Двойное нажатие клавиши vkC0 (ё) для запуска поиска в Мультитране</a>.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2014-10-26T17:24:46Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=87760#p87760</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поиск в интернете по выделенному тексту]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=87753#p87753" />
			<content type="html"><![CDATA[<p>А лучше так:<br /></p><div class="codebox"><pre><code>+F1::   ; Shift + F1
   Clipboard := &quot;&quot;
   SendInput, ^{vk43}  ; посылаем Ctrl + C
   ClipWait, 0
   if ErrorLevel
   {
      TrayTip,, Текст для поиска не определён
      Return
   }
   str := URIEncode(Clipboard)
   Run chrome.exe http://www.google.com/search?q=&quot;%str%&quot;
   Return
   
URIEncode(Str)
{
   b_Format:=A_FormatInteger
   SetFormat, IntegerFast, H
   Loop, % StrPutVar(Str, Var, &quot;UTF-8&quot;)
   {
      Ch:=NumGet(Var, A_Index-1, &quot;UChar&quot;)
      If Ch=0
         Break
      If (Ch&gt;0x7f Or Ch&lt;0x30 Or Ch=0x3d)
         s.=&quot;%&quot;((StrLen(c:=SubStr(Ch, 3))&lt;2) ? &quot;0&quot;c:c)
      else
         s.=Chr(Ch)
   }
   SetFormat, IntegerFast, % b_Format
   Return, s
}

StrPutVar(string, ByRef var, encoding = &quot;CP0&quot;)
{
    ; Ensure capacity.
    VarSetCapacity( var, StrPut(string, encoding)
        ; StrPut returns char count, but VarSetCapacity needs bytes.
        * ((encoding=&quot;utf-16&quot;||encoding=&quot;cp1200&quot;) ? 2 : 1) )
    ; Copy or convert the string.
    return StrPut(string, &amp;var, encoding)
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-10-26T14:44:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=87753#p87753</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поиск в интернете по выделенному тексту]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=87752#p87752" />
			<content type="html"><![CDATA[<p>Так примерно:<br /></p><div class="codebox"><pre><code>+F1::   ; Shift + F1
   Clipboard := &quot;&quot;
   SendInput, ^{vk43}  ; посылаем Ctrl + C
   ClipWait, 0
   if ErrorLevel
   {
      TrayTip,, Текст для поиска не определён
      Return
   }
   Clipboard := RegExReplace(Clipboard, &quot;&quot;&quot;&quot;, &quot;%22&quot;)
   Run chrome.exe http://www.google.com/search?q=&quot;%clipboard%&quot;
   Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-10-26T14:39:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=87752#p87752</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поиск в интернете по выделенному тексту]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=87750#p87750" />
			<content type="html"><![CDATA[<p>Везде где мышкой можно выделить текст, например в блокноте, при переименование файла, в заметках, в браузере и т.д. Поиск в google, браузер chrome.</p>]]></content>
			<author>
				<name><![CDATA[dredj]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32289</uri>
			</author>
			<updated>2014-10-26T12:15:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=87750#p87750</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поиск в интернете по выделенному тексту]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=87749#p87749" />
			<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>2014-10-26T11:48:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=87749#p87749</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Поиск в интернете по выделенному тексту]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=87748#p87748" />
			<content type="html"><![CDATA[<p>Ребята, возможен ли скрипт на AHK для поиска в браузере любого выделенного текста в Windows по хоткею, если да то куда копать?</p><br /><p><span style="color: green">Скорректировал название темы<br /><strong>ypppu</strong></span></p>]]></content>
			<author>
				<name><![CDATA[dredj]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32289</uri>
			</author>
			<updated>2014-10-26T10:57:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=87748#p87748</id>
		</entry>
</feed>
