<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.atitd.org/wiki/t6w/index.php?action=history&amp;feed=atom&amp;title=User%3ACegaiel%2FMacros%2FFishing%2FCode</id>
	<title>User:Cegaiel/Macros/Fishing/Code - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://www.atitd.org/wiki/t6w/index.php?action=history&amp;feed=atom&amp;title=User%3ACegaiel%2FMacros%2FFishing%2FCode"/>
	<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t6w/index.php?title=User:Cegaiel/Macros/Fishing/Code&amp;action=history"/>
	<updated>2026-06-04T08:26:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>http://www.atitd.org/wiki/t6w/index.php?title=User:Cegaiel/Macros/Fishing/Code&amp;diff=148941&amp;oldid=prev</id>
		<title>Cegaiel: Created page with &quot;&lt;pre&gt; ;Ctrl+P to pause script and Ctrl+P again to resume ;The AHK icon in system tray will turn red while paused. ;Ctrl+R to reload script    Seconds = 16   IfWinExist eGenesis C...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t6w/index.php?title=User:Cegaiel/Macros/Fishing/Code&amp;diff=148941&amp;oldid=prev"/>
		<updated>2012-02-03T04:28:33Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; ;Ctrl+P to pause script and Ctrl+P again to resume ;The AHK icon in system tray will turn red while paused. ;Ctrl+R to reload script    Seconds = 16   IfWinExist eGenesis C...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
;Ctrl+P to pause script and Ctrl+P again to resume&lt;br /&gt;
;The AHK icon in system tray will turn red while paused.&lt;br /&gt;
;Ctrl+R to reload script&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Seconds = 16&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
IfWinExist eGenesis Client&lt;br /&gt;
{&lt;br /&gt;
	WinActivate&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	InputBox, NumPulls, Fishing, Step 1: Enter how many times do you want to cast?&lt;br /&gt;
	Location = 1&lt;br /&gt;
	Cycle = 0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	Gui, +AlwaysOnTop +ToolWindow&lt;br /&gt;
	Gui, Font, bold&lt;br /&gt;
	Gui, Add, Text, vLocationText, Step 2: Record the location of fishing icon...&lt;br /&gt;
	Gui, Font, norm&lt;br /&gt;
	Gui, Add, Text,, Hover and middle-click (Click mouse-wheel) on the fishing icon&lt;br /&gt;
	Gui, Show&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	WinGet, GameWinHandle, ID, eGenesis Client&lt;br /&gt;
	loop&lt;br /&gt;
	{&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;
			Gosub, RecordIcon&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;
	RecordIcon:&lt;br /&gt;
	MouseGetPos, LocX%Location%, LocY%Location%&lt;br /&gt;
	Gui, Destroy&lt;br /&gt;
	Gui, +AlwaysOnTop +ToolWindow&lt;br /&gt;
	Gui, Font, bold&lt;br /&gt;
	Gui, Add, Text, LocationText, Fishing icon captured!&lt;br /&gt;
	Gui, Font, norm&lt;br /&gt;
	Gui, Add, Text,, &lt;br /&gt;
	( LTrim&lt;br /&gt;
	Hotkeys:&lt;br /&gt;
	Ctrl+P to Pause script, Ctrl+P again to Resume&lt;br /&gt;
	Ctrl+R to Reload script&lt;br /&gt;
&lt;br /&gt;
	Note: If you are eating grilled cabbage for +speed, to increase fishing yields,&lt;br /&gt;
	then 43 casts is about when stats will wear off...&lt;br /&gt;
&lt;br /&gt;
	)&lt;br /&gt;
&lt;br /&gt;
	Gui, Add, Button, default gSetLoops, GO FISHING&lt;br /&gt;
	Gui, Show&lt;br /&gt;
	return&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	SetLoops:&lt;br /&gt;
	Gui, Submit&lt;br /&gt;
	Gui, Destroy&lt;br /&gt;
	Gui, +AlwaysOnTop +ToolWindow&lt;br /&gt;
	Gui, Font, bold&lt;br /&gt;
	Gui, Add, Text, vLocationText, Ready to fish, Good Luck!&lt;br /&gt;
	Gui, Show&lt;br /&gt;
&lt;br /&gt;
Sleep 2000&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	loop, %NumPulls%&lt;br /&gt;
	{&lt;br /&gt;
&lt;br /&gt;
			WinActivate, eGenesis Client&lt;br /&gt;
&lt;br /&gt;
			LocPosX := LocX%Location%&lt;br /&gt;
			LocPosY := LocY%Location%&lt;br /&gt;
			MouseGetPos, OldMX, OldMY&lt;br /&gt;
			Click, %LocPosX%, %LocPosY%&lt;br /&gt;
			MouseMove, %OldMX%, %OldMY%, 0			&lt;br /&gt;
			Cycle++&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
			SecondsCountDown := Seconds&lt;br /&gt;
	;Loops to do nothing but display seconds countdown	&lt;br /&gt;
	loop, %Seconds%&lt;br /&gt;
	{&lt;br /&gt;
			GuiControl, Text, LocationText, Cast: %Cycle% of %NumPulls%  Next: %SecondsCountdown%s&lt;br /&gt;
			SecondsCountdown := SecondsCountdown - 1&lt;br /&gt;
			Sleep 1000&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
			GetKeyState, state, F2&lt;br /&gt;
			if state = D&lt;br /&gt;
			{&lt;br /&gt;
			break&lt;br /&gt;
			}&lt;br /&gt;
			&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
if Cycle = %NumPulls%&lt;br /&gt;
{&lt;br /&gt;
	Gui, Destroy&lt;br /&gt;
	Gui, Font, bold&lt;br /&gt;
	Gui, Add, Text, LocationText, Cast: %Cycle% of %NumPulls%&lt;br /&gt;
	Gui, Font, norm&lt;br /&gt;
	Gui, Add, Text,,&lt;br /&gt;
	( LTrim&lt;br /&gt;
	All Done!&lt;br /&gt;
&lt;br /&gt;
	Hope you caught lots of fish!&lt;br /&gt;
&lt;br /&gt;
	Middle-click on this window to end the script.&lt;br /&gt;
	)&lt;br /&gt;
	Gui, Show&lt;br /&gt;
&lt;br /&gt;
Exit&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	}&lt;br /&gt;
	Gui, Destroy&lt;br /&gt;
	Gui, Add, Text,, Middle-click on this window to end the script.&lt;br /&gt;
	Gui, Show&lt;br /&gt;
	return&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
^r::reload&lt;br /&gt;
^p::Pause&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Cegaiel</name></author>
	</entry>
</feed>