<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK:  MySumka: sumka := 185 Разбор кода]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=16842&amp;type=atom" />
	<updated>2021-12-23T04:30:26Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=16842</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK:  MySumka: sumka := 185 Разбор кода]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=151373#p151373" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong>, <strong>__Михаил__</strong> Человек разрешил взять его код. https://imgur.com/a/kMYW4Pb</p>]]></content>
			<author>
				<name><![CDATA[uran612]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=42233</uri>
			</author>
			<updated>2021-12-23T04:30:26Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=151373#p151373</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:  MySumka: sumka := 185 Разбор кода]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=151369#p151369" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong>, так я ни чего не взламывал )) Я отвечаю по его коду что он опубликовал.</p>]]></content>
			<author>
				<name><![CDATA[andrey.a.polyakov.b2c]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=42228</uri>
			</author>
			<updated>2021-12-22T16:59:12Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=151369#p151369</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:  MySumka: sumka := 185 Разбор кода]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=151364#p151364" />
			<content type="html"><![CDATA[<p><strong>uran612</strong></p><p>Если не понимаете сами - спросите автора бота, либо своего друга. Разбирать чужой код при этом нагло сворованный - нехорошо. Толку от того, что вам объяснят для чего та или иная переменная, вы сами ничего всё равно не сможете изменить толком.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2021-12-22T15:03:36Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=151364#p151364</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:  MySumka: sumka := 185 Разбор кода]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=151360#p151360" />
			<content type="html"><![CDATA[<p><strong>andrey.a.polyakov.b2c</strong>, вообще-то взлом кода у нас не поощряется.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-12-22T12:39:03Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=151360#p151360</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:  MySumka: sumka := 185 Разбор кода]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=151358#p151358" />
			<content type="html"><![CDATA[<p><strong>uran612</strong> <strong>udo </strong>координаты куда должна кликать мышка судя из кода:<br /></p><div class="codebox"><pre><code>
Click right %udo_x%, %udo_y%
</code></pre></div><p><strong>mouse </strong>координаты по которым определяется цвет пикселя:<br /></p><div class="codebox"><pre><code>
PixelGetColor, color, mouse_x, mouse_y, RGB
</code></pre></div><p><strong>inv</strong> координаты в которых осуществляется поиск картинок:<br /></p><div class="codebox"><pre><code>
ImageSearch,,, inv_x1, inv_y1, inv_x2-inv_x22, inv_y2, *TransBlack *50 10.png
ImageSearch,,, inv_x1, inv_y1, inv_x2, inv_y2, *TransBlack *50 99.png
ImageSearch,,, inv_x1, inv_y1, inv_x2, inv_y2, *TransBlack *50 98.png
ImageSearch,,, inv_x1, inv_y1, inv_x2, inv_y2, *TransBlack *50 97.png
</code></pre></div><p>Ну и <strong>ready</strong> координаты в которых сверяется цвет пикселя с цветом <strong>0x97FA04</strong> (Зеленый):<br /></p><div class="codebox"><pre><code>
PixelSearch, x, y, ready_x1, ready_y1, ready_x2, ready_y2, 0x97FA04, 3, Fast RGB
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[andrey.a.polyakov.b2c]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=42228</uri>
			</author>
			<updated>2021-12-22T12:06:27Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=151358#p151358</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:  MySumka: sumka := 185 Разбор кода]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=151356#p151356" />
			<content type="html"><![CDATA[<p>Для игр у нас есть специальная ветка, переношу.<br />А знакомый откуда взял? И почему бы вам у него и не спросить, если он разбирается?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-12-22T09:52:10Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=151356#p151356</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:  MySumka: sumka := 185 Разбор кода]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=151355#p151355" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong></p><p>Для gta 5 rp чтобы рыбачить, знакомый который разбирается в этом дал код.</p>]]></content>
			<author>
				<name><![CDATA[uran612]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=42233</uri>
			</author>
			<updated>2021-12-22T09:41:47Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=151355#p151355</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:  MySumka: sumka := 185 Разбор кода]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=151354#p151354" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>uran612 пишет:</cite><blockquote><p>встретился такой код</p></blockquote></div><p><strong>uran612</strong>, а где он вам встретился? Это чей-то взломанный код для какой-то игры?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-12-22T09:30:19Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=151354#p151354</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:  MySumka: sumka := 185 Разбор кода]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=151345#p151345" />
			<content type="html"><![CDATA[<p><strong>andrey.a.polyakov.b2c</strong></p><p>И что именно значат inv, udo, mouse и ready в коде?</p><div class="codebox"><pre><code>inv_x1 := round( A_ScreenWidth-300 )
inv_y1 := round( ( A_ScreenHeight/2 )-inv_sum1 )
inv_x2 := round( A_ScreenWidth-250 )
inv_x22 := 20
inv_y2 := round( ( A_ScreenHeight/2 )-inv_sum2 )
udo_x := round( A_ScreenWidth-425 )
udo_y := round( ( A_ScreenHeight/2 )-sumka )
mouse_x := round( ( A_ScreenWidth/2 )+92 )
mouse_y := round( ( A_ScreenHeight/2 )+( A_ScreenHeight/3 )+8 )
ready_x1 := round( ( A_ScreenWidth/2 )-315 )
ready_y1 := round( A_ScreenHeight-63 )
ready_x2 := round( ( A_ScreenWidth/2 )-305 )
ready_y2 := round( A_ScreenHeight-59 )</code></pre></div>]]></content>
			<author>
				<name><![CDATA[uran612]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=42233</uri>
			</author>
			<updated>2021-12-22T07:20:51Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=151345#p151345</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:  MySumka: sumka := 185 Разбор кода]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=151344#p151344" />
			<content type="html"><![CDATA[<p><strong>andrey.a.polyakov.b2c</strong><br /></p><div class="codebox"><pre><code>sumka := 65 
inv_sum1 := 250
inv_sum2 := 215</code></pre></div><p>Что именно значат эти параметры и как их выставлять?</p>]]></content>
			<author>
				<name><![CDATA[uran612]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=42233</uri>
			</author>
			<updated>2021-12-22T07:18:46Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=151344#p151344</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:  MySumka: sumka := 185 Разбор кода]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=151342#p151342" />
			<content type="html"><![CDATA[<p><strong>uran612</strong> А что конкретно не понятно?</p><div class="codebox"><pre><code>
; Параметры по умолчанию при условии что сумка не надета
sumka := 65 
inv_sum1 := 250
inv_sum2 := 215
</code></pre></div><div class="codebox"><pre><code>
MySumka: ;метка при нажатии на кнопку &quot;Сумка надета&quot; устанавливает новые параметры
sumka := 185
inv_sum1 := 365
inv_sum2 := 330
</code></pre></div><div class="codebox"><pre><code>
inv_x1 := round( A_ScreenWidth-300 )
inv_y1 := round( ( A_ScreenHeight/2 )-inv_sum1 )
inv_x2 := round( A_ScreenWidth-250 )
inv_x22 := 20
inv_y2 := round( ( A_ScreenHeight/2 )-inv_sum2 )
udo_x := round( A_ScreenWidth-425 )
udo_y := round( ( A_ScreenHeight/2 )-sumka )
mouse_x := round( ( A_ScreenWidth/2 )+92 )
mouse_y := round( ( A_ScreenHeight/2 )+( A_ScreenHeight/3 )+8 )
ready_x1 := round( ( A_ScreenWidth/2 )-315 )
ready_y1 := round( A_ScreenHeight-63 )
ready_x2 := round( ( A_ScreenWidth/2 )-305 )
ready_y2 := round( A_ScreenHeight-59 )
;Обычный расчет координат для поиска изображений с округлением round</code></pre></div>]]></content>
			<author>
				<name><![CDATA[andrey.a.polyakov.b2c]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=42228</uri>
			</author>
			<updated>2021-12-22T07:07:42Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=151342#p151342</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK:  MySumka: sumka := 185 Разбор кода]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=151341#p151341" />
			<content type="html"><![CDATA[<p>Ребят, недавно стал разбираться в ahk, встретился такой код:</p><div class="codebox"><pre><code>; &lt;COMPILER: v1.1.30.01&gt;
#SingleInstance,Force
CoordMode, Mouse, Screen
Menu, tray, NoStandard
Menu, tray, add, Закрыть, Exit
sumka := 65
inv_sum1 := 250
inv_sum2 := 215
gui, font, s9, Arial
Gui, Add, Checkbox, gMySumka, Сумка надета.
Gui, Add, Text, , F5 - перезагрузка`nF9 - выключить паузу`nF8 - включить паузу
Gui, Add, Text, cGreen, F7 - включить бота
Gui, Add, Text, cRed, F2 - выключить бота
Gui, Show, xCenter yCenter w170 h150
return
GuiEscape:
GuiClose:
ExitApp
return
MySumka:
sumka := 185
inv_sum1 := 365
inv_sum2 := 330
return
F5::
Reload
return
F9::
Pause, Off
return
F8::
Pause, On
return
F7::
inv_x1 := round( A_ScreenWidth-300 )
inv_y1 := round( ( A_ScreenHeight/2 )-inv_sum1 )
inv_x2 := round( A_ScreenWidth-250 )
inv_x22 := 20
inv_y2 := round( ( A_ScreenHeight/2 )-inv_sum2 )
udo_x := round( A_ScreenWidth-425 )
udo_y := round( ( A_ScreenHeight/2 )-sumka )
mouse_x := round( ( A_ScreenWidth/2 )+92 )
mouse_y := round( ( A_ScreenHeight/2 )+( A_ScreenHeight/3 )+8 )
ready_x1 := round( ( A_ScreenWidth/2 )-315 )
ready_y1 := round( A_ScreenHeight-63 )
ready_x2 := round( ( A_ScreenWidth/2 )-305 )
ready_y2 := round( A_ScreenHeight-59 )
Loop {
Label1:
sleep, 500
BlockInput, SendAndMouse
SendInput, {sc17}
BlockInput, Default
sleep 1500
ImageSearch,,, inv_x1, inv_y1, inv_x2-inv_x22, inv_y2, *TransBlack *50 10.png
if ( ErrorLevel = &quot;0&quot; ) {
sleep, 500
SoundBeep, 400, 800
SoundBeep, 400, 800
return
}
ImageSearch,,, inv_x1, inv_y1, inv_x2, inv_y2, *TransBlack *50 99.png
if ( ErrorLevel = &quot;0&quot; ) {
sleep, 500
SoundBeep, 400, 800
SoundBeep, 400, 800
return
}
ImageSearch,,, inv_x1, inv_y1, inv_x2, inv_y2, *TransBlack *50 98.png
if ( ErrorLevel = &quot;0&quot; ) {
sleep, 500
SoundBeep, 400, 800
SoundBeep, 400, 800
return
}
ImageSearch,,, inv_x1, inv_y1, inv_x2, inv_y2, *TransBlack *50 97.png
if ( ErrorLevel = &quot;0&quot; ) {
sleep, 500
SoundBeep, 400, 800
SoundBeep, 400, 800
return
}
BlockInput, SendAndMouse
Click right %udo_x%, %udo_y%
BlockInput, Default
sleep, 1000
ImageSearch, FoundX, FoundY, 0, 0, A_ScreenWidth, A_ScreenHeight, *50 robot.png
if ( ErrorLevel = &quot;0&quot; ) {
SoundBeep, 1200
SoundBeep, 900
SoundBeep, 1200
SoundBeep, 890
SoundBeep, 700
SoundBeep, 890
SoundBeep, 600
}
sleep, 5000
Label2:
PixelGetColor, color, mouse_x, mouse_y, RGB
Var1 = %color%
if ( Var1 = 0xFF0000 or Var1 = 0xFA0000 or Var1 = 0xFB0000 or Var1 = 0xF90000 or Var1 = 0xFE0000 or Var1 = 0xFD0000 ) {
Loop 2 {
Send {Click}
sleep 50
}
Goto, Label2
}
else {
PixelSearch, x, y, ready_x1, ready_y1, ready_x2, ready_y2, 0x97FA04, 3, Fast RGB
if ( ErrorLevel = &quot;0&quot; ) {
Goto, Label1
}
else {
Goto, Label2
}
}
}
return
F2::
Exit:
ExitApp
return</code></pre></div><p>.</p><p>Не могу понять как тут работает следующее:</p><div class="codebox"><pre><code>sumka := 65
inv_sum1 := 250
inv_sum2 := 215</code></pre></div><div class="codebox"><pre><code>MySumka:
sumka := 185
inv_sum1 := 365
inv_sum2 := 330</code></pre></div><div class="codebox"><pre><code>inv_x1 := round( A_ScreenWidth-300 )
inv_y1 := round( ( A_ScreenHeight/2 )-inv_sum1 )
inv_x2 := round( A_ScreenWidth-250 )
inv_x22 := 20
inv_y2 := round( ( A_ScreenHeight/2 )-inv_sum2 )
udo_x := round( A_ScreenWidth-425 )
udo_y := round( ( A_ScreenHeight/2 )-sumka )
mouse_x := round( ( A_ScreenWidth/2 )+92 )
mouse_y := round( ( A_ScreenHeight/2 )+( A_ScreenHeight/3 )+8 )
ready_x1 := round( ( A_ScreenWidth/2 )-315 )
ready_y1 := round( A_ScreenHeight-63 )
ready_x2 := round( ( A_ScreenWidth/2 )-305 )
ready_y2 := round( A_ScreenHeight-59 )</code></pre></div><p>Помогите пожалуйста разобраться.</p>]]></content>
			<author>
				<name><![CDATA[uran612]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=42233</uri>
			</author>
			<updated>2021-12-22T06:17:22Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=151341#p151341</id>
		</entry>
</feed>
