<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.atitd.org/wiki/t4w/index.php?action=history&amp;feed=atom&amp;title=User%3ACegaiel%2FMacros%2FGlassbench%2FCode</id>
	<title>User:Cegaiel/Macros/Glassbench/Code - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://www.atitd.org/wiki/t4w/index.php?action=history&amp;feed=atom&amp;title=User%3ACegaiel%2FMacros%2FGlassbench%2FCode"/>
	<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t4w/index.php?title=User:Cegaiel/Macros/Glassbench/Code&amp;action=history"/>
	<updated>2026-06-02T21:05:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>http://www.atitd.org/wiki/t4w/index.php?title=User:Cegaiel/Macros/Glassbench/Code&amp;diff=218656&amp;oldid=prev</id>
		<title>Cegaiel at 07:56, 2 June 2010</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t4w/index.php?title=User:Cegaiel/Macros/Glassbench/Code&amp;diff=218656&amp;oldid=prev"/>
		<updated>2010-06-02T07:56:47Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 07:56, 2 June 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;; Glass Bench&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;; Glass Bench&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;; Date: &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;5&lt;/del&gt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;29&lt;/del&gt;/2010&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;; Date: &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;6&lt;/ins&gt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;2&lt;/ins&gt;/2010&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;; Author: Cegaiel&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;; Author: Cegaiel&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Cegaiel</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t4w/index.php?title=User:Cegaiel/Macros/Glassbench/Code&amp;diff=218655&amp;oldid=prev</id>
		<title>Cegaiel at 07:56, 2 June 2010</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t4w/index.php?title=User:Cegaiel/Macros/Glassbench/Code&amp;diff=218655&amp;oldid=prev"/>
		<updated>2010-06-02T07:56:13Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 07:56, 2 June 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;pre&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;; Glass Bench&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;; Glass Bench&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;; Date: 5/29/2010&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;; Date: 5/29/2010&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l232&quot; &gt;Line 232:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 233:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;^r::reload&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;^r::reload&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;^p::Pause&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;^p::Pause&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/pre&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Cegaiel</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t4w/index.php?title=User:Cegaiel/Macros/Glassbench/Code&amp;diff=218654&amp;oldid=prev</id>
		<title>Cegaiel: New page: ; Glass Bench ; Date: 5/29/2010 ; Author: Cegaiel  ; Ctrl+P (once to Pause, again to resume ; Ctrl+R to reload/reset script  ; Note: The timer adds 6 seconds to your project (ie a 60s proj...</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t4w/index.php?title=User:Cegaiel/Macros/Glassbench/Code&amp;diff=218654&amp;oldid=prev"/>
		<updated>2010-06-02T07:55:57Z</updated>

		<summary type="html">&lt;p&gt;New page: ; Glass Bench ; Date: 5/29/2010 ; Author: Cegaiel  ; Ctrl+P (once to Pause, again to resume ; Ctrl+R to reload/reset script  ; Note: The timer adds 6 seconds to your project (ie a 60s proj...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;; Glass Bench&lt;br /&gt;
; Date: 5/29/2010&lt;br /&gt;
; Author: Cegaiel&lt;br /&gt;
&lt;br /&gt;
; Ctrl+P (once to Pause, again to resume&lt;br /&gt;
; Ctrl+R to reload/reset script&lt;br /&gt;
&lt;br /&gt;
; Note: The timer adds 6 seconds to your project (ie a 60s project will take 66s). &lt;br /&gt;
; This is to ensure teppy time and lag doesn't make it click too soon.&lt;br /&gt;
; If you want to adjust this extra 6 seconds, scroll down, half way down the script and look for: seconds := (seconds + 6)&lt;br /&gt;
; Change the + 6 to however many seconds you want to offset the default project timer.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; This is the location of the heat bar (the first bar).  Use my GetMouse Position macro to determine the coordinates&lt;br /&gt;
; at your resolution if you are changing it. The below 106 and 138 is correct for 1024x768 resolution (pinned uppper left corner).&lt;br /&gt;
; You are only configuring the X position, the Y position is gathered while the script runs (it asks you to click the bar to get Y)&lt;br /&gt;
&lt;br /&gt;
; Configuration: ========&lt;br /&gt;
&lt;br /&gt;
curHeatMinX = 106 ; Around 1600-1650&lt;br /&gt;
curHeatMaxX = 138 ;Around 2200 degrees&lt;br /&gt;
&lt;br /&gt;
; =======================&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	Gui, Add, Text,, Choose amount of seconds for your project:&lt;br /&gt;
	Gui, Add, Text,,&lt;br /&gt;
	( LTrim&lt;br /&gt;
	60s: Glass Rod&lt;br /&gt;
	90s: Glass Pipe, Find Glass Pipe, Fine Glass Rod&lt;br /&gt;
	120s: Glass Blade, Sheet Glass&lt;br /&gt;
&lt;br /&gt;
	)&lt;br /&gt;
&lt;br /&gt;
	Gui, Add, DropDownList, vSeconds Choose1, 60|90|120&lt;br /&gt;
&lt;br /&gt;
	Gui, Add, Text,, How many?&lt;br /&gt;
	Gui, Add, Edit, vQty wp number&lt;br /&gt;
&lt;br /&gt;
	Gui, Add, Button, gSubmit, Next Step	&lt;br /&gt;
	Gui, Show&lt;br /&gt;
	return&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	Submit:&lt;br /&gt;
	Gui, Submit&lt;br /&gt;
&lt;br /&gt;
	if (Qty &amp;lt; 0)&lt;br /&gt;
	{&lt;br /&gt;
	Msgbox, You did not enter a Qty!`n`nTry again...&lt;br /&gt;
	RELOAD&lt;br /&gt;
	PAUSE&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	Gui, Destroy&lt;br /&gt;
	Gui, +AlwaysOnTop +ToolWindow&lt;br /&gt;
	Gui, Font, normal&lt;br /&gt;
	Gui, Add, Text, vRefresh,&lt;br /&gt;
	( LTrim&lt;br /&gt;
	Now middle click (click mouse-wheel) a spot on pinup to refresh screen.&lt;br /&gt;
&lt;br /&gt;
	(Hover over around where it says &amp;quot;This is a/your Glazier's Bench&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	)&lt;br /&gt;
	Gui, Show&lt;br /&gt;
&lt;br /&gt;
	WinGet, GameWinHandle, ID, eGenesis Client&lt;br /&gt;
		WinActivate, eGenesis Client&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	loop&lt;br /&gt;
	{&lt;br /&gt;
		WinActivate, eGenesis Client&lt;br /&gt;
		CoordMode, Mouse, Relative&lt;br /&gt;
		KeyWait, MButton, D&lt;br /&gt;
		KeyWait, MButton&lt;br /&gt;
		MouseGetPos, TestX, TestY, WinHandle&lt;br /&gt;
		if (WinHandle = GameWinHandle)&lt;br /&gt;
		{&lt;br /&gt;
&lt;br /&gt;
			Gosub, Record&lt;br /&gt;
		}&lt;br /&gt;
		else&lt;br /&gt;
		{&lt;br /&gt;
			Gui, Destroy&lt;br /&gt;
			break&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
	return&lt;br /&gt;
&lt;br /&gt;
; MineNum1 = Refresh&lt;br /&gt;
; MineNum2 = Project Location&lt;br /&gt;
; MineNum3 = Temperature Bar Y Position&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	Record:&lt;br /&gt;
	MineNum++&lt;br /&gt;
	MouseGetPos, MineX%MineNum%, MineY%MineNum%&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	if (MineNum = 1) {&lt;br /&gt;
	GuiControl, Text, Refresh,  Step 2:  Middle click Glass Project on Menu (ie Make a Glass Jar)`n`n`n&lt;br /&gt;
	return&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	} else if (MineNum = 2) {&lt;br /&gt;
	GuiControl, Text, Refresh,  Step 3: Click Y position of the Heat bar`n`nIt is the first bar (above Temperature: 0)`n`nClick anywhere in the bar...&lt;br /&gt;
	return&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	} else  {&lt;br /&gt;
	Gui, Destroy&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	Gui, +AlwaysOnTop +ToolWindow&lt;br /&gt;
	Gui, Add, Text, vMineNumText, Stand by, the macro will begin very shortly...`n`n`n`n`n`n`n&lt;br /&gt;
	Gui, Font, norm&lt;br /&gt;
	Gui, Show&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	seconds := (seconds + 6)&lt;br /&gt;
	gseconds = 0&lt;br /&gt;
	cseconds = 0&lt;br /&gt;
	counter = 0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	GuiControl, Text, MineNumText, Press F2 when the heat is at operating`ntemperature and has stopped spiking.`n`nThe macro will then take over.`n`nIdea range to hit F2 is 1800-2000.&lt;br /&gt;
	KeyWait, F2, D&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	SetDefaultMouseSpeed, 0&lt;br /&gt;
&lt;br /&gt;
	#Persistent &lt;br /&gt;
	SetTimer, MakeGlass, %gseconds%&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	Loop&lt;br /&gt;
	{&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
			WinActivate, eGenesis Client&lt;br /&gt;
&lt;br /&gt;
			;curHeatMin := FindRed(curHeatMinX, MineY3)&lt;br /&gt;
			curHeatMax := FindRed(curHeatMaxX, MineY3)&lt;br /&gt;
&lt;br /&gt;
			if (curHeatMax = 1)&lt;br /&gt;
			{&lt;br /&gt;
			MouseGetPos, OldMX, OldMY&lt;br /&gt;
			ImageSearch, OutputX, OutputY, 9, 42, 283, 299, *50 add2cc.PNG&lt;br /&gt;
			OutputX := OutputX +50&lt;br /&gt;
			OutputY := OutputY + 2&lt;br /&gt;
			Click, %OutputX%, %OutputY% ;Add 2 cc&lt;br /&gt;
			MouseMove, %OldMX%, %OldMY%, 0			&lt;br /&gt;
			cseconds = 100&lt;br /&gt;
			Sleep 98000&lt;br /&gt;
&lt;br /&gt;
			} else if (curHeatMax = 0) {&lt;br /&gt;
			GuiControl, Text, MineNumText, %gseconds%s remaining for next project`n%cseconds%s until next 2cc add.`n`nMaking %counter% of %qty% glass projects`n`nHeat too high, cooling down!&lt;br /&gt;
			}&lt;br /&gt;
&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
FindRed(TX, TY)&lt;br /&gt;
{	&lt;br /&gt;
	PixelSearch, PX, PY, TX, TY, TX+1, TY+1, 0x830605, 55, Fast|RGB&lt;br /&gt;
	return ErrorLevel&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
MakeGlass:&lt;br /&gt;
&lt;br /&gt;
if (gseconds = 0)&lt;br /&gt;
{&lt;br /&gt;
WinActivate, eGenesis Client&lt;br /&gt;
curHeatMin := FindRed(curHeatMinX, MineY3)&lt;br /&gt;
curHeatMax := FindRed(curHeatMaxX, MineY3)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
;if (gseconds = 0) and (curHeatMin = 0) and (curHeatMax = 1)&lt;br /&gt;
if (gseconds = 0) and (curHeatMin = 1) and (curHeatMax = 1)&lt;br /&gt;
{&lt;br /&gt;
WinActivate, eGenesis Client&lt;br /&gt;
MouseGetPos, OldMX, OldMY&lt;br /&gt;
Click, %MineX1%, %MineY1% ;Refresh&lt;br /&gt;
Sleep 100&lt;br /&gt;
Click %MineX2%, %MineY2% ;Make glass project&lt;br /&gt;
gseconds := seconds&lt;br /&gt;
MouseMove, %OldMX%, %OldMY%, 0			&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	if (counter = qty) and (cseconds = 0)&lt;br /&gt;
	{&lt;br /&gt;
	Msgbox, All done!`n`nExiting script...&lt;br /&gt;
	EXIT&lt;br /&gt;
	} else {&lt;br /&gt;
	counter ++&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
gseconds -- ;glass timer&lt;br /&gt;
cseconds -- ;cc timer&lt;br /&gt;
&lt;br /&gt;
if (cseconds &amp;lt; 0)&lt;br /&gt;
cseconds = 0&lt;br /&gt;
&lt;br /&gt;
if (gseconds &amp;lt; 0)&lt;br /&gt;
gseconds = 0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
if (curHeatMin = 0) and (curHeatMax = 1)&lt;br /&gt;
{&lt;br /&gt;
GuiControl, Text, MineNumText, %gseconds%s remaining for next project`n%cseconds%s until next 2cc add.`n`nMaking %counter% of %qty% glass projects&lt;br /&gt;
&lt;br /&gt;
} else if (curHeatMin = 1) {&lt;br /&gt;
GuiControl, Text, MineNumText, %gseconds%s remaining for next project`n%cseconds%s until next 2cc add.`n`nMaking %counter% of %qty% glass projects`n`nHeat too low, standby while the temp increases.&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
sleep 1000&lt;br /&gt;
return&lt;br /&gt;
&lt;br /&gt;
^r::reload&lt;br /&gt;
^p::Pause&lt;/div&gt;</summary>
		<author><name>Cegaiel</name></author>
	</entry>
</feed>