<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Скрестить AHKскрипт с новой тулзой мелкомягких PowerToys]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=15407&amp;type=atom" />
	<updated>2020-06-04T16:44:49Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=15407</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрестить AHKскрипт с новой тулзой мелкомягких PowerToys]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139996#p139996" />
			<content type="html"><![CDATA[<p>Тут видно дело не в эксплорере, а в окнах у которых ribbon menu.<br />Так как с пейнтом тоже не работает.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2020-06-04T16:44:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139996#p139996</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрестить AHKскрипт с новой тулзой мелкомягких PowerToys]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139994#p139994" />
			<content type="html"><![CDATA[<p>Да, забыл сказать, с эксплорером у меня тоже не работает.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2020-06-04T16:39:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139994#p139994</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрестить AHKскрипт с новой тулзой мелкомягких PowerToys]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139991#p139991" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>А если по двойному клику на 1, и по второму удерживаешь</p></blockquote></div><p>Так вроде работает, но не со всеми окнами.<br />Например с окнами эксплорера.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2020-06-04T16:30:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139991#p139991</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрестить AHKскрипт с новой тулзой мелкомягких PowerToys]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139989#p139989" />
			<content type="html"><![CDATA[<p>На калькуляторе нажимаешь 1 и держишь, и не двигается? <br />А если по двойному клику на 1, и по второму удерживаешь, тоже нет? У меня именно так на блокноте срабатывает, единственный с которым по одиночному не работает, но по двойному работает 10 из 10.</p><p>Ещё раз перезагрузил и проверил, всё работает, неужели у меня прям настолько кривая и оригинальная десятка...</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2020-06-04T16:17:25Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139989#p139989</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрестить AHKскрипт с новой тулзой мелкомягких PowerToys]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139981#p139981" />
			<content type="html"><![CDATA[<p>У меня тоже не двигает.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2020-06-04T14:02:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139981#p139981</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрестить AHKскрипт с новой тулзой мелкомягких PowerToys]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139976#p139976" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>..Так у вас код из 36 что то двигает?</p></blockquote></div><p> У меня - нет.</p>]]></content>
			<author>
				<name><![CDATA[Mikki]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5905</uri>
			</author>
			<updated>2020-06-04T08:43:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139976#p139976</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрестить AHKскрипт с новой тулзой мелкомягких PowerToys]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139973#p139973" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Mikki пишет:</cite><blockquote><p>Чистая тулза? Без наших скриптов?</p></blockquote></div><p>Да.<br /></p><div class="quotebox"><cite>Mikki пишет:</cite><blockquote><p>справка?</p></blockquote></div><p>Справка AutoHotkey.<br />У меня в этих окнах по Alt+Space заблокирован пункт переместить. Сегодня после перезагрузки &quot;FancyZones&quot; с ними заработало. В общем что то глючит.</p><p>Так у вас код из 36 что то двигает?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2020-06-04T06:38:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139973#p139973</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрестить AHKскрипт с новой тулзой мелкомягких PowerToys]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139969#p139969" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>Тулза к слову непонятно на что срабатывает, например на Total Commander и справку у меня вообще не реагирует.</p></blockquote></div><p>Чистая тулза? Без наших скриптов? У меня на тотал отлично срабатывает. А какая справка?</p>]]></content>
			<author>
				<name><![CDATA[Mikki]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5905</uri>
			</author>
			<updated>2020-06-03T23:40:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139969#p139969</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрестить AHKскрипт с новой тулзой мелкомягких PowerToys]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139967#p139967" />
			<content type="html"><![CDATA[<p>Тулза к слову непонятно на что срабатывает, например на Total Commander и справку у меня вообще не реагирует.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2020-06-03T20:25:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139967#p139967</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрестить AHKскрипт с новой тулзой мелкомягких PowerToys]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139966#p139966" />
			<content type="html"><![CDATA[<p>Нагляднее, калькулятор и справку двигает 10 из 10.<br /></p><div class="codebox"><pre><code>
CoordMode, Mouse, Screen 

WM_NCLBUTTONDOWN := 0xA1, HTCAPTION := 2  

Gui, -Caption +AlwaysOnTop +LastFound +ToolWindow
Gui, Show, Na Hide w20 h20
WinSet, TransParent, 1
Return 

1::
MButton::    
	BlockInput, MouseMove
	MouseGetPos x, y, win, child, 2 
	Gui, Show, % &quot;x&quot; x - 10 &quot; y&quot; y - 10
	Hwnd := WinExist(&quot;ahk_id&quot; win)
	Sleep 10
	Send {LButton Down} 
	WinActivate  
	Sleep 10
	PostMessage, WM_NCLBUTTONDOWN, HTCAPTION, , , % &quot;ahk_id &quot; Hwnd 
	Key := A_ThisHotkey 
	Send {LButton Up}
	Gui, Show, Na Hide
	BlockInput, MouseMoveOff
	KeyWait %Key%   
	Send {LButton Up}
	Return
</code></pre></div><p> С блокнотом вредничает, но если после PostMessage продолжить действия по таймеру, то кое как работает.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2020-06-03T20:04:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139966#p139966</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрестить AHKскрипт с новой тулзой мелкомягких PowerToys]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139965#p139965" />
			<content type="html"><![CDATA[<p>Кстати работает не только при клике в окне. Точнее в данном случае у меня чаще срабатывает Gui с Edit за пределами Calculator.<br />Надо активировать Gui, и в Edit нажать +LButton. Двигает любые указанные окна, блокнот двигает только если перед нажатием он был свёрнут.<br /></p><div class="codebox"><pre><code>
WM_NCLBUTTONDOWN := 0xA1, HTCAPTION := 2  
 
Gui, New, -Caption  
Gui, Add, Edit, w111 h111 border 
Gui, Show 
Return 

~+LButton::  
	Hwnd := WinExist(&quot;Calculator&quot;)  
	WinActivate 
	Sleep 10 
	PostMessage, WM_NCLBUTTONDOWN, HTCAPTION, , , % &quot;ahk_id &quot; Hwnd 
	Return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2020-06-03T19:22:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139965#p139965</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрестить AHKскрипт с новой тулзой мелкомягких PowerToys]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139945#p139945" />
			<content type="html"><![CDATA[<p>Да.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2020-06-03T10:54:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139945#p139945</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрестить AHKскрипт с новой тулзой мелкомягких PowerToys]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139944#p139944" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Malcev пишет:</cite><blockquote><p>Думаю, придется инжектить dll в целевое приложение.</p></blockquote></div><p>Только чтобы вызвать ReleaseCapture?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2020-06-03T10:46:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139944#p139944</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрестить AHKскрипт с новой тулзой мелкомягких PowerToys]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139943#p139943" />
			<content type="html"><![CDATA[<p>Обоих случаях работает только со Sleep, и в случае с калькулятором ReleaseCapture не имеет значения, так как оно работает только для текущего потока.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2020-06-03T10:42:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139943#p139943</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрестить AHKскрипт с новой тулзой мелкомягких PowerToys]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139941#p139941" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>Но ведь это клиентские части окон.</p></blockquote></div><p>Нет.<br /><a href="mailto:https://docs.microsoft.com/en-us/windows/win32/gdi/nonclient-area">https://docs.microsoft.com/en-us/windows/win32/gdi/nonclient-area</a><br /></p><div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>Может надо как то отменить захват мыши перед WM_NCLBUTTONDOWN</p></blockquote></div><p>Думаю, придется инжектить dll в целевое приложение.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2020-06-03T10:39:28Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139941#p139941</id>
		</entry>
</feed>
