<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: ControlSend]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=15041&amp;type=atom" />
	<updated>2019-10-29T09:31:33Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=15041</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ControlSend]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=136486#p136486" />
			<content type="html"><![CDATA[<p><strong>stealzy</strong><br />Появилась новая проблема, на моём ПК всё ровно, на другом (Win 8.1) &quot;Edit1&quot; меняется, но в итоге (после клика на сохранить) имя файла остаётся неизменным (имя - по умолчанию)</p>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2019-10-29T09:31:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=136486#p136486</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ControlSend]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=136483#p136483" />
			<content type="html"><![CDATA[<p><strong>stealzy</strong></p><p>Спасибо! Помогло ControlGetText вместо ControlSend</p><div class="codebox"><pre><code>
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
#SingleInstance force 

^RButton::

Menu, MyMenu, Add, Анкета, Anketa
Menu, MyMenu, Show  
return

anketa:
ControlGetText, text, ToolbarWindow324, ahk_class #32770
text := RegExReplace(text, &quot;.+\\(.+)\.*.{0}&quot;, &quot;$1&quot;)

ControlSetText, Edit1,Анкета. %text%., ahk_class #32770
return


</code></pre></div>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2019-10-29T05:42:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=136483#p136483</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ControlSend]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=136479#p136479" />
			<content type="html"><![CDATA[<p>Доброй ночи, пож-та: зажать CapsLock, поменять SendMode, ControlSend заменить на Send, ControlSend заменить на ControlSetText, обновить версию AHK.<br />По окончании испытаний присылайте ваш отчет.</p>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2019-10-28T22:03:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=136479#p136479</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: ControlSend]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=136476#p136476" />
			<content type="html"><![CDATA[<p>Добрый день! Подскажите пож-та, если стоит русская раскладка, то получается &quot;аНкета. сМирнов а,&quot;, если на анг., то всё ок &quot;Анкета. Смирнов А.&quot;&nbsp; Стоит win8.1, на win7 на обоих языках без проблем. Заранее спасибо!</p><br /><div class="codebox"><pre><code>
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
#SingleInstance force 

^RButton::

Menu, MyMenu, Add, Анкета, Anketa
Menu, MyMenu, Show  
return

anketa:
ControlGetText, text, ToolbarWindow324, ahk_class #32770
msgbox % text ; &quot;Адрес: С:\Test\28.10.2019\Смирнов А&quot;

text := RegExReplace(text, &quot;.+\\(.+)\.*.{0}&quot;, &quot;$1&quot;)
msgbox % text ; &quot;Смирнов А&quot;

ControlSetText Edit1,, ahk_class #32770
ControlSend, Edit1,Анкета. %text%., ahk_class #32770 
return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2019-10-28T15:08:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=136476#p136476</id>
		</entry>
</feed>
