<?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%3AObol%2FVTMacros</id>
	<title>User:Obol/VTMacros - 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%3AObol%2FVTMacros"/>
	<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t6w/index.php?title=User:Obol/VTMacros&amp;action=history"/>
	<updated>2026-07-06T01:54:55Z</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:Obol/VTMacros&amp;diff=232931&amp;oldid=prev</id>
		<title>Obol: Created page with &quot;I had to make a few tweaks to some of the VT scripts.  == Flax Stable ==  In the luaScripts folder edit the common_gps.inc file, replace the findCoords function with the followin...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t6w/index.php?title=User:Obol/VTMacros&amp;diff=232931&amp;oldid=prev"/>
		<updated>2013-03-26T17:02:24Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;I had to make a few tweaks to some of the VT scripts.  == Flax Stable ==  In the luaScripts folder edit the common_gps.inc file, replace the findCoords function with the followin...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;I had to make a few tweaks to some of the VT scripts.&lt;br /&gt;
&lt;br /&gt;
== Flax Stable ==&lt;br /&gt;
&lt;br /&gt;
In the luaScripts folder edit the common_gps.inc file, replace the findCoords function with the following. It as looking for year 1 and 2 on the clockloc window, so I added years 3 and 4, it we get to year 5 you will need to add another if statement.&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;B&amp;gt;Example:&amp;lt;/B&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;if(not anchor) then&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;anchor = findText(&amp;quot;4, &amp;quot;);&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;end&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
function findCoords()&lt;br /&gt;
  lsPrintln(&amp;quot;findCoords&amp;quot;);&lt;br /&gt;
  local result = nil;&lt;br /&gt;
  local anchor = findText(&amp;quot;1,&amp;quot;);&lt;br /&gt;
  if(not anchor) then&lt;br /&gt;
    anchor = findText(&amp;quot;2, &amp;quot;);&lt;br /&gt;
  end&lt;br /&gt;
  if(not anchor) then&lt;br /&gt;
    anchor = findText(&amp;quot;3, &amp;quot;);&lt;br /&gt;
  end&lt;br /&gt;
  if(not anchor) then&lt;br /&gt;
    anchor = findText(&amp;quot;4, &amp;quot;);&lt;br /&gt;
  end&lt;br /&gt;
  if(not anchor) then&lt;br /&gt;
    anchor = findText(&amp;quot;Year&amp;quot;);&lt;br /&gt;
  end&lt;br /&gt;
  if anchor then&lt;br /&gt;
    lsPrintln(&amp;quot;anchor&amp;quot;);&lt;br /&gt;
    local window = getWindowBorders(anchor[0], anchor[1]);&lt;br /&gt;
    local lines = findAllText(nil, window, NOPIN);&lt;br /&gt;
    for i=1,#lines do&lt;br /&gt;
      lsPrintln(&amp;quot;LINE &amp;quot; .. i .. &amp;quot; : &amp;quot; .. table.concat(lines[i], &amp;quot;,&amp;quot;));&lt;br /&gt;
    end&lt;br /&gt;
    local str = lines[#lines][2];&lt;br /&gt;
    lsPrintln(&amp;quot;lines: &amp;quot; .. str);&lt;br /&gt;
    local a, b, x, y = string.find(str, &amp;quot;: ([0-9-]+)\, ([0-9-]+)&amp;quot;);&lt;br /&gt;
    result = makePoint(tonumber(x), tonumber(y));&lt;br /&gt;
    if not result[0] or not result[1] then&lt;br /&gt;
      result = nil;&lt;br /&gt;
      lsPrintln(&amp;quot;Failed to find coords&amp;quot;);&lt;br /&gt;
    end&lt;br /&gt;
  end&lt;br /&gt;
  return result;&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Obol</name></author>
	</entry>
</feed>