<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
	<title>AutoIt v3 - Developer Chat</title>
	<description>AutoIt v3 - Developer Chat</description>
	<link>http://www.autoitscript.com/forum/index.php</link>
	<pubDate>Fri, 13 Nov 2009 05:55:51 +0000</pubDate>
	<ttl>15</ttl>
	<item>
		<title>getsubitemtext</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=105404</link>
		<description><![CDATA[I'm working on a dll to sort listviews faster and I need the following code converted to c. I'm new to c and am not sure how to go about doing this. To make matters worse when I google for c it turns up C++.<br />
<br />
<div class='geshitop'>&#91; autoIt &#93; &nbsp; &nbsp;( <a href='javascript:;' onclick='javascript:geshiExpand(this)'>Expand</a><a href='javascript:;' onclick='javascript:geshiCollapse(this)' style='display: none'>Collapse</a> - <a href='#' onclick='javascript:geshiPopup(this); return false;'>Popup</a> )</div><div class='geshimainboxed'><pre><div class="autoit" style="font-family:monospace;"><a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Func</span></a> GetSubItemText<span class="br0">&#40;</span><span class="re0">$nCtrlID</span><span class="sy0">,</span> <span class="re0">$nItemID</span><span class="sy0">,</span> <span class="re0">$nColumn</span><span class="br0">&#41;</span>
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Local</span></a> <span class="re0">$stLvfi</span> <span class="sy0">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/DllStructCreate.htm"><span class="kw3">DllStructCreate</span></a><span class="br0">&#40;</span><span class="st0">"uint;ptr;int;int&#91;2&#93;;int"</span><span class="br0">&#41;</span>
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Local</span></a> <span class="re0">$nIndex</span><span class="sy0">,</span> <span class="re0">$stBuffer</span><span class="sy0">,</span> <span class="re0">$stLvi</span><span class="sy0">,</span> <span class="re0">$sItemText</span>

&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/DllStructSetData.htm"><span class="kw3">DllStructSetData</span></a><span class="br0">&#40;</span><span class="re0">$stLvfi</span><span class="sy0">,</span> 1<span class="sy0">,</span> <span class="re0">$LVFI_PARAM</span><span class="br0">&#41;</span>
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/DllStructSetData.htm"><span class="kw3">DllStructSetData</span></a><span class="br0">&#40;</span><span class="re0">$stLvfi</span><span class="sy0">,</span> 3<span class="sy0">,</span> <span class="re0">$nItemID</span><span class="br0">&#41;</span>

&nbsp; &nbsp; <span class="re0">$stBuffer</span> <span class="sy0">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/DllStructCreate.htm"><span class="kw3">DllStructCreate</span></a><span class="br0">&#40;</span><span class="st0">"char&#91;260&#93;"</span><span class="br0">&#41;</span>

&nbsp; &nbsp; <span class="re0">$nIndex</span> <span class="sy0">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/GUICtrlSendMsg.htm"><span class="kw3">GUICtrlSendMsg</span></a><span class="br0">&#40;</span><span class="re0">$nCtrlID</span><span class="sy0">,</span> <span class="re0">$LVM_FINDITEM</span><span class="sy0">,</span> <span class="sy0">-</span>1<span class="sy0">,</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/DllStructGetPtr.htm"><span class="kw3">DllStructGetPtr</span></a><span class="br0">&#40;</span><span class="re0">$stLvfi</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="co0">;</span>

&nbsp; &nbsp; <span class="re0">$stLvi</span> <span class="sy0">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/DllStructCreate.htm"><span class="kw3">DllStructCreate</span></a><span class="br0">&#40;</span><span class="st0">"uint;int;int;uint;uint;ptr;int;int;int;int"</span><span class="br0">&#41;</span>

&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/DllStructSetData.htm"><span class="kw3">DllStructSetData</span></a><span class="br0">&#40;</span><span class="re0">$stLvi</span><span class="sy0">,</span> 1<span class="sy0">,</span> <span class="re0">$LVIF_TEXT</span><span class="br0">&#41;</span>
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/DllStructSetData.htm"><span class="kw3">DllStructSetData</span></a><span class="br0">&#40;</span><span class="re0">$stLvi</span><span class="sy0">,</span> 2<span class="sy0">,</span> <span class="re0">$nIndex</span><span class="br0">&#41;</span>
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/DllStructSetData.htm"><span class="kw3">DllStructSetData</span></a><span class="br0">&#40;</span><span class="re0">$stLvi</span><span class="sy0">,</span> 3<span class="sy0">,</span> <span class="re0">$nColumn</span><span class="br0">&#41;</span>
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/DllStructSetData.htm"><span class="kw3">DllStructSetData</span></a><span class="br0">&#40;</span><span class="re0">$stLvi</span><span class="sy0">,</span> 6<span class="sy0">,</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/DllStructGetPtr.htm"><span class="kw3">DllStructGetPtr</span></a><span class="br0">&#40;</span><span class="re0">$stBuffer</span><span class="br0">&#41;</span><span class="br0">&#41;</span>
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/DllStructSetData.htm"><span class="kw3">DllStructSetData</span></a><span class="br0">&#40;</span><span class="re0">$stLvi</span><span class="sy0">,</span> 7<span class="sy0">,</span> 260<span class="br0">&#41;</span>

&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/GUICtrlSendMsg.htm"><span class="kw3">GUICtrlSendMsg</span></a><span class="br0">&#40;</span><span class="re0">$nCtrlID</span><span class="sy0">,</span> <span class="re0">$LVM_GETITEMA</span><span class="sy0">,</span> 0<span class="sy0">,</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/DllStructGetPtr.htm"><span class="kw3">DllStructGetPtr</span></a><span class="br0">&#40;</span><span class="re0">$stLvi</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="co0">;</span>

&nbsp; &nbsp; <span class="re0">$sItemText</span> <span class="sy0">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/DllStructGetData.htm"><span class="kw3">DllStructGetData</span></a><span class="br0">&#40;</span><span class="re0">$stBuffer</span><span class="sy0">,</span> 1<span class="br0">&#41;</span>

&nbsp; &nbsp; <span class="re0">$stLvi</span> <span class="sy0">=</span> 0
&nbsp; &nbsp; <span class="re0">$stLvfi</span> <span class="sy0">=</span> 0
&nbsp; &nbsp; <span class="re0">$stBuffer</span> <span class="sy0">=</span> 0

&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Return</span></a> <span class="re0">$sItemText</span>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">EndFunc</span></a> &nbsp; <span class="co0">;==&gt;GetSubItemText</span></div></pre></div>]]></description>
		<pubDate>Fri, 13 Nov 2009 05:55:51 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=105404</guid>
	</item>
	<item>
		<title>making a dll for autoit</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=105344</link>
		<description><![CDATA[I have the following dll I compile with the codeblocks C++ ide.<br />
<br />
<div class='geshitop'>&#91; code='text' &#93; &nbsp; &nbsp;( <a href='javascript:;' onclick='javascript:geshiExpand(this)'>Expand</a><a href='javascript:;' onclick='javascript:geshiCollapse(this)' style='display: none'>Collapse</a> - <a href='#' onclick='javascript:geshiPopup(this); return false;'>Popup</a> )</div><div class='geshimainboxed'><pre><div class="text" style="font-family:monospace;">#include "main.h"

// a sample exported function
void DLL_EXPORT Hello()
{
&nbsp; &nbsp; MessageBoxA(0, "Hello", "DLL Message", MB_OK | MB_ICONINFORMATION);
}

BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
&nbsp; &nbsp; switch (fdwReason)
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; case DLL_PROCESS_ATTACH:
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // attach to process
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // return FALSE to fail DLL load
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;

&nbsp; &nbsp; &nbsp; &nbsp; case DLL_PROCESS_DETACH:
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // detach from process
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;

&nbsp; &nbsp; &nbsp; &nbsp; case DLL_THREAD_ATTACH:
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // attach to thread
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;

&nbsp; &nbsp; &nbsp; &nbsp; case DLL_THREAD_DETACH:
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // detach from thread
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;
&nbsp; &nbsp; }
&nbsp; &nbsp; return TRUE; // succesful
}</div></pre></div><br />
<br />
However the dll does not seem to work. If I try to open the dll with autoit it returns -1 which means an error has occured. What am I doing wrong?<br />
<br />
<div class='geshitop'>&#91; autoIt &#93; &nbsp; &nbsp;( <a href='#' onclick='javascript:geshiPopup(this); return false;'>Popup</a> )</div><div class='geshimain'><pre><div class="autoit" style="font-family:monospace;"><span class="re0">$Handle</span><span class="sy0">=</span><a href="http://www.autoitscript.com/autoit3/docs/functions/DllOpen.htm"><span class="kw3">DllOpen</span></a><span class="br0">&#40;</span><span class="re0">@ScriptDir</span><span class="sy0">&</span><span class="st0">"&#092;Listview.dll"</span><span class="br0">&#41;</span>
<a href="http://www.autoitscript.com/autoit3/docs/functions/MsgBox.htm"><span class="kw3">MsgBox</span></a><span class="br0">&#40;</span>0<span class="sy0">,</span><a href="http://www.autoitscript.com/autoit3/docs/macros.htm"><span class="kw2"><span class="re0">@Error</span></span></a><span class="sy0">,</span><span class="re0">$Handle</span><span class="br0">&#41;</span>
<a href="http://www.autoitscript.com/autoit3/docs/functions/DllCall.htm"><span class="kw3">DllCall</span></a><span class="br0">&#40;</span><span class="re0">$Handle</span><span class="sy0">,</span><span class="st0">"none"</span><span class="sy0">,</span><span class="st0">"hello"</span><span class="br0">&#41;</span></div></pre></div><div id='attach_wrap' class='rounded clearfix'>
	<h4></h4>
	<ul>
		
			<li class='clear'>
				<a href="http://www.autoitscript.com/forum/index.php?app=core&module=attach&section=attach&attach_id=28521&s=186e1f1c748cea2ed8e0eccb1223385f" title=""><img src="http://www.autoitscript.com/forum/public/style_extra/mime_types/exe.gif" alt="" /></a>
&nbsp;<a href="http://www.autoitscript.com/forum/index.php?app=core&module=attach&section=attach&attach_id=28521&s=186e1f1c748cea2ed8e0eccb1223385f" title="">Listview.dll</a> <span class='desc'><strong>(5.5K)</strong></span>
<br /><span class="desc info">: 15</span>
			</li>
		
	</ul>
</div>]]></description>
		<pubDate>Wed, 11 Nov 2009 23:58:35 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=105344</guid>
	</item>
	<item>
		<title>Reading/Writing Memory in x64</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=105067</link>
		<description><![CDATA[I recently upgraded my home PC to x64, my dev laptop is still 32 bit, but it got me thinking about how AutoIt interacts with x64 and the whole WOW64 subsystem.  Here's the scenario I'm thinking about.  In a UDF like my API hooking script, virtual memory is directly read and modified.  Some of this memory is pointers.  So in a native x64 to x64 interaction, the pointers would all be 64 bit numbers (reading and writing), no mystery there.  But how does this work in the other scenarios - what does the process see when it reads the memory, and what does it have to write back to function properly?  Consider process A is the AutoIt script, and process B is the target process running on x64.<br />
<br />
A is 32 bit and B is 32 bit - both run under WOW64, do we treat all pointers as 32 bit numbers when reading and writing?<br />
A is 32 bit and B is 64 bit - target is x64, does WOW64 do some kind of translation for us during read and write?<br />
A is 64 bit and B is 32 bit - target is 32 bit, does WOW64 do some reverse traslation as above?<br />
<br />
The problem I can see here is when using Read/WriteProcessMemory we provide a byte structure, so the function has no idea what kind of data is contained (bytes, chars, pointers, etc).  As a first guess, I'd say that to properly accomplish a Read/Write, the script would have to know how it is compiled (32 or 64) and check the target process as well.<br />
<br />
Anyone have better information?  Maybe a good online resource for x64 programming best practices?]]></description>
		<pubDate>Thu, 05 Nov 2009 17:12:57 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=105067</guid>
	</item>
	<item>
		<title>New SciTE4AutoIt3 available with SciTE v1.79</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=104838</link>
		<description><![CDATA[10/31/2009: Uploaded a new <strong class='bbc'>SciTe4AutoIt3.exe</strong> installer with the new SciTE v1.79 release.<br />
IMPORTANT: This version doesn't have support for the ANSI version of AutoIt3 anymore since that is removed from AutoIt3.<br />
<br />
==&gt; <a href='http://www.scintilla.org/ScintillaHistory.html' class='bbc_url' title='External link' rel='external'>ScitillaHistory page containing all SciTE/Scintilla updates.</a><br />
==&gt; <a href='http://www.autoitscript.com/autoit3/scite/downloads.shtml' class='bbc_url' title='External link' rel='external'>Visit the SciTE4AutoIt3 Download page for the latest versions</a><br />
==&gt; Check <a href='http://www.autoitscript.com/autoit3/scite/main.shtml' class='bbc_url' title='External link' rel='external'>the online documentation </a>for an overview of all extra's you get with this installer.<br />
<br />
Enjoy,<br />
Jos<br />
<br />
<div class='geshitop'>&#91; code='text' &#93; &nbsp; &nbsp;( <a href='javascript:;' onclick='javascript:geshiExpand(this)'>Expand</a><a href='javascript:;' onclick='javascript:geshiCollapse(this)' style='display: none'>Collapse</a> - <a href='#' onclick='javascript:geshiPopup(this); return false;'>Popup</a> )</div><div class='geshimainboxed'><pre><div class="text" style="font-family:monospace;">
10/31/2009
*** Merged the updates of SciTE v 1.79 by Neil Hodgson with our own version of SciTE. (Jos)
&nbsp; &nbsp; - Change to allow bigger properties files.
*** Updated AutoIt3Wrapper_Gui/AutoIt3Wrapper v2.0.0.3 (Jos)
&nbsp; &nbsp; - Minor updates
*** Updated Tidy.exe v2.0.29.0 (Jos)
&nbsp; &nbsp; - changed logic to check for au3.api in the scite/api directory for updates.
&nbsp; &nbsp; - fixed extra space infront of a variable that ended with an underscore.
&nbsp; &nbsp; - fixed invalid minus-character tidying when behind Case.
*** Updated Obfuscator.exe v1.0.27.0 (Jos)
&nbsp; &nbsp; - All lines between #obfuscator_off/on will now not be stripped anymore.
&nbsp; &nbsp; - Fixed a reported stack corruption.
&nbsp; &nbsp; - Fixed never to remove Func that are used in a Func defined in #Obfuscator_Ignore_Funcs
&nbsp; &nbsp; - Fixed: Handle scientific notation properly in the Obfuscation process.
&nbsp; &nbsp; - Fixed excluding #include&lt;&gt; statements inside of comment blocks
&nbsp; &nbsp; - Fixed /OM parameter creating a func like ABS() duplication an internal func name
&nbsp; &nbsp; - Fixed StripOnly check for LineLength when only Parameters are used. &nbsp;(/so = /SF /SV /CV=0 /CF=0 /CS=0 /CN=0)
*** Updated SciTEConfig v1.6.7.0 (Jos)
&nbsp; &nbsp; - Updated the downloadpage link.
*** Some Helpfile updates.
&nbsp;</div></pre></div>]]></description>
		<pubDate>Sat, 31 Oct 2009 10:02:31 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=104838</guid>
	</item>
	<item>
		<title>FileSetPos and FileGetPos are being removed from the beta.</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=104761</link>
		<description><![CDATA[<del class='bbc'> I'm removing FileSetPos() and FileGetPos() from the betas and they won't be in 3.3.2.0. The functions are not working as intended and its due to a limitation in the way the file functions are implemented in AutoIt. It requires a rewrite to the file implementation and that's too much of a change to make at this time.<br />
<br />
<strong class='bbc'>Edit:</strong> Let me clarify. I'm not actually going to remove the functions, I'm only going to remove the documentation. That means, use it at your own risk and don't come crying to me if it changes post-3.3.2.0 because I <strong class='bbc'>will</strong> take you to task for bitching about undocumented features getting changed. </del>]]></description>
		<pubDate>Fri, 30 Oct 2009 02:13:02 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=104761</guid>
	</item>
	<item>
		<title>Enhanced parameter for _ExcelBookNew( )</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=104617</link>
		<description><![CDATA[Hi,<br />
by creation of an new ExcelBook, we get an default value of sheets (if not user defined: 3).<br />
To make it more flexible, i've added an parameter "$iSheetsStartup" in function _ExcelBookNew(). The default value is '1'.<br />
What do you mean, make it sense to enhance the function in Excel-UDF with this parameter?<br />
<br />
<div class='geshitop'>&#91; autoIt &#93; &nbsp; &nbsp;( <a href='#' onclick='javascript:geshiPopup(this); return false;'>Popup</a> )</div><div class='geshimain'><pre><div class="autoit" style="font-family:monospace;">
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Func</span></a> _ExcelBookNew<span class="br0">&#40;</span><span class="re0">$fVisible</span> <span class="sy0">=</span> 1<span class="sy0">,</span> <span class="re0">$iSheetsStartup</span> <span class="sy0">=</span> 1<span class="br0">&#41;</span>
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Local</span></a> <span class="re0">$oExcel</span> <span class="sy0">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/ObjCreate.htm"><span class="kw3">ObjCreate</span></a><span class="br0">&#40;</span><span class="st0">"Excel.Application"</span><span class="br0">&#41;</span>
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">If</span></a> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Not</span></a> <a href="http://www.autoitscript.com/autoit3/docs/functions/IsObj.htm"><span class="kw3">IsObj</span></a><span class="br0">&#40;</span><span class="re0">$oExcel</span><span class="br0">&#41;</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Then</span></a> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Return</span></a> <a href="http://www.autoitscript.com/autoit3/docs/functions/SetError.htm"><span class="kw3">SetError</span></a><span class="br0">&#40;</span>1<span class="sy0">,</span> 0<span class="sy0">,</span> 0<span class="br0">&#41;</span>
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">If</span></a> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Not</span></a> <a href="http://www.autoitscript.com/autoit3/docs/functions/IsNumber.htm"><span class="kw3">IsNumber</span></a><span class="br0">&#40;</span><span class="re0">$fVisible</span><span class="br0">&#41;</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Then</span></a> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Return</span></a> <a href="http://www.autoitscript.com/autoit3/docs/functions/SetError.htm"><span class="kw3">SetError</span></a><span class="br0">&#40;</span>2<span class="sy0">,</span> 0<span class="sy0">,</span> 0<span class="br0">&#41;</span>
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">If</span></a> <span class="re0">$fVisible</span> <span class="sy0">&gt;</span> 1 <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Then</span></a> <span class="re0">$fVisible</span> <span class="sy0">=</span> 1
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">If</span></a> <span class="re0">$fVisible</span> <span class="sy0">&lt;</span> 0 <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Then</span></a> <span class="re0">$fVisible</span> <span class="sy0">=</span> 0
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">If</span></a> <span class="re0">$iSheetsStartup</span> <span class="sy0">&lt;</span> 1 <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Then</span></a> <span class="re0">$iSheetsStartup</span> <span class="sy0">=</span> 1
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">With</span></a> <span class="re0">$oExcel</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sy0">.</span><span class="me1">SheetsInNewWorkbook</span> <span class="sy0">=</span> <span class="re0">$iSheetsStartup</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sy0">.</span><span class="me1">Visible</span> <span class="sy0">=</span> <span class="re0">$fVisible</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sy0">.</span><span class="me1">WorkBooks</span><span class="sy0">.</span><span class="me1">Add</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sy0">.</span><span class="me1">ActiveWorkbook</span><span class="sy0">.</span><span class="me1">Sheets</span><span class="br0">&#40;</span>1<span class="br0">&#41;</span><span class="sy0">.</span><a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Select</span></a> <span class="br0">&#40;</span><span class="br0">&#41;</span>
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">EndWith</span></a>
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Return</span></a> <span class="re0">$oExcel</span>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">EndFunc</span></a>
&nbsp;</div></pre></div>]]></description>
		<pubDate>Tue, 27 Oct 2009 12:00:20 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=104617</guid>
	</item>
	<item>
		<title>scite 4</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=104598</link>
		<description><![CDATA[ok .. for anyone who hasnt got it yet.. GET IT<br />
<br />
me .. i only just got it and<br />
<br />
if i had bothered to get it ages ago it would have saved me ALOT of time <img src='http://www.autoitscript.com/forum/public/style_emoticons/autoit/biggrin.gif' class='bbc_emoticon' alt=':D' /><br />
<br />
thanks jos for it <img src='http://www.autoitscript.com/forum/public/style_emoticons/autoit/smile.gif' class='bbc_emoticon' alt=':)' />]]></description>
		<pubDate>Tue, 27 Oct 2009 00:54:49 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=104598</guid>
	</item>
	<item>
		<title>Using icon libraries.</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=104568</link>
		<description><![CDATA[I mentioned this quite a while back and I'm wondering if anyone has looked into it.<br />
GUICtrlSetImage() using an image contained in an icl file won't work on Win 7.<br />
So far I have not discovered a work-around.  It's fine in XP but doesn't show the icon at all in W7 whether referenced by name or index.<br />
<br />
Probably "As Designed" by Microsoft but someplace along the way we are going to need a solution.  They seem to be okay of the file is a proper dll file but not if it's a dll created by Icon Workshop.]]></description>
		<pubDate>Mon, 26 Oct 2009 15:03:07 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=104568</guid>
	</item>
	<item>
		<title>Function Error</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=104545</link>
		<description><![CDATA[Can some others confirm a 'Error in expression.' error in this example before I submit a bug report?  If so this is ugly...<br />
<span style='color: #FF0000'><em class='bbc'><strong class='bbc'>AutoIt version 3.3.1.3 beta</strong></em></span><br />
<div class='geshitop'>&#91; autoIt &#93; &nbsp; &nbsp;( <a href='#' onclick='javascript:geshiPopup(this); return false;'>Popup</a> )</div><div class='geshimain'><pre><div class="autoit" style="font-family:monospace;"><span class="re0">$val</span> <span class="sy0">=</span> DIE<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="sy0">+</span> 1
<a href="http://www.autoitscript.com/autoit3/docs/functions/ConsoleWrite.htm"><span class="kw3">ConsoleWrite</span></a><span class="br0">&#40;</span><span class="re0">$val</span> <span class="sy0">&</span> <a href="http://www.autoitscript.com/autoit3/docs/macros.htm"><span class="kw2"><span class="re0">@CRLF</span></span></a><span class="br0">&#41;</span>
<span class="co0">; this one errors</span>
<span class="re0">$val</span> <span class="sy0">=</span> DIE<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="sy0">-</span> 1
<a href="http://www.autoitscript.com/autoit3/docs/functions/ConsoleWrite.htm"><span class="kw3">ConsoleWrite</span></a><span class="br0">&#40;</span><span class="re0">$val</span> <span class="sy0">&</span> <a href="http://www.autoitscript.com/autoit3/docs/macros.htm"><span class="kw2"><span class="re0">@CRLF</span></span></a><span class="br0">&#41;</span>

<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Func</span></a> DIE<span class="br0">&#40;</span><span class="br0">&#41;</span>
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Return</span></a> 5
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">EndFunc</span></a></div></pre></div>]]></description>
		<pubDate>Mon, 26 Oct 2009 02:07:34 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=104545</guid>
	</item>
	<item>
		<title>Conversion from string to number.</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=104502</link>
		<description><![CDATA[This poll is to gauge what user expectations are for the conversion from a string to a number when the string starts with numbers but also contains non-numbers. I do not care about what the current beh&#097;vior is, I am only interested in what the <span class='bbc_underline'><strong class='bbc'>expected</strong></span> beh&#097;vior from you in the community is.<br />
<br />
<strong class='bbc'>Edit: </strong>The poll will be open for a 3 or 4 days.]]></description>
		<pubDate>Sat, 24 Oct 2009 16:50:49 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=104502</guid>
	</item>
	<item>
		<title>Using the data_seg #pragma</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=104470</link>
		<description><![CDATA[I discovered <a href='http://msdn.microsoft.com/en-us/library/h90dkhs0.aspx' class='bbc_url' title='External link' rel='external'>this</a> in the hunt for a method of IPC I could use between a dll and an AutoIt script. <br />
It's essentially a way to share variables between instances of a dll. I was wondering if someone might guide me in the right direction to using this, because I'm encountering some unexpected behavior.<br />
<br />
The linker settings are correct:<br />
<div class='geshitop'>&#91; code='text' &#93; &nbsp; &nbsp;( <a href='#' onclick='javascript:geshiPopup(this); return false;'>Popup</a> )</div><div class='geshimain'><pre><div class="text" style="font-family:monospace;">/SECTION:.myseg,R,W,S</div></pre></div><br />
<br />
I created a variable to be shared<br />
<div class='geshitop'>&#91; code='c++' &#93; &nbsp; &nbsp;( <a href='#' onclick='javascript:geshiPopup(this); return false;'>Popup</a> )</div><div class='geshimain'><pre><div class="c" style="font-family:monospace;"><span style="color: #339933;">#pragma data_seg (".myseg")</span>
&nbsp;<span style="color: #993333;">double</span> sharedTestVar <span style="color: #339933;">=</span> <span style="color: #0000dd;">0</span><span style="color: #339933;">;</span>
<span style="color: #339933;">#pragma data_seg()</span></div></pre></div><br />
<br />
I then load the dll into the application. Once loaded, I run a simple script:<br />
<div class='geshitop'>&#91; autoIt &#93; &nbsp; &nbsp;( <a href='#' onclick='javascript:geshiPopup(this); return false;'>Popup</a> )</div><div class='geshimain'><pre><div class="autoit" style="font-family:monospace;"><span class="re0">$myDLL</span> <span class="sy0">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/DllOpen.htm"><span class="kw3">DllOpen</span></a><span class="br0">&#40;</span><span class="st0">"AutoItRelay.dll"</span><span class="br0">&#41;</span>
<span class="re0">$result</span> <span class="sy0">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/DllCall.htm"><span class="kw3">DllCall</span></a><span class="br0">&#40;</span><span class="re0">$myDll</span><span class="sy0">,</span> <span class="st0">"double:cdecl"</span><span class="sy0">,</span> <span class="st0">"test_interact"</span><span class="sy0">,</span> <span class="st0">"double"</span><span class="sy0">,</span> 10<span class="br0">&#41;</span>
<a href="http://www.autoitscript.com/autoit3/docs/functions/ConsoleWrite.htm"><span class="kw3">ConsoleWrite</span></a><span class="br0">&#40;</span><span class="re0">$result</span><span class="br0">&#91;</span>0<span class="br0">&#93;</span> <span class="sy0">&</span> <a href="http://www.autoitscript.com/autoit3/docs/macros.htm"><span class="kw2"><span class="re0">@CRLF</span></span></a><span class="br0">&#41;</span>
<a href="http://www.autoitscript.com/autoit3/docs/functions/DllClose.htm"><span class="kw3">DllClose</span></a><span class="br0">&#40;</span><span class="re0">$myDll</span><span class="br0">&#41;</span></div></pre></div><br />
<br />
test_interact is an exported function that increments sharedTestVar by the parameter.<br />
<br />
Inside the application that's loaded the dll, sharedTestVar doesn't seem to change. However, when I run the script, it shows sharedTestVar incrementing as I expected, up by 10 for every time I run the script.<br />
<br />
What am I missing?]]></description>
		<pubDate>Fri, 23 Oct 2009 20:23:18 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=104470</guid>
	</item>
	<item>
		<title>VMWare, Dll profiling, and an idea</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=104266</link>
		<description><![CDATA[So, I know that getting the functions in a dll, then iterating through the parameters until I get a successful DllCall would be a dumb thing to do, because there's no telling what a function will do (like format your hard drive, or something similiarly horrible.)<br />
<br />
I was thinking, though, that inside a virtual box, you could automate combinations of parameters, returns, and so on, until you got a working DllCall (@error = 0,) and have it output a list of properly formatted DllCalls, ready for you to turn into a usable UDF.<br />
<br />
You could up a restricted directory beforehand, then specify expected file extensions for reads and writes, maybe set up a valid file in the directory for the dll to use. I'd block internet access, but otherwise only have windows and the appropriate dll installed to the VM.<br />
<br />
I'm basing the whole scenario on the idea that you'd be using a dll from a known source that's verified to work in the way it's intended, not something randomly downloaded. I think that, ultimately, this would make using dllcall a bit easier, but I wanted to get an opinion before I try it. Is there anything dangerous that could happen, from inside the VM?]]></description>
		<pubDate>Tue, 20 Oct 2009 08:13:40 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=104266</guid>
	</item>
	<item>
		<title>MultiByteToWideChar / WideCharToMultiByte 3.3.1.3</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=104222</link>
		<description><![CDATA[Hi,<br />
<br />
Just made a test with the example of function _GUICtrlListView_GetGroupInfo with last beta 3.3.1.3<br />
It Gives "Group 1 Text: 0x008CDCD0" instead of "Group 1 Text: Group 1"<br />
Seems at least MultiByteToWideChar / WideCharToMultiByte are not behaving the usual way.<br />
<br />
Regards,]]></description>
		<pubDate>Mon, 19 Oct 2009 15:25:05 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=104222</guid>
	</item>
	<item>
		<title>More C# Help!</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=104181</link>
		<description><![CDATA[Sorry for continiously coming here for help with C#, its the only forum I know which replies and with good advice. <br />
<br />
Im trying to achieve the same effect as the AutoIt function 'DriveGetSerial(path)' but in C#.<br />
So I read some forums and googled about and found this;<br />
<a href='http://downloads.cfdan.com/csharp/usbserialnumber.cs.txt' class='bbc_url' title='External link' rel='external'>http://downloads.cfdan.com/csharp/usbserialnumber.cs.txt</a><br />
<br />
So I added it as a class however VC 2008 returns six errors.<br />
The errors being:<br />
1. The type or namespace name 'ManagementObject' could not be found (are you missing a using directive or an assembly reference?)	<br />
2. The type or namespace name 'ManagementObject' could not be found (are you missing a using directive or an assembly reference?)	<br />
3. The type or namespace name 'ManagementObjectSearcher' could not be found (are you missing a using directive or an assembly reference?)	<br />
4. The type or namespace name 'ManagementObjectSearcher' could not be found (are you missing a using directive or an assembly reference?)<br />
5. The type or namespace name 'ManagementObjectSearcher' could not be found (are you missing a using directive or an assembly reference?)	<br />
6. The type or namespace name 'ManagementObjectSearcher' could not be found (are you missing a using directive or an assembly reference?)<br />
<br />
So its obvious that its something to do with the System.Management however it is in there as, 'Using System.Management'.<br />
I have no idea what the reason could be with it as I merely copied and pasted the entire class.<br />
<br />
Once again sorry for coming here for C# help, thanks in advance, AwAke.]]></description>
		<pubDate>Sun, 18 Oct 2009 17:52:26 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=104181</guid>
	</item>
	<item>
		<title>Idea Topic</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=103894</link>
		<description>Wrong forum, srry..</description>
		<pubDate>Tue, 13 Oct 2009 22:16:31 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=103894</guid>
	</item>
	<item>
		<title>Comparisons With Ptr(x)</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=103855</link>
		<description><![CDATA[What kind of comparison is AutoIt doing here? Numeric or string? It seems like string to me, and that doesn't seem correct.<br />
<div class='geshitop'>&#91; autoIt &#93; &nbsp; &nbsp;( <a href='#' onclick='javascript:geshiPopup(this); return false;'>Popup</a> )</div><div class='geshimain'><pre><div class="autoit" style="font-family:monospace;"><span class="co0">;broken</span>
<a href="http://www.autoitscript.com/autoit3/docs/functions/ConsoleWrite.htm"><span class="kw3">ConsoleWrite</span></a><span class="br0">&#40;</span><span class="br0">&#40;</span><a href="http://www.autoitscript.com/autoit3/docs/functions/Ptr.htm"><span class="kw3">Ptr</span></a><span class="br0">&#40;</span>5<span class="br0">&#41;</span> <span class="sy0">=</span> 5<span class="br0">&#41;</span> <span class="sy0">&</span> <a href="http://www.autoitscript.com/autoit3/docs/macros.htm"><span class="kw2"><span class="re0">@CRLF</span></span></a><span class="br0">&#41;</span>
<a href="http://www.autoitscript.com/autoit3/docs/functions/ConsoleWrite.htm"><span class="kw3">ConsoleWrite</span></a><span class="br0">&#40;</span><span class="br0">&#40;</span><a href="http://www.autoitscript.com/autoit3/docs/functions/Ptr.htm"><span class="kw3">Ptr</span></a><span class="br0">&#40;</span>5<span class="br0">&#41;</span> <span class="sy0">&gt;</span> 0<span class="br0">&#41;</span> <span class="sy0">&</span> <a href="http://www.autoitscript.com/autoit3/docs/macros.htm"><span class="kw2"><span class="re0">@CRLF</span></span></a><span class="br0">&#41;</span>
<a href="http://www.autoitscript.com/autoit3/docs/functions/ConsoleWrite.htm"><span class="kw3">ConsoleWrite</span></a><span class="br0">&#40;</span><span class="br0">&#40;</span><a href="http://www.autoitscript.com/autoit3/docs/functions/Ptr.htm"><span class="kw3">Ptr</span></a><span class="br0">&#40;</span>5<span class="br0">&#41;</span> <span class="sy0">&lt;</span> 0<span class="br0">&#41;</span> <span class="sy0">&</span> <a href="http://www.autoitscript.com/autoit3/docs/macros.htm"><span class="kw2"><span class="re0">@CRLF</span></span></a><span class="br0">&#41;</span>

<span class="co0">; works</span>
<a href="http://www.autoitscript.com/autoit3/docs/functions/ConsoleWrite.htm"><span class="kw3">ConsoleWrite</span></a><span class="br0">&#40;</span><span class="br0">&#40;</span><a href="http://www.autoitscript.com/autoit3/docs/functions/Number.htm"><span class="kw3">Number</span></a><span class="br0">&#40;</span><a href="http://www.autoitscript.com/autoit3/docs/functions/Ptr.htm"><span class="kw3">Ptr</span></a><span class="br0">&#40;</span>5<span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="sy0">=</span> 5<span class="br0">&#41;</span> <span class="sy0">&</span> <a href="http://www.autoitscript.com/autoit3/docs/macros.htm"><span class="kw2"><span class="re0">@CRLF</span></span></a><span class="br0">&#41;</span>
<a href="http://www.autoitscript.com/autoit3/docs/functions/ConsoleWrite.htm"><span class="kw3">ConsoleWrite</span></a><span class="br0">&#40;</span><span class="br0">&#40;</span><a href="http://www.autoitscript.com/autoit3/docs/functions/Number.htm"><span class="kw3">Number</span></a><span class="br0">&#40;</span><a href="http://www.autoitscript.com/autoit3/docs/functions/Ptr.htm"><span class="kw3">Ptr</span></a><span class="br0">&#40;</span>5<span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="sy0">&gt;</span> 0<span class="br0">&#41;</span> <span class="sy0">&</span> <a href="http://www.autoitscript.com/autoit3/docs/macros.htm"><span class="kw2"><span class="re0">@CRLF</span></span></a><span class="br0">&#41;</span>
<a href="http://www.autoitscript.com/autoit3/docs/functions/ConsoleWrite.htm"><span class="kw3">ConsoleWrite</span></a><span class="br0">&#40;</span><span class="br0">&#40;</span><a href="http://www.autoitscript.com/autoit3/docs/functions/Number.htm"><span class="kw3">Number</span></a><span class="br0">&#40;</span><a href="http://www.autoitscript.com/autoit3/docs/functions/Ptr.htm"><span class="kw3">Ptr</span></a><span class="br0">&#40;</span>5<span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="sy0">&lt;</span> 0<span class="br0">&#41;</span> <span class="sy0">&</span> <a href="http://www.autoitscript.com/autoit3/docs/macros.htm"><span class="kw2"><span class="re0">@CRLF</span></span></a><span class="br0">&#41;</span></div></pre></div>]]></description>
		<pubDate>Mon, 12 Oct 2009 23:21:58 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=103855</guid>
	</item>
	<item>
		<title><![CDATA[@AppDataCommonDir &#38; Windows 7]]></title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=103761</link>
		<description><![CDATA[One of my users, <em class='bbc'>McoreD</em>, performs an unattended installation of Windows 7 where he creates an Autounattend.xml as documented by Microsoft here: <a href='http://technet.microsoft.com/en-us/library/cc749415%28WS.10%29.aspx' class='bbc_url' title='External link' rel='external'>http://technet.microsoft.com/en-us/library/cc749415%28WS.10%29.aspx</a><br />
<br />
contents of Autounattend.xml<br />
<div class='geshitop'>&#91; code='text' &#93; &nbsp; &nbsp;( <a href='#' onclick='javascript:geshiPopup(this); return false;'>Popup</a> )</div><div class='geshimain'><pre><div class="text" style="font-family:monospace;">&lt;component name="Microsoft-Windows-Shell-Setup" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="amd64"&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;FolderLocations&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;ProfilesDirectory&gt;D:&#092;Users&lt;/ProfilesDirectory&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;ProgramData&gt;D:&#092;ProgramData&lt;/ProgramData&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/FolderLocations&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/component&gt;</div></pre></div><br />
<br />
He chooses to move the ProgramData folder to 'D' as documented by Microsoft.<br />
My AutoIt executable, using @AppDataCommonDir, continues to try to write to C instead of D<br />
<br />
any assistance you could offer would be greatly appreciated.]]></description>
		<pubDate>Sun, 11 Oct 2009 02:41:06 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=103761</guid>
	</item>
	<item>
		<title>c question</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=103677</link>
		<description><![CDATA[I basically want to be able to have multiple ANNs (artificial neural nets) in an AutoIt script. I can initialize a single ANN struct very easily, and I've gotten all the examples working and my project set up,but before I dive in, I wanted to know if I can somehow use a string to reference and create a struct, and then pass that string back and forth between the c and autoIt code to manipulate the ANN?<br />
<br />
<div class='geshitop'>&#91; code='c' &#93; &nbsp; &nbsp;( <a href='#' onclick='javascript:geshiPopup(this); return false;'>Popup</a> )</div><div class='geshimain'><pre><div class="c" style="font-family:monospace;">ann <span style="color: #339933;">=</span> fann_create_standard<span style="color: #009900;">&#40;</span>num_layers<span style="color: #339933;">,</span> num_input<span style="color: #339933;">,</span> num_neurons_hidden<span style="color: #339933;">,</span> num_output<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></pre></div><br />
<br />
Every function working with the neural net thereafter refers to "ann."<br />
<br />
How can I design the plugin so that I can create multiple ANN structs and pass the references back and forth between AutoIt and the plugin dll?<br />
<br />
Is there a way to create and reference a struct using a string as its variable name, either in c or in AutoIt?<br />
<br />
Something along the lines of:<br />
<br />
<div class='geshitop'>&#91; code='c' &#93; &nbsp; &nbsp;( <a href='#' onclick='javascript:geshiPopup(this); return false;'>Popup</a> )</div><div class='geshimain'><pre><div class="c" style="font-family:monospace;">
<span style="color: #993333;">char</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #339933;">*</span>szStructName<span style="color: #339933;">;</span>
szStructName <span style="color: #339933;">=</span> AU3_GetString<span style="color: #009900;">&#40;</span><span style="color: #339933;">&</span>p_AU3_Params<span style="color: #009900;">&#91;</span>0<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>

temp <span style="color: #339933;">=</span> fann_create_standard<span style="color: #009900;">&#40;</span>num_layers<span style="color: #339933;">,</span> num_input<span style="color: #339933;">,</span> num_neurons_hidden<span style="color: #339933;">,</span> num_output<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>

<span style="color: #808080; font-style: italic;">/*some awesome function that creates a new, unique struct identified by the value of szStructName */</span>
StringToStruct<span style="color: #009900;">&#40;</span>szStructName <span style="color: #339933;">,</span> temp<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
fann_destroy<span style="color: #009900;">&#40;</span>temp<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>

&nbsp;</div></pre></div><br />
<br />
Or dynamically setting <br />
<div class='geshitop'>&#91; code='c' &#93; &nbsp; &nbsp;( <a href='#' onclick='javascript:geshiPopup(this); return false;'>Popup</a> )</div><div class='geshimain'><pre><div class="c" style="font-family:monospace;"><span style="color: #993333;">struct</span> fann <span style="color: #339933;">*</span>ann<span style="color: #339933;">;</span></div></pre></div><br />
to <br />
<div class='geshitop'>&#91; code='c' &#93; &nbsp; &nbsp;( <a href='#' onclick='javascript:geshiPopup(this); return false;'>Popup</a> )</div><div class='geshimain'><pre><div class="c" style="font-family:monospace;"><span style="color: #993333;">struct</span> fann <span style="color: #339933;">*</span>szStructName<span style="color: #339933;">;</span></div></pre></div><br />
<br />
I've considered that multiple neural nets could be used by a coprocessing setup or other multi-script design, and if this gets to be too involved I'll probably just implement the single net. However, I'd like to make it easy on the AutoIt side, so... can I do some sort of String to Struct, or should I use an array, or should I use c++?<br />
<br />
I'm kinda lost and was wondering if someone could point me in the right direction.]]></description>
		<pubDate>Fri, 09 Oct 2009 01:21:52 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=103677</guid>
	</item>
	<item>
		<title>Is there anything wrong with using gcc/mingw for plugins?</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=103547</link>
		<description><![CDATA[I wanted to learn how to use gcc/mingw on my system and successfully built the plug-in sdk example. I was wondering if there was anything wrong with using mingw for plug-ins, such as there being some sort of system incompatibility, etc.<br />
<br />
For those interested, install mingw, use the following to set your path (adapt if directory is different)<br />
set Path=c:&#092;MinGw&#092;bin;%Path%<br />
put the example.c in the au3_plugin_sdk directory, then use the following commands to build the dll in the same directory:<br />
<div class='geshitop'>&#91; code='text' &#93; &nbsp; &nbsp;( <a href='#' onclick='javascript:geshiPopup(this); return false;'>Popup</a> )</div><div class='geshimain'><pre><div class="text" style="font-family:monospace;">
gcc -c -DBUILD_DLL au3plugin.c
gcc -c -DBUILD_DLL example.c
gcc -Wall -shared -o example.dll example.o au3plugin.o
&nbsp;</div></pre></div><br />
<br />
I've read that mingw uses its own windows header, but I have no idea if that means conflict with AutoIt or if that fact is relatively meaningless in this context.<br />
<br />
Also, is there anything wrong with the way I built the plugin dll?]]></description>
		<pubDate>Wed, 07 Oct 2009 07:36:03 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=103547</guid>
	</item>
	<item>
		<title>Possible bug but wanted to confirm before reporting</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=103507</link>
		<description><![CDATA[Below is example 2 from _GUICtrlStatusBar_SetText in Help File.<br />
<br />
<div class='geshitop'>&#91; autoIt &#93; &nbsp; &nbsp;( <a href='javascript:;' onclick='javascript:geshiExpand(this)'>Expand</a><a href='javascript:;' onclick='javascript:geshiCollapse(this)' style='display: none'>Collapse</a> - <a href='#' onclick='javascript:geshiPopup(this); return false;'>Popup</a> )</div><div class='geshimainboxed'><pre><div class="autoit" style="font-family:monospace;">
<span class="kw5">#include</span> <span class="sy0">&lt;</span>GuiConstantsEx<span class="sy0">.</span><span class="me1">au3</span><span class="sy0">&gt;</span>
<span class="kw5">#include</span> <span class="sy0">&lt;</span>GuiStatusBar<span class="sy0">.</span><span class="me1">au3</span><span class="sy0">&gt;</span>
<span class="kw5">#include</span> <span class="sy0">&lt;</span>WinAPI<span class="sy0">.</span><span class="me1">au3</span><span class="sy0">&gt;</span>
<span class="kw5">#include</span> <span class="sy0">&lt;</span>WindowsConstants<span class="sy0">.</span><span class="me1">au3</span><span class="sy0">&gt;</span>

<a href="http://www.autoitscript.com/autoit3/docs/functions/Opt.htm"><span class="kw3">Opt</span></a><span class="br0">&#40;</span><span class="st0">'MustDeclareVars'</span><span class="sy0">,</span> 1<span class="br0">&#41;</span>

<span class="re0">$Debug_SB</span> <span class="sy0">=</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">False</span></a> <span class="co0">; Check ClassName being passed to functions, set to True and use a handle to another control to see it work</span>

<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Global</span></a> <span class="re0">$iMemo</span>

Example2<span class="br0">&#40;</span><span class="br0">&#41;</span>

<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Func</span></a> Example2<span class="br0">&#40;</span><span class="br0">&#41;</span>

&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Local</span></a> <span class="re0">$hGUI</span><span class="sy0">,</span> <span class="re0">$hStatus</span>
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Local</span></a> <span class="re0">$aParts</span><span class="br0">&#91;</span><span class="nu0">4</span><span class="br0">&#93;</span> <span class="sy0">=</span> <span class="br0">&#91;</span><span class="nu0">75</span><span class="sy0">,</span> <span class="nu0">150</span><span class="sy0">,</span> <span class="nu0">300</span><span class="sy0">,</span> <span class="nu0">400</span><span class="br0">&#93;</span>

&nbsp; &nbsp; <span class="co0">; Create GUI</span>
&nbsp; &nbsp; <span class="re0">$hGUI</span> <span class="sy0">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/GUICreate.htm"><span class="kw3">GUICreate</span></a><span class="br0">&#40;</span><span class="st0">"(Example 2) StatusBar Set Icon"</span><span class="sy0">,</span> 400<span class="sy0">,</span> 300<span class="br0">&#41;</span>
&nbsp; &nbsp; <span class="re0">$hStatus</span> <span class="sy0">=</span> <span class="kw4">_GUICtrlStatusBar_Create</span> <span class="br0">&#40;</span><span class="re0">$hGUI</span><span class="br0">&#41;</span>

&nbsp; &nbsp; <span class="co0">; Create memo control</span>
&nbsp; &nbsp; <span class="re0">$iMemo</span> <span class="sy0">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/GUICtrlCreateEdit.htm"><span class="kw3">GUICtrlCreateEdit</span></a><span class="br0">&#40;</span><span class="st0">""</span><span class="sy0">,</span> 2<span class="sy0">,</span> 2<span class="sy0">,</span> 396<span class="sy0">,</span> 274<span class="sy0">,</span> <span class="re0">$WS_VSCROLL</span><span class="br0">&#41;</span>
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/GUICtrlSetFont.htm"><span class="kw3">GUICtrlSetFont</span></a><span class="br0">&#40;</span><span class="re0">$iMemo</span><span class="sy0">,</span> <span class="nu0">9</span><span class="sy0">,</span> <span class="nu0">400</span><span class="sy0">,</span> <span class="nu0">0</span><span class="sy0">,</span> <span class="st0">"Courier New"</span><span class="br0">&#41;</span>
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/GUISetState.htm"><span class="kw3">GUISetState</span></a><span class="br0">&#40;</span><span class="br0">&#41;</span>

&nbsp; &nbsp; <span class="co0">; Set parts</span>
&nbsp; &nbsp; <span class="kw4">_GUICtrlStatusBar_SetParts</span> <span class="br0">&#40;</span><span class="re0">$hStatus</span><span class="sy0">,</span> <span class="re0">$aParts</span><span class="br0">&#41;</span>
&nbsp; &nbsp; <span class="kw4">_GUICtrlStatusBar_SetText</span> <span class="br0">&#40;</span><span class="re0">$hStatus</span><span class="sy0">,</span> <span class="st0">"Part 1"</span><span class="br0">&#41;</span>
&nbsp; &nbsp; <span class="kw4">_GUICtrlStatusBar_SetText</span> <span class="br0">&#40;</span><span class="re0">$hStatus</span><span class="sy0">,</span> <span class="st0">"Part 2"</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">&#41;</span>

&nbsp; &nbsp; <span class="co0">; Set icons</span>
&nbsp; &nbsp; <span class="kw4">_GUICtrlStatusBar_SetIcon</span> <span class="br0">&#40;</span><span class="re0">$hStatus</span><span class="sy0">,</span> <span class="nu0">0</span><span class="sy0">,</span> <span class="nu0">23</span><span class="sy0">,</span> <span class="st0">"shell32.dll"</span><span class="br0">&#41;</span>
&nbsp; &nbsp; <span class="kw4">_GUICtrlStatusBar_SetIcon</span> <span class="br0">&#40;</span><span class="re0">$hStatus</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">40</span><span class="sy0">,</span> <span class="st0">"shell32.dll"</span><span class="br0">&#41;</span>

&nbsp; &nbsp; <span class="co0">; Show icon handles</span>
&nbsp; &nbsp; MemoWrite<span class="br0">&#40;</span><span class="st0">"Part 1 icon handle .: 0x"</span> <span class="sy0">&</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/Hex.htm"><span class="kw3">Hex</span></a><span class="br0">&#40;</span><span class="kw4">_GUICtrlStatusBar_GetIcon</span> <span class="br0">&#40;</span><span class="re0">$hStatus</span><span class="sy0">,</span> <span class="nu0">0</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#41;</span>
&nbsp; &nbsp; MemoWrite<span class="br0">&#40;</span><span class="st0">"Part 2 icon handle .: 0x"</span> <span class="sy0">&</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/Hex.htm"><span class="kw3">Hex</span></a><span class="br0">&#40;</span><span class="kw4">_GUICtrlStatusBar_GetIcon</span> <span class="br0">&#40;</span><span class="re0">$hStatus</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#41;</span>


&nbsp; &nbsp; <span class="co0">; Loop until user exits</span>
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Do</span></a>
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Until</span></a> <a href="http://www.autoitscript.com/autoit3/docs/functions/GUIGetMsg.htm"><span class="kw3">GUIGetMsg</span></a><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="sy0">=</span> <span class="re0">$GUI_EVENT_CLOSE</span>
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/GUIDelete.htm"><span class="kw3">GUIDelete</span></a><span class="br0">&#40;</span><span class="br0">&#41;</span>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">EndFunc</span></a> &nbsp; <span class="co0">;==&gt;Example2</span>

<span class="co0">; Write message to memo</span>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Func</span></a> MemoWrite<span class="br0">&#40;</span><span class="re0">$sMessage</span> <span class="sy0">=</span> <span class="st0">""</span><span class="br0">&#41;</span>
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/GUICtrlSetData.htm"><span class="kw3">GUICtrlSetData</span></a><span class="br0">&#40;</span><span class="re0">$iMemo</span><span class="sy0">,</span> <span class="re0">$sMessage</span> <span class="sy0">&</span> <a href="http://www.autoitscript.com/autoit3/docs/macros.htm"><span class="kw2"><span class="re0">@CRLF</span></span></a><span class="sy0">,</span> 1<span class="br0">&#41;</span>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">EndFunc</span></a> &nbsp; <span class="co0">;==&gt;MemoWrite</span>

&nbsp;</div></pre></div><br />
<br />
This works fine. Now if you change the order of _GUICtrlStatusBar_SetIcon  and  _GUICtrlStatusBar_SetText icons are not shown. <br />
<div class='geshitop'>&#91; autoIt &#93; &nbsp; &nbsp;( <a href='#' onclick='javascript:geshiPopup(this); return false;'>Popup</a> )</div><div class='geshimain'><pre><div class="autoit" style="font-family:monospace;">
&nbsp; &nbsp; <span class="kw4">_GUICtrlStatusBar_SetIcon</span> <span class="br0">&#40;</span><span class="re0">$hStatus</span><span class="sy0">,</span> <span class="nu0">0</span><span class="sy0">,</span> <span class="nu0">23</span><span class="sy0">,</span> <span class="st0">"shell32.dll"</span><span class="br0">&#41;</span>
&nbsp; &nbsp; <span class="kw4">_GUICtrlStatusBar_SetIcon</span> <span class="br0">&#40;</span><span class="re0">$hStatus</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">40</span><span class="sy0">,</span> <span class="st0">"shell32.dll"</span><span class="br0">&#41;</span>
&nbsp; &nbsp; <span class="kw4">_GUICtrlStatusBar_SetText</span> <span class="br0">&#40;</span><span class="re0">$hStatus</span><span class="sy0">,</span> <span class="st0">"Part 1"</span><span class="br0">&#41;</span>
&nbsp; &nbsp; <span class="kw4">_GUICtrlStatusBar_SetText</span> <span class="br0">&#40;</span><span class="re0">$hStatus</span><span class="sy0">,</span> <span class="st0">"Part 2"</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">&#41;</span>
&nbsp;</div></pre></div><br />
Is it a bug that text clears icons and that Icons always have to be added last or is it a feature and it's the way it should be that Text always goes before Icon. I spent some time working out why it wouldn't work when i mixed up ordering of those 2 functions. Maybe this could/should be mentioned in the helpfile so ppl like me wouldn't spend too much time on such things <img src='http://www.autoitscript.com/forum/public/style_emoticons/autoit/smile.gif' class='bbc_emoticon' alt=':)' /><br />
<br />
Thanks,<br />
MadBoy<br />
<br />
Edit: <br />
Fixed typo]]></description>
		<pubDate>Tue, 06 Oct 2009 15:27:55 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=103507</guid>
	</item>
	<item>
		<title>We have translate the helfile into german</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=103172</link>
		<description><![CDATA[Hi,<br />
we have translate the helfile into german.<br />
	<br />
What person is responsible for this <a href='http://www.autoitscript.com/autoit3/docs.shtml' class='bbc_url' title='External link' rel='external'>site</a>?<br />
Please renew the page, and adds this <a href='http://translation.autoit.de/autoitinfo/hilfedateien/AutoIt-Hilfe-Deutsch-3.3.0.0-Stand-16_09_09.zip' class='bbc_url' title='External link' rel='external'>helpfile</a>.<br />
<br />
Thanks]]></description>
		<pubDate>Tue, 29 Sep 2009 15:56:22 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=103172</guid>
	</item>
	<item>
		<title>Vista animated progress bar is slow</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=102890</link>
		<description><![CDATA[Today while working on something I found that the Vista animated progress bar is rather slow to update. I had my window close as soon as the actual progress was 100% finished, but the bar itself was only about 80% filled. I ran a couple tests and found it at least 600 milliseconds behind which created a clearly visible lag.<br />
<br />
Does anyone know a solution to this?]]></description>
		<pubDate>Wed, 23 Sep 2009 18:56:02 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=102890</guid>
	</item>
	<item>
		<title>Tip for C++ code enthusiasts</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=102789</link>
		<description><![CDATA[I'm currently digging myself slowly through the foobar2000 plugin SDK and I have to say they have taken this whole C++ way of thinking with templates pointers, abstract pointers, exceptions that is being thrown everywhere and god knows what to the edge.<br />
<br />
If you have some time over take some time and look at this truly wonder of code. I can't even figure out what templates to use for what.<br />
<br />
<a href='http://www.foobar2000.org/files/53b657e9334f2f6f154e6227158812c9/SDK-2008-11-29.zip' class='bbc_url' title='External link' rel='external'>http://www.foobar2000.org/files/53b657e9334f2f6f154e6227158812c9/SDK-2008-11-29.zip</a>]]></description>
		<pubDate>Mon, 21 Sep 2009 23:34:14 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=102789</guid>
	</item>
	<item>
		<title>Lines of code.</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=102593</link>
		<description><![CDATA[Decided to find a tool to count how big AutoIt is.  I found <a href='http://cloc.sourceforge.net' class='bbc_url' title='External link' rel='external'>this</a>.  Here are the results:<br />
<div class='geshitop'>&#91; code='text' &#93; &nbsp; &nbsp;( <a href='javascript:;' onclick='javascript:geshiExpand(this)'>Expand</a><a href='javascript:;' onclick='javascript:geshiCollapse(this)' style='display: none'>Collapse</a> - <a href='#' onclick='javascript:geshiPopup(this); return false;'>Popup</a> )</div><div class='geshimainboxed'><pre><div class="text" style="font-family:monospace;">
http://cloc.sourceforge.net v 1.08 &nbsp;T=391.0 s (20.0 files/s, 3209.4 lines/s)
-------------------------------------------------------------------------------
Language &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;files &nbsp; &nbsp; blank &nbsp; comment &nbsp; &nbsp; &nbsp;code &nbsp; &nbsp;scale &nbsp; 3rd gen. equiv
-------------------------------------------------------------------------------
HTML &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 7106 &nbsp; &nbsp; 70907 &nbsp; &nbsp; &nbsp; 321 &nbsp; &nbsp;670272 x &nbsp; 1.90 = &nbsp; &nbsp; 1273516.80
C++ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 267 &nbsp; &nbsp; 29483 &nbsp; &nbsp; 28317 &nbsp; &nbsp;139905 x &nbsp; 1.51 = &nbsp; &nbsp; &nbsp;211256.55
C &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;99 &nbsp; &nbsp; 20149 &nbsp; &nbsp; 49232 &nbsp; &nbsp;135253 x &nbsp; 0.77 = &nbsp; &nbsp; &nbsp;104144.81
C/C++ Header &nbsp; &nbsp; &nbsp; &nbsp;258 &nbsp; &nbsp; &nbsp;7201 &nbsp; &nbsp; 11790 &nbsp; &nbsp; 29932 x &nbsp; 1.00 = &nbsp; &nbsp; &nbsp; 29932.00
Bourne Shell &nbsp; &nbsp; &nbsp; &nbsp; 11 &nbsp; &nbsp; &nbsp;3850 &nbsp; &nbsp; &nbsp;4793 &nbsp; &nbsp; 28949 x &nbsp; 3.81 = &nbsp; &nbsp; &nbsp;110295.69
m4 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2 &nbsp; &nbsp; &nbsp; 863 &nbsp; &nbsp; &nbsp; &nbsp;43 &nbsp; &nbsp; &nbsp;7321 x &nbsp; 1.00 = &nbsp; &nbsp; &nbsp; &nbsp;7321.00
Assembly &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 20 &nbsp; &nbsp; &nbsp;1166 &nbsp; &nbsp; &nbsp;1965 &nbsp; &nbsp; &nbsp;3443 x &nbsp; 0.25 = &nbsp; &nbsp; &nbsp; &nbsp; 860.75
Teamcenter def &nbsp; &nbsp; &nbsp; &nbsp;6 &nbsp; &nbsp; &nbsp; &nbsp; 2 &nbsp; &nbsp; &nbsp; &nbsp; 0 &nbsp; &nbsp; &nbsp;1861 x &nbsp; 1.00 = &nbsp; &nbsp; &nbsp; &nbsp;1861.00
yacc &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp; 156 &nbsp; &nbsp; &nbsp; &nbsp;17 &nbsp; &nbsp; &nbsp;1039 x &nbsp; 1.51 = &nbsp; &nbsp; &nbsp; &nbsp;1568.89
Tcl/Tk &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp; &nbsp;19 &nbsp; &nbsp; &nbsp; &nbsp; 2 &nbsp; &nbsp; &nbsp; 920 x &nbsp; 4.00 = &nbsp; &nbsp; &nbsp; &nbsp;3680.00
CSS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 8 &nbsp; &nbsp; &nbsp; 144 &nbsp; &nbsp; &nbsp; &nbsp;72 &nbsp; &nbsp; &nbsp; 815 x &nbsp; 1.00 = &nbsp; &nbsp; &nbsp; &nbsp; 815.00
make &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;5 &nbsp; &nbsp; &nbsp; 159 &nbsp; &nbsp; &nbsp; 114 &nbsp; &nbsp; &nbsp; 773 x &nbsp; 2.50 = &nbsp; &nbsp; &nbsp; &nbsp;1932.50
Python &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;7 &nbsp; &nbsp; &nbsp; 103 &nbsp; &nbsp; &nbsp; 237 &nbsp; &nbsp; &nbsp; 631 x &nbsp; 4.20 = &nbsp; &nbsp; &nbsp; &nbsp;2650.20
Pascal &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp; &nbsp;76 &nbsp; &nbsp; &nbsp; 127 &nbsp; &nbsp; &nbsp; 617 x &nbsp; 0.88 = &nbsp; &nbsp; &nbsp; &nbsp; 542.96
Perl &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;4 &nbsp; &nbsp; &nbsp; 116 &nbsp; &nbsp; &nbsp; &nbsp;93 &nbsp; &nbsp; &nbsp; 426 x &nbsp; 4.00 = &nbsp; &nbsp; &nbsp; &nbsp;1704.00
lex &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1 &nbsp; &nbsp; &nbsp; &nbsp;50 &nbsp; &nbsp; &nbsp; &nbsp; 7 &nbsp; &nbsp; &nbsp; 345 x &nbsp; 1.00 = &nbsp; &nbsp; &nbsp; &nbsp; 345.00
DOS Batch &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;10 &nbsp; &nbsp; &nbsp; &nbsp;46 &nbsp; &nbsp; &nbsp; &nbsp;39 &nbsp; &nbsp; &nbsp; 183 x &nbsp; 0.63 = &nbsp; &nbsp; &nbsp; &nbsp; 115.29
IDL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1 &nbsp; &nbsp; &nbsp; &nbsp; 5 &nbsp; &nbsp; &nbsp; &nbsp; 0 &nbsp; &nbsp; &nbsp; 159 x &nbsp; 3.80 = &nbsp; &nbsp; &nbsp; &nbsp; 604.20
Visual Basic &nbsp; &nbsp; &nbsp; &nbsp; 18 &nbsp; &nbsp; &nbsp; &nbsp;70 &nbsp; &nbsp; &nbsp; &nbsp;76 &nbsp; &nbsp; &nbsp; 118 x &nbsp; 2.76 = &nbsp; &nbsp; &nbsp; &nbsp; 325.68
Javascript &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp; &nbsp;20 &nbsp; &nbsp; &nbsp; &nbsp; 4 &nbsp; &nbsp; &nbsp; &nbsp;92 x &nbsp; 1.48 = &nbsp; &nbsp; &nbsp; &nbsp; 136.16
-------------------------------------------------------------------------------
SUM: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 7827 &nbsp; &nbsp;134585 &nbsp; &nbsp; 97249 &nbsp; 1023054 x &nbsp; 1.71 = &nbsp; &nbsp; 1753608.48
-------------------------------------------------------------------------------
&nbsp;</div></pre></div><br />
A bit of qualification: Most of the HTML is auto-generated.  I think the C code is PCRE and SQLite.  Some of the C++ code is SciTE/Scintilla.  A couple things I can't account for unless they are files in 3rd-party source trees.  Also keep in mind this tool does not count AutoIt lines.  I actually wish it did because that would be a huge number with all the libraries, examples, test, build scripts, et cetera.]]></description>
		<pubDate>Fri, 18 Sep 2009 01:29:58 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=102593</guid>
	</item>
	<item>
		<title>Help with some C# Code</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=102387</link>
		<description><![CDATA[Not sure if this belongs here, if this isn't the case feel free to tell me what forum it should be in and/or move it. Ty <img src='http://www.autoitscript.com/forum/public/style_emoticons/autoit/smile.gif' class='bbc_emoticon' alt=':)' /><br />
<br />
So I thought I'd try learn another language other than AutoIt. Which was the first programming language I really learned.<br />
I'm trying to learn C# and atm I'm just trying to call a method which looks for a removable drive, when found returns the<br />
name and holds it in the iDrive variable.<br />
<br />
The errors I get are:<br />
<br />
Error 1 An object reference is required for the non-static field, method, or property 'PenDriveBackup.Program.iDrive'<br />
<br />
Error 2 An object reference is required for the non-static field, method, or property 'PenDriveBackup.Program.GetDriveList()'<br />
<br />
Error 3 'PenDriveBackup.Program.GetDriveList()': not all code paths return a value.<br />
<br />
And the code is:<br />
<div class='geshitop'>&#91; code='text' &#93; &nbsp; &nbsp;( <a href='javascript:;' onclick='javascript:geshiExpand(this)'>Expand</a><a href='javascript:;' onclick='javascript:geshiCollapse(this)' style='display: none'>Collapse</a> - <a href='#' onclick='javascript:geshiPopup(this); return false;'>Popup</a> )</div><div class='geshimainboxed'><pre><div class="text" style="font-family:monospace;">using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PenDriveBackup
{
&nbsp; &nbsp; class Program
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; public string&#91;&#93; iDrive;

&nbsp; &nbsp; &nbsp; &nbsp; public static void Main(string&#91;&#93; args)
&nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; iDrive = GetDriveList();
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //System.Threading.Thread.Sleep(5000);
&nbsp; &nbsp; &nbsp; &nbsp; }

&nbsp; &nbsp; &nbsp; &nbsp; public string GetDriveList()
&nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DriveInfo&#91;&#93; aDrives = DriveInfo.GetDrives();
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; foreach (DriveInfo d in aDrives)
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (d.DriveType == DriveType.Removable) 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return Convert.ToString(d.Name);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; }
}</div></pre></div><br />
<br />
Thanks in advance, AwAke.]]></description>
		<pubDate>Tue, 15 Sep 2009 17:41:47 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=102387</guid>
	</item>
</channel>
</rss>