<?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>Sun, 15 Aug 2010 20:32:25 +0000</pubDate>
	<ttl>15</ttl>
	<item>
		<title>MS Dictionary Object</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=118541</link>
		<description><![CDATA[Hiho Forum,<br />
<br />
does anyone know, if the Dictionary Object is available on any OS from XP on upwards? I've tested on XP Professional and Win7 Ultimate, but how about Win7 Home etc.?<br />
<br />
Couldn't find any infos about that <a href='http://msdn.microsoft.com/en-us/library/x4k5wbx4%28VS.85%29.aspx' class='bbc_url' title='External link' rel='external'>on MSDN</a> and want to know if it's safe to use.<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">$oDict</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">'Scripting.Dictionary'</span><span class="br0">&#41;</span>
<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">$oDict</span><span class="br0">&#41;</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Then</span></a>
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/MsgBox.htm"><span class="kw3">MsgBox</span></a><span class="br0">&#40;</span><span class="nu0">16</span> <span class="sy0">+</span> <span class="nu0">262144</span><span class="sy0">,</span> <span class="st0">"Error!"</span><span class="sy0">,</span> <span class="st0">"Creating Scripting.Dictionary object failed."</span><span class="br0">&#41;</span>
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Exit</span></a>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">EndIf</span></a>
&nbsp;</div></pre></div>]]></description>
		<pubDate>Sun, 15 Aug 2010 20:32:25 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=118541</guid>
	</item>
	<item>
		<title>iPad</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=118522</link>
		<description><![CDATA[I was asked and have just finished reviewing the suitability of an iPad for Students [Australian education system year 7 '13 years old' throught to year 12 '18 years old' ] compared with the current arrangements which support Notebooks and Desktop Computers. It is not my intention to publish my findings and/or views. The college reviewed currently supports students with desktop computers and teachers with Notebooks with a mixture of IBM and Apple operating systems. Included in the mix are Windows legacy systems that had to be supported as well as the introduction of a new Ultranet that will support interaction between Teachers, Parents and Students. I would be happy to field any questions and share my findings in relation to the efficacy of the iPad in this type of environment.]]></description>
		<pubDate>Sun, 15 Aug 2010 07:10:40 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=118522</guid>
	</item>
	<item>
		<title>Planning a UDF for OpenCv</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=118519</link>
		<description><![CDATA[<span style='font-size: 13px;'><span style='font-family: Arial'><div class='bbc_left'>First of all, i wanna say hi to all <img src='http://www.autoitscript.com/forum/public/style_emoticons/autoit/smile.gif' class='bbc_emoticon' alt=':)' /> glad that I'm a member of autoit community and this is my first time to post for new topic, okay, now im gonna start the topic. I think a lot of you here knows "Opencv", if not, OpenCV (Open Source Computer Vision) is a library of programming functions for real time computer vision, Here's the <a href='http://opencv.willowgarage.com/documentation/index.html' class='bbc_url' title='External link' rel='external'><span style='font-family: Arial Black'> OpenCv Documentation</span></a> or you can download free the installation and samples <a href='http://sourceforge.net/projects/opencvlibrary/files/' class='bbc_url' title='External link' rel='external'><span style='font-family: Arial Black'>Here</span></a> <br />
<br />
    Okay, so what im trying to do for now is to make OpenCv UDF supported with this<a href='http://opencv.willowgarage.com/documentation/index.html' class='bbc_url' title='External link' rel='external'><span style='font-family: Arial Black'>References and Documents</span></a> by calling Opencv dlls(cxcore.dll,cv.dll,highgui.dll) using autoit dllcall function. BTW i tried searching it in the forum but no success, i guess if i'm not wrong, this is the first topic about opencv. If any one interested, feel free to help  <img src='http://www.autoitscript.com/forum/public/style_emoticons/autoit/smile.gif' class='bbc_emoticon' alt=':)' />. i know its possible in autoit.</div></span></span>]]></description>
		<pubDate>Sun, 15 Aug 2010 05:56:16 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=118519</guid>
	</item>
	<item>
		<title>merging help files</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=118336</link>
		<description><![CDATA[Hello,<br />
  hope developer chat is the right place to ask this:<br />
<br />
I am working on a help file for/from an UDF (<a href='http://www.autoitscript.com/forum/index.php?showtopic=113881' class='bbc_url' title='External link' rel='external'>au3Irrlicht2</a>). Found good infos for this in the forum, so I have nearly finished the technical part to include a stand-alone .chm into next release of this UDF.<br />
  But I was wondering about the "autoItHelp.exe" in au3 installation dir - seems to merge both standard .chm's, so maybe a mechanism to add also a third "non-official" .chm(?).<br />
  Unfortunately I cannot find anything about this .exe in forum nor by googlin'. What is this exactly - a compiled .au3? Separate tool? <br />
<br />
Some info and/or link would be very nice + helpful.<br />
<br />
Thanks in advance!]]></description>
		<pubDate>Wed, 11 Aug 2010 09:32:15 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=118336</guid>
	</item>
	<item>
		<title>Debugged / enhanced UDF Files for Open Office</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=118280</link>
		<description><![CDATA[Hi Everyone,<br />
<br />
I recently started using AutoIt for some development project and I've found & enhanced the OOoCOM_UDF.au3 file to work in a way that is compatible with the standard excel library.<br />
<br />
modified entries include:<br />
_OOoCalc_SheetList<br />
_OOoCalc_SheetActivate<br />
_OOoCalc_ReadCell<br />
_OOoCalc_WriteCell<br />
UsedRange<br />
<br />
The listed functions are now interchangeable between Microsoft Office (Excel) and Open Office (Calc).  I've also improved the working of these functions to call the "correct" API's.<br />
<br />
In my search I've found that the OpenOffice site: <a href='http://api.openoffice.org/' class='bbc_url' title='External link' rel='external'>http://api.openoffice.org/</a> was very useful.<br />
<br />
Please report back with your findings.<br />
<br />
All the best,<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=31428" title=""><img src="http://www.autoitscript.com/forum/public/style_extra/mime_types/au3.gif" alt="" /></a>
&nbsp;<a href="http://www.autoitscript.com/forum/index.php?app=core&module=attach&section=attach&attach_id=31428" title="">OOoCOM_UDF_v08.au3</a> <span class='desc'><strong>(18.13K)</strong></span>
<br /><span class="desc info">: 38</span>
			</li>
		
	</ul>
</div>]]></description>
		<pubDate>Tue, 10 Aug 2010 08:06:40 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=118280</guid>
	</item>
	<item>
		<title>Plugin SDK Problem with VC++ 2010 Express</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=118200</link>
		<description><![CDATA[I have just recently downloaded the AutoIt Plugin SDK, and have included the two files au3plugin.c and au3plugin.h in my VC++ 2010 Express project. I had expected it to compile, but it generated an error and it seemed that the  cause was my mingling of C and C++ code. There were some resolutions to this problem on the web, but I could not succeed with any of them. Is there some way that I can still use C++ to implement my plugins? C is not suitable for me, and its stricter rules I don't like too much. I just want to use the C plugin functions in my C++ code. Is that possible? Thanks.]]></description>
		<pubDate>Sun, 08 Aug 2010 05:03:44 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=118200</guid>
	</item>
	<item>
		<title>How is Autoit FileFindNextFile made?</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=118116</link>
		<description><![CDATA[Is it just FindNextFile? or something other?  I tried to list files with C++.<br />
<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;">hFind = FindFirstFile(token, &FindFileData);
do{
_tprintf (TEXT("File Found: %s&#092;n"),FindFileData.cFileName);
}while(FindNextFile(hFind, &FindFileData));
FindClose(hFind);</div></pre></div><br />
<br />
but it doesn't seem to work. With "C:&#092;users&#092;rain" it says what you can see below, but actually I have many files and folders in C:&#092;Users&#092;rain.<br />
<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;">C:&#092;Users&#092;rain&gt;D:&#092;Development&#092;Cplusplus&#092;del&#092;del2&#092;Debug&#092;del2.exe
C:&#092;users&#092;rain
File Found: rain

C:&#092;Users&#092;rain&gt;</div></pre></div><br />
<br />
Iam just wondering if there's any alternative methods.]]></description>
		<pubDate>Thu, 05 Aug 2010 21:26:03 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=118116</guid>
	</item>
	<item>
		<title>FSCTL_SET_SPARSE</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=117707</link>
		<description><![CDATA[How can I translate this code in AutoIt. I know that is an API _WinAPI_CreateFile() and DeviceIoControl can be called from kernel32.dll but I cannot find this constant or what it is FSCTL_SET_SPARSE. Any help is welcome.<br />
<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;">int _tmain(int argc, _TCHAR* argv&#91;&#93;)
{
HANDLE h = CreateFile("Test.txt", GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, 0, NULL);

DWORD dw;
DeviceIoControl(h, FSCTL_SET_SPARSE, NULL, 0, NULL, 0, &dw, NULL);

LONG lDist = 4095;
SetFilePointer(h, 0, &lDist, FILE_BEGIN);
SetEndOfFile(h);

CloseHandle(h);

return 0;
}
&nbsp;</div></pre></div>]]></description>
		<pubDate>Tue, 27 Jul 2010 11:00:26 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=117707</guid>
	</item>
	<item>
		<title>Web Browser from scratch..</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=117322</link>
		<description><![CDATA[We're planning to make a web browser (using AutoIt) as our thesis and we have several questions about it.<br />
<br />
I researched first the requirements on how to make one and i had these questions in mind. <br />
<br />
1. How long would it take to develop an HTML, JS, CSS parser? Assume we are 3 Computer Science students in group and we have about 2 months to make it.<br />
<br />
2. How long would it take to develop a rendering engine, or a layout engine just like trident(used by IE) or gecko(firefox)? Assume we are 3 Computer Science students in group and we have about 2 months to make it.<br />
<br />
The panel already approved the our project proposal defens, and the approved title was a Web Browser. They didn't ask about the rendering engine, and all stuff on how the browser will interpret the html codes and the like. All they'd asked is about the features like the plugins and addons, and how our browser will be better than the existing IE and firefox. <br />
<br />
They approved it in the first place not knowing that creating a web  browser from scratch is an amazing feat, its hardly ever done by student programmers and a simple tutorial wouldn't cut it. It takes a whole team of programmers and programming years to make a stable web browser from scratc.<br />
<br />
Inspite of these requirements, the group would still be able to develop a browser by using IE embed and calling IE's COM Objects (all done in AutoIT) which will make the job more simpler and accomplishable. xD]]></description>
		<pubDate>Sun, 18 Jul 2010 09:07:08 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=117322</guid>
	</item>
	<item>
		<title>(retracted)</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=116545</link>
		<description>(retracted)(can be deleted)</description>
		<pubDate>Thu, 01 Jul 2010 08:25:31 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=116545</guid>
	</item>
	<item>
		<title>C++ Help</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=116500</link>
		<description><![CDATA[I try to make a messagebox in c++, but it does not work!<br />
<div class='geshitop'>&#91; code='cpp' &#93; &nbsp; &nbsp;( <a href='#' onclick='javascript:geshiPopup(this); return false;'>Popup</a> )</div><div class='geshimain'><pre><div class="cpp" style="font-family:monospace;"><span style="color: #0000ff;">int</span> main<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
&nbsp; &nbsp; MessageBox<span style="color: #008000;">&#40;</span><span style="color: #0000ff;">NULL</span>, <span style="color: #FF0000;">"hello"</span>, <span style="color: #FF0000;">"this is a test"</span>, MB_OK<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
<span style="color: #008000;">&#125;</span></div></pre></div><br />
And where can i find this libraries?<br />
<div class='geshitop'>&#91; code='cpp' &#93; &nbsp; &nbsp;( <a href='#' onclick='javascript:geshiPopup(this); return false;'>Popup</a> )</div><div class='geshimain'><pre><div class="cpp" style="font-family:monospace;"><span style="color: #339900;">#include &lt;iostream&gt;</span>
<span style="color: #339900;">#include &lt;windows.h&gt;</span>
&nbsp;</div></pre></div>can someone help me to make a good script and learn c++?<br />
<br />
Tanks!]]></description>
		<pubDate>Wed, 30 Jun 2010 09:38:31 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=116500</guid>
	</item>
	<item>
		<title>Need advice on databases from those who work with them.</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=115963</link>
		<description><![CDATA[Hello to all,<br />
<br />
I have had a request from an old customer who has been running DataEase 4.5 (The MS DOS version) for over 20 years now.<br />
<br />
The program was modified before my contact was employed there so that she does not know what the modifications entailed, but the upshot is that the database will not import into any subsequent versions of DataEase and we have not been able to find anyone who can determine how to upgrade, plus it seems like the Windows ver. of DE (And the later DOS versions are unstable) is not working as it should and I have seen other customers (on different DE forums) calling for earlier stable versions of DE to be made available.<br />
<br />
The ver. she has works very well and does what it says on the tin as it were, but over the years it has thrown errors and I was called to rectify it, Now I must state that I know very little about DE but from toying with it I got it to ReOrganise all its data and that always sorted out the problem, So as far as DE 4.5 goes I regard it as very stable and recovers well from errors, as it has only happened a handful of times over the lasst 15 years that I have been involved.<br />
<br />
It is now running in a DOS window on Win XP for a couple of years and has thrown disproportionately more of those errorrs during that time, my conclusion is that XP's DOS box supportis just slightly different enough to cause the errors, may be nothing to do with it but is just my suspicion.<br />
<br />
Anyway my concern is that when they come to upgrade to Win 7 etc it may cause more errors and or whatever is causing the errors will cause a catastrophic failure of the data.<br />
<br />
The person who is operating the DE app is also the only person who knows how to do so as DE's operation is archaic and non-obvious to Windows users, on top of that she is due for retirement so it is imperative that they get a modern-day replacement database that has the power and functionality of DE 4.5<br />
<br />
DataEase 4.5 is being used (for a charity) to:<br />
* keep track of church-gate collections throughout Ireland <br />
* Keep track of the collectors at those church gates<br />
* Track all schools and their collectors throughout Ireland<br />
* Track lodgements from those collectors<br />
* Track receipts for all monies collected<br />
* Lodgement receipts<br />
* Acknowledge pledges<br />
* Acknowledge donations<br />
* Produce Bank reports<br />
* Produce Reports to the collectors on their collections<br />
* Produce std letters to fundraisers etc.<br />
* Produce other associated reports<br />
* Produce the mailing labels for envelopes to various supporters and collectors<br />
* Acknowledgements<br />
* Reminders<br />
* There appears to be a couple hundred reports it produces (I have not asked the user how many and I have never needed to know as all I needed to do was get it back up and running again)<br />
* There are other functions that it does that I don't even know about as I am not a DE user.<br />
<br />
<br />
Sorry for being so long winded as I though that some background was necessary.<br />
<br />
Now my <strong class='bbc'>Q</strong> for those of you who are very familiar with databases is:<br />
<br />
Do you know of a modern database app that will do all of the above functions and is customisable and relatively easy to use?<br />
<br />
I researched (briefly) and found an app called Ffenics, it appears to be developed by ex developers of DataEase (may be wrong here tho.) and although it cannot import the existing data I was wondering if anyone knows if its similar and powerful enough?<br />
<br />
Any good suggestions are welcome though.<br />
<br />
Being a charity their resources are limited and I suspect that powerful data management software will not be cheap so the cost should be borne in mind when suggesting.<br />
<br />
I may be wrong, but a Quickbooks, Quicken, Access or Excel type db would not be a viable option.<br />
<br />
I perhaps need to clarify one other point, I am retired from the business rat race due to health problems for 10 years now and am only getting involved with this case as the company is a registered charity and they do good work and while I was in business they were a customer of mine.<br />
<br />
So If I can get to pick someones brains here and come up with a viable answer to their database problem it will be greatly appreciated both by them and myself.<br />
<br />
Thanks in advance.<br />
DeMo.]]></description>
		<pubDate>Thu, 17 Jun 2010 19:03:42 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=115963</guid>
	</item>
	<item>
		<title>Duplicating Data</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=115375</link>
		<description><![CDATA[I figured this was the best forum to post this topic.<br />
<br />
I have a 2D array of approx 10,000 elements. It contains about 8,800 unassigned elements. My concern is that testing all these unassigned elements during a repeated array search seems long winded and tedious. So why not create a smaller array with only 1,000 assigned elements and search that. <img src='http://www.autoitscript.com/forum/public/style_emoticons/autoit/unsure.gif' class='bbc_emoticon' alt=':unsure:' /> <br />
<span class='bbc_underline'><br />
Scaled down reproducer</span><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>Array<span class="sy0">.</span><span class="me1">au3</span><span class="sy0">&gt;</span>

<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Local</span></a> <span class="re0">$data</span><span class="br0">&#91;</span>14<span class="br0">&#93;</span> <span class="sy0">=</span> <span class="br0">&#91;</span>4<span class="sy0">,</span>5<span class="sy0">,</span>2<span class="sy0">,</span>3<span class="sy0">,</span>0<span class="sy0">,</span>1<span class="sy0">,</span>7<span class="sy0">,</span>6<span class="sy0">,</span>9<span class="sy0">,</span>8<span class="sy0">,</span>12<span class="sy0">,</span>11<span class="sy0">,</span>10<span class="sy0">,</span>13<span class="br0">&#93;</span>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Local</span></a> $2D_array<span class="br0">&#91;</span><span class="nu0">8</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="nu0">7</span><span class="br0">&#93;</span> <span class="co0">; This array is needed for another process.</span>

<span class="co0">; The 1st column is a key which determines the number of entries in each row.</span>
<span class="co0">; Numbers in this 1st column are excluded from the search results.</span>
$2D_array<span class="br0">&#91;</span><span class="nu0">2</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="nu0">0</span><span class="br0">&#93;</span> <span class="sy0">=</span> <span class="nu0">1</span>
$2D_array<span class="br0">&#91;</span><span class="nu0">3</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="nu0">0</span><span class="br0">&#93;</span> <span class="sy0">=</span> <span class="nu0">1</span>
$2D_array<span class="br0">&#91;</span><span class="nu0">4</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="nu0">0</span><span class="br0">&#93;</span> <span class="sy0">=</span> <span class="nu0">6</span>
$2D_array<span class="br0">&#91;</span><span class="nu0">5</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="nu0">0</span><span class="br0">&#93;</span> <span class="sy0">=</span> <span class="nu0">2</span>
$2D_array<span class="br0">&#91;</span><span class="nu0">6</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="nu0">0</span><span class="br0">&#93;</span> <span class="sy0">=</span> <span class="nu0">3</span>
$2D_array<span class="br0">&#91;</span><span class="nu0">7</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="nu0">0</span><span class="br0">&#93;</span> <span class="sy0">=</span> <span class="nu0">1</span>

<span class="co0">; Populate the remaining columns of the 2D array.</span>
<span class="re0">$a</span> <span class="sy0">=</span> 0
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">For</span></a> <span class="re0">$i</span> <span class="sy0">=</span> 2 <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">To</span></a> 7
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">For</span></a> <span class="re0">$j</span> <span class="sy0">=</span> 1 <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">To</span></a> $2D_array<span class="br0">&#91;</span><span class="re0">$i</span><span class="br0">&#93;</span><span class="br0">&#91;</span>0<span class="br0">&#93;</span>
&nbsp; &nbsp; &nbsp; &nbsp; $2D_array<span class="br0">&#91;</span><span class="re0">$i</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="re0">$j</span><span class="br0">&#93;</span> <span class="sy0">=</span> <span class="re0">$data</span><span class="br0">&#91;</span><span class="re0">$a</span><span class="br0">&#93;</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$a</span> <span class="sy0">+=</span> 1
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Next</span></a>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Next</span></a>

<span class="co0">; NONE OF THE CODE ABOVE CAN NOT BE ALTERED.</span>

<span class="co0">; Breakng convention.</span>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Local</span></a> <span class="re0">$index_matching_array</span><span class="br0">&#91;</span><span class="nu0">14</span><span class="br0">&#93;</span> <span class="co0">; Array created to avoid testing many empty cells during the search (for sparce population in a large array).</span>
<span class="re0">$a</span> <span class="sy0">=</span> 0
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">For</span></a> <span class="re0">$i</span> <span class="sy0">=</span> 2 <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">To</span></a> 7
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">For</span></a> <span class="re0">$j</span> <span class="sy0">=</span> 1 <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">To</span></a> $2D_array<span class="br0">&#91;</span><span class="re0">$i</span><span class="br0">&#93;</span><span class="br0">&#91;</span>0<span class="br0">&#93;</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$index_matching_array</span><span class="br0">&#91;</span><span class="re0">$a</span><span class="br0">&#93;</span> <span class="sy0">=</span> <span class="re0">$i</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$a</span> <span class="sy0">+=</span> 1
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Next</span></a>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Next</span></a>

find<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> find<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">$x</span> <span class="sy0">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/Random.htm"><span class="kw3">Random</span></a><span class="br0">&#40;</span><span class="nu0">0</span><span class="sy0">,</span><span class="nu0">13</span><span class="sy0">,</span><span class="nu0">1</span><span class="br0">&#41;</span> <span class="co0">; Whatever element we want to find in the 2D array.</span>
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Local</span></a> <span class="re0">$data_index</span> <span class="sy0">=</span> <span class="kw4">_ArraySearch</span><span class="br0">&#40;</span><span class="re0">$data</span><span class="sy0">,</span> <span class="re0">$x</span><span class="sy0">,</span> <span class="nu0">0</span><span class="sy0">,</span> <span class="nu0">0</span><span class="sy0">,</span> <span class="nu0">0</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">&#41;</span> <span class="co0">; This search will be repeated thousands of times.</span>
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Local</span></a> <span class="re0">$return_value</span> <span class="sy0">=</span> <span class="re0">$index_matching_array</span><span class="br0">&#91;</span><span class="re0">$data_index</span><span class="br0">&#93;</span>
&nbsp; &nbsp; <span class="co0">; Display result =&gt;</span>
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/MsgBox.htm"><span class="kw3">MsgBox</span></a><span class="br0">&#40;</span><span class="nu0">0</span><span class="sy0">,</span> <span class="st0">"Index in 2D_array"</span><span class="sy0">,</span> <span class="re0">$x</span> <span class="sy0">&</span> <span class="st0">" was found at "</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> <span class="st0">"array index "</span> <span class="sy0">&</span> <span class="re0">$return_value</span><span class="br0">&#41;</span>
&nbsp; &nbsp; <span class="kw4">_ArrayDisplay</span><span class="br0">&#40;</span>$2D_array<span class="br0">&#41;</span>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">EndFunc</span></a></div></pre></div><br />
So now I am breaking convention by duplicating information. I know this topic has been discussed before, and that data duplication is considered bad practice. But is it always so bad? Maybe another dumb ass question. <img src='http://www.autoitscript.com/forum/public/style_emoticons/autoit/idiot.gif' class='bbc_emoticon' alt=':idiot:' />]]></description>
		<pubDate>Fri, 04 Jun 2010 15:56:13 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=115375</guid>
	</item>
	<item>
		<title>Autoit and the serious (comercial) project</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=115340</link>
		<description><![CDATA[Hi.<br />
<br />
I just want to ask if any of you guys do some serius projects with autoit? If yes, what are your experiences?<br />
And are you satisfied with autoit or would you prefer another programming language?<br />
<br />
I'm about to start some project, but I don't know what to choose ... autoit or C# ?<br />
<br />
<br />
<br />
Have a nice day  <img src='http://www.autoitscript.com/forum/public/style_emoticons/autoit/rolleyes.gif' class='bbc_emoticon' alt=':rolleyes:' />]]></description>
		<pubDate>Thu, 03 Jun 2010 21:24:57 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=115340</guid>
	</item>
	<item>
		<title>Error Handling by Microsoft</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=115184</link>
		<description><![CDATA[A bug in one of my scripts had somehow gone unchecked by me: simply because it was not causing any problems. I seem to remember having doubts about it at the time, and perhaps I had dismissed the possibilty of a divisor becoming zero during a particular operation which involved the Mod function. Amazingly, the script always seemed to work in any case. So apart from now making myself feel like a clown, I was surprised to receive a Microsoft bug report when I tried to run the script with the latest AutoIt interpreter. It didn't take me long to track the problem, and after running tests I discovered the following.<br />
<br />
<span class='bbc_underline'>AutoIt Version: 3.3.0.0</span><br />
Mod(1,0) =&gt; Returns -1.#IND<br />
<br />
<span class='bbc_underline'>AutoIt Version: 3.3.6.1</span><br />
Mod(1,0) =&gt; Send Error Report to Microsoft<br />
<br />
I couldn't find any reference to changes in error handling. It could be relevant to the Devs. Both tests were run on XP pro service pack 3. This is the first time I have encountered a Microsoft Bug Report while using AutoIt, otherwise I would not have mentioned it.]]></description>
		<pubDate>Mon, 31 May 2010 19:41:19 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=115184</guid>
	</item>
	<item>
		<title>Itanium 64-bit AutoIT version?</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=115031</link>
		<description><![CDATA[Just a simple question - is there any native 64-bit Itanium versions of AutoIT? I did some searches and didn't see anything that indicated there was a native Itanium version, so I'm assuming no.<br />
<br />
In that case, its safe to assume under Itanium architectures, AutoIT only runs a 32-bit version, correct. And if so, I assume there wouldn't be any plans to develop any native 64-bit Itanium versions either?<br />
<br />
I'm only curious because some 64-bit structures differ based on the chipset (thread Context structures, for example). Plus, there's a difference in 64-bit low-level programming (which I do on occasion - as crazy as I am).<br />
<br />
Thanks in advance!]]></description>
		<pubDate>Thu, 27 May 2010 21:56:29 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=115031</guid>
	</item>
	<item>
		<title>Forum: post edit field. (chrome!)</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=114841</link>
		<description><![CDATA[<span style='color: #C0C0C0'><span style='font-size: 17px;'>(empty message)</span></span>]]></description>
		<pubDate>Sun, 23 May 2010 20:41:33 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=114841</guid>
	</item>
	<item>
		<title>strange binarie  noob question  ....</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=114819</link>
		<description><![CDATA[why 0x00270FF6 != 2559990 ?<br />
<br />
unsigned hex      positive int32<br />
<br />
can someone explain me that please <br />
<br />
<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;">

if &nbsp;binary("0x00270FF6") = 2559990 then
&nbsp; &nbsp;msgbox(0, "True", "" )
else
&nbsp; &nbsp;msgbox(0, "False", "" )
endif


&nbsp;</div></pre></div>]]></description>
		<pubDate>Sun, 23 May 2010 05:29:13 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=114819</guid>
	</item>
	<item>
		<title><![CDATA[WHY IS AUTOIT'S SIZE IS BIG??]]></title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=114668</link>
		<description><![CDATA[<span style='font-family: Times New Roman'><span style='font-family: Georgia'>Why is the size of complied autoit script is large?? <br />
i know for a fact that autoit calls all functions that are not included like Msbox, sleep and more... it doesn't matter if you use the function or not, it is still called.<br />
<br />
</span></span>]]></description>
		<pubDate>Wed, 19 May 2010 23:18:02 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=114668</guid>
	</item>
	<item>
		<title>Tray Pause Notification</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=114532</link>
		<description><![CDATA[I was wondering if it would be possible for AutoIt tray notifications to be sent before the message is sent to the script? Sounds confusing, sorry.<br />
<br />
Basically, if we have the default pause/exit tray items in our script ($TRAY_ITEM_PAUSE and $TRAY_ITEM_EXIT), what if we want to send an event when the item is clicked, we're unable to do so because AutoIt automatically jumps to the expected state.<br />
<br />
The exit item is easy to solve with the use of OnAutoItExitRegister(), however there is no way to poll the pausing of the script.<br />
<br />
Discuss.]]></description>
		<pubDate>Mon, 17 May 2010 17:41:05 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=114532</guid>
	</item>
	<item>
		<title>Creating a simple dll to call from AutoIt</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=114422</link>
		<description><![CDATA[I've been searching over and over again but all in vain. I could not find an example (a complete and working one) for creating a dll in Visual c++ 2008 whose function can be directly called from AutoIt. Please, anyone, can you post a complete example dll? I'm just starting to create dlls in c++ and the 2008 is the Ide I'm using.]]></description>
		<pubDate>Fri, 14 May 2010 18:31:52 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=114422</guid>
	</item>
	<item>
		<title>OOP design question</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=114149</link>
		<description><![CDATA[First I'd like to say that I am not a c++ geek.<br />
<br />
HI!<br />
<br />
My question is this, if my program has two objects that use the same data then what should I do? <br />
<br />
Say object1 one uses $variable0 and object2 uses $variable0 also. Should I declare $variable0 as global? But wouldn't that defeat the purpose of OOP? Or should I pass that variable to each object? But wouldn't that violate the DRY principle? <br />
<br />
Hopelessly confused, <br />
<br />
Matt<br />
<br />
Hmmm, maybe that data should be public data so that any object can use it?<br />
<br />
 I've read that you should avoid getter and setter functions though.]]></description>
		<pubDate>Sat, 08 May 2010 16:44:48 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=114149</guid>
	</item>
	<item>
		<title><![CDATA[Determining the &#34;current&#34; GUI]]></title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=114144</link>
		<description><![CDATA[Hi all,<br />
<br />
<em class='bbc'>GUISwitch </em>returns the handle of the previously "<em class='bbc'>current</em>" window.  Is there any way of determining the "<em class='bbc'>current</em>" window without using <em class='bbc'>GUISwitch</em>?<br />
<br />
Why do I want to know?  In order to work, my <em class='bbc'>StringSize </em>UDF requires the creation, and then destruction, of a GUI within the function.  This has not posed a problem until yesterday when another member found that he needed to <em class='bbc'>GUISwitch </em>back to his GUI when calling the function <strong class='bbc'>AFTER </strong>an initial <em class='bbc'>GUICreate </em>command or the controls would not get created in that GUI (or any other).  <br />
<br />
Testing (see below) has shown that this is because in destroying its own GUI, the UDF also seems to empty the "<em class='bbc'>current</em>" GUI location - <em class='bbc'>GUISwitch </em>returns 0x00000000.  If you have only the one GUI in your script, AutoIt appears to adopt this by default when asked to create any new controls - the problem only came to light because the script in question had multiple GUIs, and AutoIt (quite reasonably) declined to choose between them when creating new controls.<br />
<br />
Now it is not onerous for the user to <em class='bbc'>GUISwitch </em>back in the specific circumstances of having multiple GUIs and using the UDF after having used <em class='bbc'>GUICreate</em>, but it would be preferable and neater to save the handle of the "<em class='bbc'>current</em>" GUI as the UDF starts so that it can <em class='bbc'>GUISwitch </em>back to this GUI as it ends.  However I cannot find a way to get this information other than as a return from <em class='bbc'>GUISwitch </em>- and within the UDF there is nothing available to <em class='bbc'>GUISwitch </em> to!  If I wait the UDF creates its own GUI, then that of course becomes the "<em class='bbc'>current</em>" one and the previous handle is lost.<br />
<br />
I could ask the user to pass a handle into the UDF, but that means yet another parameter to deal with a single specific set of circumstances.  My hope is that the value is not stored in an internal AutoIt register and so can be obtained via the API, but my Googling has so far come up blank.<br />
<br />
Any ideas - or suggestions of another way to deal with the problem?<br />
<br />
M23<br />
<br />
If you would like to see the behaviour described above, here is a short example script:<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="co0">; Create a GUI so that there are multiple GUIs in the script</span>
<span class="re0">$hGUI_2</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">"Test 2"</span><span class="sy0">,</span> <span class="nu0">200</span><span class="sy0">,</span> <span class="nu0">100</span><span class="sy0">,</span> <span class="nu0">10</span><span class="sy0">,</span> <span class="nu0">10</span><span class="br0">&#41;</span> <span class="co0">; &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;</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="st0">"GUI_2 = "</span> <span class="sy0">&</span> <span class="re0">$hGUI_2</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">; &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;</span>
<a href="http://www.autoitscript.com/autoit3/docs/functions/GUISetState.htm"><span class="kw3">GUISetState</span></a><span class="br0">&#40;</span><a href="http://www.autoitscript.com/autoit3/docs/macros.htm"><span class="kw2"><span class="re0">@SW_SHOW</span></span></a><span class="sy0">,</span> <span class="re0">$hGUI_2</span><span class="br0">&#41;</span> <span class="co0">; &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;</span>

<span class="co0">; Create the main GUI</span>
<span class="re0">$hGUI_1</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">"Test 1"</span><span class="sy0">,</span> 200<span class="sy0">,</span> 100<span class="sy0">,</span> 300<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="st0">"GUI_1 = "</span> <span class="sy0">&</span> <span class="re0">$hGUI_1</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">; Create first control</span>
<span class="re0">$hButton_1</span> <span class="sy0">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/GUICtrlCreateButton.htm"><span class="kw3">GUICtrlCreateButton</span></a><span class="br0">&#40;</span><span class="st0">"Test 1"</span><span class="sy0">,</span> <span class="nu0">10</span><span class="sy0">,</span> <span class="nu0">10</span><span class="sy0">,</span> <span class="nu0">80</span><span class="sy0">,</span> <span class="nu0">30</span><span class="br0">&#41;</span>

<span class="co0">; Simulate the StringSize UDF</span>
_Sim_StringSize<span class="br0">&#40;</span><span class="br0">&#41;</span>

<span class="co0">; Switch to the dummy GUI</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="st0">"Switch &#91;?&#93; - 2 (last was GUI_3): "</span> <span class="sy0">&</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/GUISwitch.htm"><span class="kw3">GUISwitch</span></a><span class="br0">&#40;</span><span class="re0">$hGUI_2</span><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">; xxxxxxxxxxxxxxxxxxx</span>

<span class="co0">; Switch back to the main GUI</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="st0">"Switch 2 - 1 (should be GUI_2): "</span> <span class="sy0">&</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/GUISwitch.htm"><span class="kw3">GUISwitch</span></a><span class="br0">&#40;</span><span class="re0">$hGUI_1</span><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">; xxxxxxxxxxxxxxxxxxx</span>

<span class="co0">; Create second control in the main GUI</span>
<span class="re0">$hButton_2</span> <span class="sy0">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/GUICtrlCreateButton.htm"><span class="kw3">GUICtrlCreateButton</span></a><span class="br0">&#40;</span><span class="st0">"Test 2"</span><span class="sy0">,</span> 10<span class="sy0">,</span> 50<span class="sy0">,</span> 80<span class="sy0">,</span> 30<span class="br0">&#41;</span>

<a href="http://www.autoitscript.com/autoit3/docs/functions/GUISetState.htm"><span class="kw3">GUISetState</span></a><span class="br0">&#40;</span><a href="http://www.autoitscript.com/autoit3/docs/macros.htm"><span class="kw2"><span class="re0">@SW_SHOW</span></span></a><span class="sy0">,</span> <span class="re0">$hGUI_1</span><span class="br0">&#41;</span>

<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">While</span></a> 1
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Switch</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>
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Case</span></a> <span class="re0">$GUI_EVENT_CLOSE</span>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Exit</span></a>
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">EndSwitch</span></a>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">WEnd</span></a>

<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Func</span></a> _Sim_StringSize<span class="br0">&#40;</span><span class="br0">&#41;</span>
&nbsp; &nbsp; <span class="re0">$hGUI_3</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">"Test 3"</span><span class="sy0">,</span> 200<span class="sy0">,</span> 100<span class="sy0">,</span> 600<span class="sy0">,</span> 10<span class="br0">&#41;</span>
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/ConsoleWrite.htm"><span class="kw3">ConsoleWrite</span></a><span class="br0">&#40;</span><span class="st0">"GUI_3 = "</span> <span class="sy0">&</span> <span class="re0">$hGUI_3</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>
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/GUISetState.htm"><span class="kw3">GUISetState</span></a><span class="br0">&#40;</span><a href="http://www.autoitscript.com/autoit3/docs/macros.htm"><span class="kw2"><span class="re0">@SW_SHOW</span></span></a><span class="sy0">,</span> <span class="re0">$hGUI_3</span><span class="br0">&#41;</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="re0">$hGUI_3</span><span class="br0">&#41;</span>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">EndFunc</span></a>
&nbsp;</div></pre></div><br />
Run it as posted and you should see that you get 0x00000000 returned whan you switch to <em class='bbc'>$hGUI_2</em>.<br />
<br />
Now, comment out the 2 <em class='bbc'>Switch </em>lines (marked with <span style='color: #2E8B57'>xxxxxxxxxxx</span>) - and look, no second button!  AutoIt cannot decide which of the 2 GUIs is "<em class='bbc'>current</em>".<br />
<br />
Finally, comment out the 3 lines which create the additional GUI (marked with <span style='color: #2E8B57'>&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;</span>) - and hey presto, the second button reappears!  AutoIt has only one GUI in the script and has obviously decided it must be "<em class='bbc'>current</em>".]]></description>
		<pubDate>Sat, 08 May 2010 14:07:48 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=114144</guid>
	</item>
	<item>
		<title>SciTE suggestion</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=114118</link>
		<description><![CDATA[I'd like to see the usefullness of SciTE's ALT-L add-on enhanced.<br />
<br />
I find in a large script it's a real pain-in-the-butt to have to scroll through all the code when you need to go make an adjustment to some paragraph.  When I ran across the ALT-L command, I thought I'd found my shortcut.<br />
Well, in a script with 80 functions, I have to scroll almost as long through the puny listbox that ALT-L displays as the code itself.<br />
<br />
I think ALT-L would be much more useful were the function list to be right-justified on the screen and default to extending the entire height of the client area.  Put as many function names on the screen as possible with one click, rather than a list that only displays about 4 functions at a time, and requires tons of scrolling.<br />
<br />
Thank you for your time.]]></description>
		<pubDate>Fri, 07 May 2010 17:07:18 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=114118</guid>
	</item>
	<item>
		<title>C / C++ Windows API GUI</title>
		<link>http://www.autoitscript.com/forum/index.php?showtopic=113955</link>
		<description><![CDATA[Is there a designer out there? It's a real pain aligning things pixel by pixel, compiling, adjust 1 more pixel, compile, etc...<br />
<br />
Thanks]]></description>
		<pubDate>Tue, 04 May 2010 17:20:51 +0000</pubDate>
		<guid>http://www.autoitscript.com/forum/index.php?showtopic=113955</guid>
	</item>
</channel>
</rss>