<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: WinSpy++, WinSpector]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=15070&amp;type=atom" />
	<updated>2019-11-30T04:13:58Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=15070</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: WinSpy++, WinSpector]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=136711#p136711" />
			<content type="html"><![CDATA[<p>У меня выбирало только первый пункт меню в totalcommander в поисках файлах (как пример). Затем значения поменялись и вообще ничего не выбирает.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2019-11-30T04:13:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=136711#p136711</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: WinSpy++, WinSpector]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=136710#p136710" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong> Сначала нет, но потом исправил и всё равно ничего не заработало</p>]]></content>
			<author>
				<name><![CDATA[Yudiz]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40489</uri>
			</author>
			<updated>2019-11-29T22:27:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=136710#p136710</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: WinSpy++, WinSpector]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=136707#p136707" />
			<content type="html"><![CDATA[<p>А хэндл окна правильно подставили? Если, например, значение было 00E00230, то ahk_id 0x00E00230.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2019-11-29T15:42:51Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=136707#p136707</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: WinSpy++, WinSpector]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=136706#p136706" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>SendMessage, 0x111, (4 &lt;&lt; 16)|1786, 0x30706FA,, ahk_id [здесь хэндл окна, которому отправлять, возможно подойдёт 0x30706FA]</p></blockquote></div><p>Ничего не получилось, хоть и пытался подставлять значения которые были актуальны на время открытия программы, но всё равно спасибо за попытку помочь)</p>]]></content>
			<author>
				<name><![CDATA[Yudiz]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40489</uri>
			</author>
			<updated>2019-11-29T15:09:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=136706#p136706</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: WinSpy++, WinSpector]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=136702#p136702" />
			<content type="html"><![CDATA[<p>Использую ГК для копирования сообщения в один клик сразу в нашем формате (сообщение должно быть выделено) и прицела в один клик:<br /></p><div class="codebox"><pre><code>Hotkey(&quot;^C&quot;, &quot;Microsoft Spy++ - Messages (&quot;, &quot;spyCopy&quot;)
Hotkey(&quot;^C&quot;, &quot;Microsoft Spy++ - [Messages (&quot;, &quot;spyCopy&quot;)
Hotkey(&quot;^W&quot;, &quot;Microsoft Spy++&quot;, &quot;spyClose&quot;)
Hotkey(&quot;^N&quot;, &quot;Microsoft Spy++&quot;, &quot;spyWindows&quot;)
Hotkey(&quot;!F&quot;, &quot;Microsoft Spy++&quot;, &quot;spyAim&quot;)
Hotkey(&quot;+^!Space&quot;,, &quot;doNotDelete&quot;)
Return

doNotDelete() { ; for spyAim work
}
spyCopy() {
	Send !{Enter}
	WinWaitActive Message Properties,, 5
	If ErrorLevel
		Return
	ControlGetText CommandComm, Static4
	CommandNum := SubStr(CommandComm, 1, 4)
	CommandType := SubStr(CommandComm, 8, -1)
	ControlGetText CommandName, Static5
	ControlGet Params, List,, ListBox1
	Sleep 10
	WinClose ;ControlClick Button2
	aLine := StrSplit(Params, &quot;`n&quot;, &quot;`r&quot;)
	wParam := &quot;0x&quot; SubStr(aLine[1], -7)
	lParam := &quot;0x&quot; SubStr(aLine[2], -7)
	; MsgBox % CommandNum &quot;`n&quot; CommandName &quot;`n&quot; CommandType &quot;`n&quot; wParam &quot; &quot; lParam
	ComTypeTransl := {Sent: &quot;SendMessage&quot;, Posted: &quot;PostMessage&quot;}
	; MsgBox % ComTypeTransl[CommandType] &quot; 0x&quot; CommandNum &quot;, &quot; dec(wParam) &quot;, &quot; dec(lParam)
	Clipboard := ComTypeTransl[CommandType] &quot; &quot; hex(&quot;0x&quot; CommandNum) &quot;, &quot; hex(wParam) &quot;, &quot; hex(lParam)
	; SendMessage, Msg, wParam, lParam
}
spyClose() {
	WinMenuSelectItem, Microsoft Spy++,, 5&amp;, 5&amp;
}
spyWindows() {
	Send ^w
}
spyAim() {
	CoordMode, Mouse, Screen
	MouseGetPos, x, y, OutputVarWin
	CoordMode, Mouse, Relative
	If (OutputVarWin != WinExist(&quot;Microsoft Spy++&quot;))
		MouseMove 0, 0, 0
	WinMenuSelectItem, Microsoft Spy++,, 1&amp;, 7&amp;	; Send ^f
	WinWaitActive, Find Window ahk_class #32770,, 3
	If ErrorLevel
	{
		MsgBox Find Window not found
		Return
	}
	Control Check,, Button5 ;&amp;Messages
	ControlClick, Static3,,,,, NA D ;Take AIM
	Click D
	Hotkey LButton, SpyAimLButton, On
	DllCall(&quot;SetCursorPos&quot;, int, x, int, y)
}
SpyAimLButton:
	KeyWait, LButton
	Click U
	Hotkey LButton, SpyAimLButton, Off
	ControlSend,, {Enter}, Find Window ahk_class #32770
	Return

dec(n) {
	Return Format(&quot;{:u}&quot;, n)
}
hex(n) {
	Return Format(&quot;{:#0x}&quot;, n)
}
Hotkey(keyName, winTitle:=&quot;&quot;, func:=&quot;&quot;, args*)  {
	funcObj := Func(func).Bind(args*)
	Hotkey IfWinActive, % winTitle
	Hotkey % keyName, % funcObj
}</code></pre></div><p>Стоит наверно сделать лаунчер со своим прицелом и автоматическим выбором разрядности spyxx, и сразу установить (HKEY_CURRENT_USER\Software\Microsoft\Spy++) дефолтный фильтр сообщений с галкой на General (или ограничиться WM_Command? А может наоборот General недостаточно?). Пишите что надо будет.</p>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2019-11-28T21:10:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=136702#p136702</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: WinSpy++, WinSpector]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=136701#p136701" />
			<content type="html"><![CDATA[<p>00E00230 - хендл окна.<br />S - сообщение послано функцией SendMessage.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2019-11-28T01:46:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=136701#p136701</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: WinSpy++, WinSpector]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=136700#p136700" />
			<content type="html"><![CDATA[<p>Наверно, как-то так:<br /></p><div class="codebox"><pre><code>SendMessage, 0x111, (4 &lt;&lt; 16)|1786, 0x30706FA,, ahk_id [здесь хэндл окна, которому отправлять, возможно подойдёт 0x30706FA]</code></pre></div><p>Значения 0x30706FA и возможно 1786 будут меняться после каждой перезагрузки приложения.<br />Но что такое <em>00E00230 S</em> не знаю.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2019-11-27T22:08:06Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=136700#p136700</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: WinSpy++, WinSpector]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=136699#p136699" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong>&nbsp; 00E00230 S WM_COMMAND wNotifyCode:0004 wID:1786 hwndCtl:030706FA вышла вот такая строка, возможно ли как-то сделать из этого postmessage команду?</p>]]></content>
			<author>
				<name><![CDATA[Yudiz]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40489</uri>
			</author>
			<updated>2019-11-27T20:07:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=136699#p136699</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: WinSpy++, WinSpector]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=136698#p136698" />
			<content type="html"><![CDATA[<p>Проблема может быть в разности битностей. Если перехватчик 32-битный, он не может перехватить сообщения 64-битного приложения.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2019-11-27T18:22:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=136698#p136698</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: WinSpy++, WinSpector]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=136697#p136697" />
			<content type="html"><![CDATA[<p>Добрый вечер, может кто подсказать как работать в WinSpy++ или же в WinSpector. Почему-то при каждой попытке считать сообщение поля пустые. Цель &quot;totalcommander&quot; может ли быть у него защита anti-hook?</p>]]></content>
			<author>
				<name><![CDATA[Yudiz]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40489</uri>
			</author>
			<updated>2019-11-27T16:56:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=136697#p136697</id>
		</entry>
</feed>
