<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>autoit &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/autoit/</link>
	<description>Feed of posts on WordPress.com tagged "autoit"</description>
	<pubDate>Tue, 01 Dec 2009 18:27:34 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Giới thiệu AutoIT (Phần 2)]]></title>
<link>http://thaibinhag.wordpress.com/2009/11/24/gi%e1%bb%9bi-thi%e1%bb%87u-autoit-ph%e1%ba%a7n-2/</link>
<pubDate>Tue, 24 Nov 2009 08:22:30 +0000</pubDate>
<dc:creator>binhlx</dc:creator>
<guid>http://thaibinhag.wordpress.com/2009/11/24/gi%e1%bb%9bi-thi%e1%bb%87u-autoit-ph%e1%ba%a7n-2/</guid>
<description><![CDATA[3.3. Các kiểu dữ liệu AutoIt gồm các kiểu dữ liệu: Số; Xâu (hay chuỗi); Logic; Xâu nhị phân. Dữ liệu]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong>3.3. Các kiểu dữ liệu</strong></p>
<p>AutoIt gồm các kiểu dữ liệu: Số; Xâu (hay chuỗi); Logic; Xâu nhị phân.</p>
<p>Dữ liệu kiểu số có thể là số nguyên (10, -6) hay số thực (3.334, 1.4e5) hay thậm chí ở dạng Hex (0&#215;4FFFF, 0&#215;409 &#8211; bắt đầu bằng 0x)</p>
<p>Dữ liệu kiểu xâu (chuỗi) được đặt trong dấu nháy đơn / nháy kép:</p>
<p>Code:</p>
<p><em>&#8216;This &#8220;sentence&#8221; contains &#8220;lots&#8221; of &#8220;double-quotes&#8221; does it not?&#8217;</em></p>
<p>Dữ liệu kiểu logic có 1 trong 2 giá trị: true hoặc false:</p>
<p>Code:</p>
<p><em>$Boolean1 = true<br />
$Boolean2 = false</em></p>
<p>Cuối cùng, kiểu xâu nhị phân là xâu bao gồm ký tự chr(0):<br />
Code:</p>
<p><em>$bin = &#8220;abc&#8221; &#38; chr(0) &#38; &#8220;def&#8221;</em></p>
<p><em>$bin = BinaryString(&#8220;abc&#8221;)</em></p>
<p><strong>3.4. Các toán tử</strong></p>
<p>Cũng như các ngôn ngữ lập trình khác, AutoIt có các toán tử quen thuộc: +, -, *, /, ^&#8230;</p>
<p>Hoàn toàn có thể sử dụng các toán tử như +=, -=, *=, /=</p>
<p>Với kiểu logic, AND, OR và NOT là các toán tử hợp lệ.</p>
<p><strong>3.5. Cấu trúc điều khiển</strong></p>
<p>Có 3 loại cấu trúc điều khiển trong AutoIt:</p>
<ol>
<li>If&#8230;ElseIf&#8230;Else&#8230;EndIf</li>
<li>Select&#8230;Case&#8230;EndSelect</li>
<li>Switch&#8230;Case&#8230;EndSwitch</li>
</ol>
<p>Cấu trúc If&#8230;ElseIf&#8230;Else&#8230;EndIf kiểm tra điều kiện, sau đó thực thi các lệnh:</p>
<p>Code:</p>
<p><em>If $var &#62; 0 Then<br />
MsgBox(4096,&#8221;", &#8220;Value is positive.&#8221;)<br />
ElseIf $var &#60; 0 Then<br />
MsgBox(4096,&#8221;", &#8220;Value is negative.&#8221;)<br />
Else<br />
If StringIsXDigit ($var) Then<br />
MsgBox(4096,&#8221;", &#8220;Value might be hexadecimal!&#8221;)<br />
Else<br />
MsgBox(4096,&#8221;", &#8220;Value is either a string or is zero.&#8221;)<br />
EndIf<br />
EndIf</em></p>
<p>Cấu trúc Select&#8230;Case sử dụng trong trường hợp cấu trúc If trở nên rườm rà:</p>
<p>Code:</p>
<p><em>Select<br />
Case $var = 1<br />
MsgBox(0, &#8220;&#8221;, &#8220;First Case expression was true&#8221;)<br />
Case $var2 = &#8220;test&#8221;<br />
MsgBox(0, &#8220;&#8221;, &#8220;Second Case expression was true&#8221;)<br />
Case Else<br />
MsgBox(0, &#8220;&#8221;, &#8220;No preceding case was true!&#8221;)<br />
EndSelect</em></p>
<p>Cấu trúc Switch&#8230;Case&#8230;EndSwitch hoàn toàn tương tự, tuy nhiên nó tiến bộ ở chỗ cho phép bạn chỉ rõ khoảng giá trị cần kiểm tra:</p>
<p>Code:</p>
<p><em>Switch @HOUR<br />
Case 6 To 11<br />
$msg = &#8220;Good Morning&#8221;<br />
Case 12 To 17<br />
$msg = &#8220;Good Afternoon&#8221;<br />
Case 18 To 21<br />
$msg = &#8220;Good Evening&#8221;<br />
Case Else<br />
$msg = &#8220;What are you still doing up?&#8221;<br />
EndSwitch</em></p>
<p><strong>3.6. Các vòng lặp</strong></p>
<p>Các loại vòng lặp trong AutoIt gồm có:</p>
<ol>
<li>For&#8230;Next</li>
<li>While&#8230;WEnd</li>
<li>Do&#8230;Until</li>
<li>With&#8230;Endwith</li>
<li>For&#8230;In&#8230;Next</li>
</ol>
<p>For&#8230;Next được sử dụng để lặp từ giá trị ban đầu đến giá trị kết thúc, theo bước nhảy định sẵn:</p>
<p>Code:</p>
<p>For $i = 5 to 1 Step -1<br />
MsgBox(0, &#8220;Count down!&#8221;, $i)<br />
Next<br />
MsgBox(0,&#8221;", &#8220;Blast Off!&#8221;)</p>
<p>While&#8230;WEnd và Do&#8230;Until tương tự như While Do và Repeat Until của Pascal:</p>
<p>Code:</p>
<p>$i = 0<br />
While $i &#60;= 10<br />
MsgBox(0, &#8220;Value of $i is:&#8221;, $i)<br />
$i = $i + 1<br />
WEnd</p>
<p>Code:</p>
<p><em>$i = 0<br />
Do<br />
MsgBox(0, &#8220;Value of $i is:&#8221;, $i)<br />
$i = $i + 1<br />
Until $i = 10</em></p>
<p>With&#8230;EndWith dùng với các đối tượng, giúp tiết kiệm công sức khi gõ:</p>
<p>Code:</p>
<p><em>$oExcel = ObjCreate(&#8220;Excel.Application&#8221;)<br />
$oExcel.visible =1<br />
$oExcel.workbooks.add</em></p>
<p><em>With $oExcel.activesheet<br />
.cells(2,2).value = 1<br />
.range(&#8220;A1:B2&#8243;).clear<br />
Endwith</p>
<p></em></p>
<p><em>$oExcel.quit</em></p>
<p>Tương tự, bằng cách sử dụng For&#8230;In&#8230;Next, ta có thể duyệt qua tất cả mảng / tập các đối tượng:</p>
<p>Code:</p>
<p><em>FOR $element IN $aArray<br />
$string = $string &#38; $element &#38; @CRLF<br />
NEXT</em></p>
<p><strong>3.7. Hàm</strong></p>
<p>Hàm trong AutoIt được định nghĩa bằng cách dùng khối Func&#8230;EndFunc:</p>
<p>Code:</p>
<p><em>Func MyDouble($value)<br />
$value = $value * 2<br />
Return $value<br />
EndFunc</em></p>
<p>Sử dụng hàm cũng rất đơn giản:</p>
<p><em>$val = 10<br />
For $i = 1 To 10<br />
$doubled = MyDouble($val)<br />
MsgBox(0, &#8220;&#8221;, $val &#38; &#8221; doubled is &#8221; &#38; $doubled)<br />
$val = $doubled<br />
Next</em></p>
<p>Số lượng hàm tự định nghĩa rất nhiều và có thể được lấy về từ autoitscript.com</p>
<p><strong>6. GUI</strong></p>
<p><strong>6.1. Thiết kế GUI</strong></p>
<p>Nếu như các script viết bằng AutoIt có thể hoạt động một cách hoàn toàn âm thầm, nghĩa là <em>click và chạy mà người dùng ko biết j`</em> (mở ngoặc: giống &#8220;virus&#8221; YM nhờ ), thì đôi khi bạn lại muốn tạo một GUI cho script cho giống một soft hoàn chỉnh</p>
<p>Khả năng tạo GUI trong AutoIt góp phần làm cho nó trở nên phổ biến và tiện dụng hơn</p>
<p>Trong GUI, bạn có thể tạo label, button, checkbox, radiobox, list, progress bar, context menu&#8230; nói chung là tất tần tật những j` mà một GUI có thể có.</p>
<p>Để tạo một ứng dụng có GUI, bạn có thể tạo bằng cách tự viết code lấy &#8211; Cái này chả khác j` với việc làm đồ họa bằng Pascal. Phải căn ke từng mili trên màn hình, sửa đổi vị trí cho hợp nhãn,&#8230; túm lại là rất phiền</p>
<p>Thử ví dụ một GUI cho dễ hình dung nhé:</p>
<p>Code:</p>
<p><em>; GUI<br />
GuiCreate(&#8220;Sample GUI&#8221;, 400, 400)<br />
GuiSetIcon(@SystemDir &#38; &#8220;\mspaint.exe&#8221;, 0)</em></p>
<p><em>; MENU<br />
GuiCtrlCreateMenu(&#8220;Menu&#38;One&#8221;)<br />
GuiCtrlCreateMenu(&#8220;Menu&#38;Two&#8221;)<br />
GuiCtrlCreateMenu(&#8220;MenuTh&#38;ree&#8221;)<br />
GuiCtrlCreateMenu(&#8220;Menu&#38;Four&#8221;)</p>
<p>; CONTEXT MENU<br />
$contextMenu = GuiCtrlCreateContextMenu()<br />
GuiCtrlCreateMenuItem(&#8220;Context Menu&#8221;, $contextMenu)<br />
GuiCtrlCreateMenuItem(&#8220;&#8221;, $contextMenu) ;separator<br />
GuiCtrlCreateMenuItem(&#8220;&#38;Properties&#8221;, $contextMenu)</p>
<p>; PIC<br />
GuiCtrlCreatePic(&#8220;logo4.gif&#8221;,0,0, 169,68)<br />
GuiCtrlCreateLabel(&#8220;Sample pic&#8221;, 75, 1, 53, 15)<br />
GuiCtrlSetColor(-1,0xffffff)</p>
<p>; AVI<br />
GuiCtrlCreateAvi(&#8220;sampleAVI.avi&#8221;,0, 180, 10, 32, 32, $ACS_AUTOPLAY)<br />
GuiCtrlCreateLabel(&#8220;Sample avi&#8221;, 170, 50)</p>
<p></em></p>
<p><em>; GUI MESSAGE LOOP</em><br />
<em>GuiSetState()</em></p>
<p>Một cách khác, thuận tiện hơn, đó là sử dụng một soft dạng GUI Builder. Có nhiều GUI Builder dành cho AutoIt, nhưng theo quan điểm cá nhân, có lẽ Koda là khá nhất. Công cụ này có thể tại về từ trang web: <a href="http://www.autoitscript.com/fileman/users/lookfar/formdesign.html" target="_blank">http://www.autoitscript.com/fileman/&#8230;ormdesign.html</a></p>
<p>Phiên bản mới nhất là 1.6, cập nhật ngày 19/9.</p>
<p>Koda cho phép bạn dễ dàng tạo GUI chỉ bằng cách drag-and-drop vào form, sau đó sẽ tự động sinh code AutoIt để bạn đưa vào script của mình. Rất rất tiện lợi nếu so sánh với việc code từ đầu bằng tay.</p>
<p><strong>6.2. Gắn GUI với code </strong></p>
<p>Có GUI rồi, là đến lúc bạn muốn gắn nó với các mã AutoIt thực thi các lệnh đã viết từ trước.</p>
<p>AutoIt hỗ trợ 2 chế độ tương tác với GUI: OnEvent và MessageLoop. Có thể đảo qua lại 2 chế độ bằng cách dùng lệnh:<br />
Code:</p>
<p><em>Opt(&#8220;GUIOnEventMode&#8221;, 1)</em></p>
<p>Ở chế độ OnEvent, ta sẽ gắn từng &#8220;sự kiện&#8221; với một hàm tương ứng. Ví dụ, ta gắn &#8220;sự kiện&#8221; người dùng click nút Close với hàm Close():</p>
<p>Code:</p>
<p><em>GUISetOnEvent($GUI_EVENT_CLOSE, &#8220;CLOSE&#8221;)</em><br />
<em>Func CLOSE()<br />
MsgBox(0, &#8220;GUI Event&#8221;, &#8220;You clicked CLOSE! Exiting&#8230;&#8221;)<br />
Exit<br />
EndFunc</em></p>
<p>Ở chế độ MessageLoop, ta có một cách tiếp cận hoàn toàn khác. AutoIt sẽ tạo một vòng lặp vô hạn, liên tục kiểm tra xem có sự kiện nào xảy ra với GUI ko &#8211; thông qua một hàm mang tên GUIGetMsg.</p>
<p>Toàn bộ việc gắn code với GUI được thực hiện qua một vòng lặp While:</p>
<p>Code:</p>
<p><em>While 1</em></p>
<p><em>$msg = GUIGetMsg()</em></p>
<p><em>Select<br />
Case $msg = $GUI_EVENT_CLOSE<br />
MsgBox(0, &#8220;GUI Event&#8221;, &#8220;You clicked CLOSE! Exiting&#8230;&#8221;)<br />
ExitLoop<br />
EndSelect<br />
WEnd</em></p>
<p><strong>7. Chạy thử, biên dịch, đóng gói và phân phối</strong></p>
<p>Có script hoàn chỉnh. Có GUI hoàn hảo. Đó là lúc bạn nghĩ đến việc tiếp theo. Phân phối tới càng nhiều người càng tốt  (nhưng đừng dùng cách phát tán qua YM nhé )</p>
<p>Để chạy script viết bằng AutoIt, bạn hãy mở file AutoIt3.exe và chọn đến file .au3 tương ứng.</p>
<p>Để biên dịch thành file exe và đem đi phân phối, bạn cần đến công cụ Aut2Exe. Bạn cần chỉ định file mã nguồn, tên exe sẽ tạo, icon (nếu thích) và bấm Convert.</p>
<p>Nếu bạn muốn mình có thể dịch ngược từ exe về au3 trong trường hợp đánh mất file .au3 gốc , hãy chọn Allow decompilation và gõ vào password của mình. Pass này sẽ dùng để tránh người khác dịch ngược file script của bạn.</p>
<p>Nếu để ý kỹ, bạn sẽ thấy khi kích phải chuột vào file exe đã tạo + chọn properties, sẽ có thông tin File Version là phiên bản của AutoIt. Bạn rất có thể sẽ muốn loại bỏ thông tin này + đưa thông tin của riêng mình vào cho personal</p>
<p>Điều đó hoàn toàn có thể thực hiện được khi bạn dùng Resource Editor.</p>
<p>Tuy nhiên, nếu cố edit file exe đã biên dịch, bạn sẽ thấy mình phí công vô ích, bởi file exe mới sẽ ko hoạt động</p>
<p>Hãy edit file AutoItSC.bin cùng thư mục với Aut2Exe.exe với những thông tin mà bạn thích, sau đó mới tiến hành biên dịch. Lần này, kết quả sẽ như mong đợi</p>
<p>Bạn sẽ có một file .exe của riêng mình, với icon tùy ý, info ở mục properties tùy ý. Khó có thể nhận ra đó là script viết bằng AutoIt</p>
<p><strong>8. Phụ lục 1: AutoIt or not AutoIt?</strong></p>
<p>Có thể nói ko ngoa, AutoIt là một con dao 2 lưỡi. Nó được tạo ra để giúp người dùng làm các script tự động hóa, giúp mình dễ thở hơn . Tuy vậy, AutoIt cũng có thể được dùng để tạo một con trojan, một con virus, whatever</p>
<p>Phát tán con &#8220;virus&#8221; này là quá đơn giản. Hãy nhìn những j` các &#8220;virus&#8221; YM đã làm.</p>
<p>Như đã nói ở trên, một file exe có thể được edit để khi mới nhìn vào, bạn khó có thể biết nó có phải là một script AutoIt hay ko.</p>
<p>Nhưng, điều đó thực ra cũng ko hoàn toàn đúng. Một script viết bằng AutoIt, cho dù có được biên dịch với toàn bộ info trong file .bin bị luộc mất, vẫn có thể bị lộ danh tính, bằng chính một script AutoIt.</p>
<p>Đây là hàm nhận diện script viết bằng AutoIt, được tớ sưu tầm từ forum của nó:</p>
<p>Code:</p>
<p><em>Func _IsAutoItExe($hFile)</em></p>
<p><em>Local $hNew = StringTrimRight($hFile, 4) &#38; &#8216;verify.exe&#8217;<br />
FileCopy($hFile, $hNew)<br />
RunWait(&#8216;&#8221;&#8216; &#38; @ProgramFilesDir &#38; &#8216;\AutoIt3\Aut2Exe\UPX.exe&#8221; -d &#8220;&#8216; &#38; $hNew &#38; &#8216;&#8221;&#8216;, &#8221;, @SW_HIDE)<br />
Local $sString = String(BinaryString(FileRead($hNew)))<br />
FileDelete($hNew)<br />
Local $sFind = &#8216;3C6465736372697074696F6E3E4175746F497420333C2F646 5736372697074696F6E3E&#8217;<br />
If StringInStr($sString, $sFind) Then Return 1<br />
Return SetError(1, 0, 0)<br />
EndFunc</em></p>
<p><strong>9. Phụ lục 2: Công cụ xem thông tin về các cửa sổ &#8211; Au3Info.exe</strong></p>
<p>Tự động hóa các công việc &#8211; đó cũng là lý do AutoIt có khả năng tương tác với các chương trình khác. Nhận diện một cửa sổ, xác định tọa độ chuột để giả lập việc click,&#8230; đó là những ứng dụng của Au3Info.exe.</p>
<p>Bạn chỉ việc chạy file này, trỏ đến cửa sổ cần xem thông tin. Mọi điều cần biết &#8211; title, class, mouse position, pixel color, control info&#8230; sẽ hiện lên. Bạn có thể bấm Ctrl + Alt + F để giữ nguyên trạng thái của cửa sổ thông tin, và copy những thông tin đó vào script mình đang viết để dùng.</p>
<p><strong>10. Kết</strong></p>
<p>Trên đây là tut dài nhất, mất công nhất mà tớ từng viết. Hết vụ này xin phép nghỉ viết tut dài hạn</p>
<p>Hãy coi đây là cái nhìn tổng quan về AutoIt, về ngôn ngữ AutoIt, các công cụ đi kèm, những thứ cần thiết, những điều mà bạn có thể quan tâm&#8230;</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Giới Thiệu AutoIT (Phần 1)]]></title>
<link>http://thaibinhag.wordpress.com/2009/11/24/gi%e1%bb%9bi-thi%e1%bb%87u-autoit-ph%e1%ba%a7n-1/</link>
<pubDate>Tue, 24 Nov 2009 08:11:08 +0000</pubDate>
<dc:creator>binhlx</dc:creator>
<guid>http://thaibinhag.wordpress.com/2009/11/24/gi%e1%bb%9bi-thi%e1%bb%87u-autoit-ph%e1%ba%a7n-1/</guid>
<description><![CDATA[Trích http://www.tin4k50.info 1. Giới thiệu về AutoIt. Lịch sử phát triển AutoIt là gì? Nó có được c]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Trích <a href="http://www.tin4k50.info/forum/showthread.php?t=167">http://www.tin4k50.info</a></p>
<p><strong>1. Giới thiệu về AutoIt. Lịch sử phát triển</strong></p>
<p>AutoIt là gì? Nó có được coi là một ngôn ngữ lập trình ko? Đó là câu hỏi thường được nhắc đi nhắc lại</p>
<p>AutoIt là một ngôn ngữ dễ học, dễ sử dụng, giúp người dùng có thể thực thi những công việc mình thường phải làm trên máy tính một cách tự động. Bằng cách giả lập các phím bấm, các nút click chuột, cùng với khả năng tương tác với các cửa sổ, các chương trình, các file trong máy tính&#8230; AutoIt có thể làm được rất nhiều việc. Nhỏ, nhẹ, thậm chí có thể ko cần cài đặt, khả năng tương thích cao (từ Win 95 đến Win 2k3) và khả năng xuất ra file exe đã khiến AutoIt trở nên thông dụng và ngày càng được nhiều người biết đến</p>
<p>Riêng ở VN, AutoIt được biết đến thông qua hàng loạt những &#8220;virus&#8221; phát tán qua YM  Có thể nói đây là một &#8220;hướng đi&#8221; khác của các chương trình viết bằng AutoIt, góp phần ko nhỏ khiến cho ngày càng nhiều các công cụ anti-virus nhận diện chương trình viết bằng AutoIt là virus, bất luận mục đích thực sự của những chương trình này là tốt hay xấu</p>
<p>Ban đầu, các file mã nguồn AutoIt mang đuôi .ini (AutoIt 1), sau chuyển sang .aut (AutoIt 2) và giờ là .au3 (AutoIt 3). Mã nguồn chương trình AutoIt từ chỗ khá rắc rối (phiên bản 2) đã trở nên cực kỳ đơn giản và dễ hiểu (phiên bản 3), do khá gần gũi với ngôn ngữ BASIC. Cũng nên nói thêm một chút, trong quá trình đi từ AutoIt 2 lên AutoIt 3, một lập trình viên trong nhóm phát triển AutoIt đã quyết định tách ra thực hiện một dự án mới, mang lại nhiều tính năng mạnh mẽ thậm chí còn hơn AutoIt &#8211; tuy vậy cú pháp ngôn ngữ này cực kỳ phức tạp và khó hiểu , ko trong sáng như AutoIt 3.</p>
<p>AutoIt có thể được tải về từ trang chủ <a href="http://www.autoitscript.com/" target="_blank">www.autoitscript.com</a></p>
<p><strong>2. Những công cụ cần dùng để viết các chương trình bằng AutoIt</strong></p>
<p>Hiển nhiên, trước tiên bạn cần có AutoIt.</p>
<p>AutoIt được phân phối ở 2 dạng: Installer và ZIP. Phiên bản mới nhất là 3.2.0.1.</p>
<p>Ở dạng Installer, bạn sẽ down về một file exe: <a href="http://www.autoitscript.com/cgi-bin/getfile.pl?autoit3/autoit-v3.2.0.1-setup.exe" target="_blank">http://www.autoitscript.com/cgi-bin/&#8230;.0.1-setup.exe</a> &#8211; bộ cài của AutoIt. Down bộ cài đồng nghĩa với việc bạn sẽ có thêm nhiều tiện ích khi sử dụng AutoIt. Ví dụ, khi bạn kích chuột phải vào 1 file .au3, sẽ có tùy chọn cho phép bạn chạy script / sửa script bằng editor&#8230;</p>
<p>Còn dạng ZIP: <a href="http://www.autoitscript.com/cgi-bin/getfile.pl?autoit3/autoit-v3.2.0.1.zip" target="_blank">http://www.autoitscript.com/cgi-bin/&#8230;t-v3.2.0.1.zip</a> &#8211; dạng này cho phép bạn sử dụng AutoIt ở bất cứ đâu mà ko cần phải cài đặt (tạo rác trong registry ). Đây chính là bản portable mà bạn có thể đặt trong USB stick của mình</p>
<p>Để soạn thảo file .au3, bạn có thể dùng bất cứ trình soạn thảo nào, thậm chí là Notepad của Windows <img src="http://www.updatesofts.com/forums/images/smilies/104.gif" border="0" alt="" /> Nếu muốn pzo hơn, có tính năng highlight code, chạy thử code bằng cách bấm F5&#8230; bạn có thể sử dụng SciTE. Đây là bản SciTE đã được sửa đổi để giúp bạn trong quá trình sử dụng AutoIt: <a href="http://www.autoitscript.com/autoit3/scite/downloads.php" target="_blank">http://www.autoitscript.com/autoit3/scite/downloads.php</a></p>
<p>Hoặc, bạn có thể dùng Textpad, Crimson Editor hay PSPad để viết các chương trình AutoIt. Các file syntax dành cho 3 trình soạn thảo này được kèm trong thư mục Extras\Editors của AutoIt.</p>
<p>Sau khi tiến hành cài đặt / giải nén AutoIt, bạn sẽ thấy một số file quan trọng nằm trong thư mục này và các thư mục con:</p>
<ul>
<li>AutoIt3.exe &#8211; Công cụ dùng để chạy các mã nguồn viết bằng AutoIt</li>
<li>Aut2Exe.exe &#8211; Công cụ biên dịch file .au3 thành .exe để phân phối</li>
<li>Exe2Aut.exe &#8211; Công cụ dịch ngược file .exe (viết bằng AutoIt &#8211; hiển nhiên) về .au3</li>
<li>Au3Info.exe &#8211; Công cụ cho biết thông tin về các cửa sổ trên màn hình</li>
</ul>
<p>Còn khá nhiều file khác, tuy nhiên trên đây là những công cụ cần thiết nhất.</p>
<p><strong>3. Ngôn ngữ AutoIt qua cái nhìn khái quát</strong></p>
<p>Làm thế nào để biết cách sử dụng và làm chủ sức mạnh của AutoIt?</p>
<p>Câu trả lời hết sức đơn giản: <em>Tham khảo file Help + Forum của AutoIt</em>.</p>
<p>Tất cả những j` cần thiết đều đã được trình bày một cách kỹ càng và đầy đủ trong file Help của AutoIt. Ở đây, tớ chỉ dẫn ra những điểm quan trọng nhất về ngôn ngữ AutoIt.</p>
<p><strong>3.1. Cấu trúc file .au3</strong></p>
<p>Một file script viết bằng AutoIt có định dạng .au3</p>
<p>File au3 này bao gồm các dòng lệnh, ví dụ như sau:</p>
<p>Code:</p>
<p><em>; This is my second script (with functions)<br />
MsgBox(0, &#8220;My second script!&#8221;, &#8220;Hello from the main script!&#8221;)<br />
TestFunc()</em></p>
<p><em> </em></p>
<p><em>Func TestFunc()<br />
MsgBox(0, &#8220;My Second Script!&#8221;, &#8220;Hello from the functions!&#8221;)<br />
EndFunc</em></p>
<p>Như bạn có thể thấy, dòng đầu tiên là một chú thích, được đặt sau dấu <strong>;</strong>. Nếu chú thích dài nhiều dòng, bạn có thể đặt trong khối <strong>#cs</strong> -<strong>#ce</strong>:</p>
<p>Code:</p>
<p><em>#cs<br />
Comment goes here<br />
Line 1<br />
Line 2<br />
#ce</em></p>
<p><em><strong>3.2. Biến trong AutoIt</strong></em></p>
<p><em> </em></p>
<p><em></p>
<div><span style="font-style:normal;">Trong AutoIt, các biến bắt đầu bằng dấu </span><strong><span style="font-style:normal;">$</span></strong><span style="font-style:normal;">, giống như ngôn ngữ PHP. Biến có thể được khai báo bằng các từ khóa </span><strong><span style="font-style:normal;">Dim</span></strong><span style="font-style:normal;">, </span><strong><span style="font-style:normal;">Local</span></strong><span style="font-style:normal;"> hay</span><strong><span style="font-style:normal;">Global</span></strong><span style="font-style:normal;">:</span></div>
<div><span style="font-style:normal;">Code:</span></div>
<div><span style="font-style:normal;"><em>Dim $var1, $myvariable</em></span></div>
<p></em></p>
<p>Hoặc, bạn có thể dùng trực tiếp biến mà ko cần khai báo:<br />
Code:</p>
<p><em>$var1 = &#8220;create and assign&#8221;</em></p>
<p><em><span style="font-style:normal;">AutoIt hiển nhiên cũng hỗ trợ mảng nhiều chiều. Bạn chỉ việc sử dụng chúng cùng với chỉ số đặt trong dấu ngoặc vuông. Ví dụ:</span></em></p>
<p><em> </em></p>
<p><em>Code:</em></p>
<p><em>$Array[1]=&#8221;A&#8221;</em></p>
<p><em>$Array[1][1]=&#8221;Upper-Left&#8221;</em></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[javascript popup clicker]]></title>
<link>http://juggernautfreak.wordpress.com/2009/11/19/javascript-popup-clicker/</link>
<pubDate>Thu, 19 Nov 2009 09:21:36 +0000</pubDate>
<dc:creator>juggernautfreak</dc:creator>
<guid>http://juggernautfreak.wordpress.com/2009/11/19/javascript-popup-clicker/</guid>
<description><![CDATA[require 'fileutils' require 'win32ole' def check_for_popups(title=&quot;Message from webpage&quot;, ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><pre class="brush: css;">

require 'fileutils'
require 'win32ole'

def check_for_popups(title=&#34;Message from webpage&#34;, button=&#34;OK&#34;)
  popup=Thread.new {
    autoit=WIN32OLE.new('AutoItX3.Control')
    ret=autoit.WinWait(title,&#34;&#34;,60)
    if (ret==1)
      autoit.WinActivate(title)
      button.downcase!
      if button.eql?(&#34;ok&#34;) &#124;&#124; button.eql?(&#34;yes&#34;) &#124;&#124; button.eql?(&#34;continue&#34;)
        autoit.Send(&#34;{Enter}&#34;)
      else
        autoit.Send(&#34;{tab}&#34;)
        autoit.Send(&#34;{Enter}&#34;)
      end
    elsif (ret==0)
        puts &#34;No popup, please check your code.&#34;
    end
  }
  at_exit { Thread.kill(popup) }
end
</pre>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Guida AutoIt Versione 0.2]]></title>
<link>http://redskull92.wordpress.com/2009/10/29/guida-autoit-versione-0-2/</link>
<pubDate>Thu, 29 Oct 2009 16:25:17 +0000</pubDate>
<dc:creator>Red Skull</dc:creator>
<guid>http://redskull92.wordpress.com/2009/10/29/guida-autoit-versione-0-2/</guid>
<description><![CDATA[Ho appena rilasciato la versione 0.2 della MIA guida all&#8217;AutoIt. RICORDO che questa guida è an]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:center;"><img class="alignnone" title="http://www.autoitscript.com/autoit3/files/graphics/autoit_builder_wall_1024x768.jpg" src="http://www.autoitscript.com/autoit3/files/graphics/autoit_builder_wall_1024x768.jpg" alt="" width="487" height="365" /></p>
<p style="text-align:left;"><!--more-->Ho appena rilasciato la versione <strong>0.2</strong> della <span style="text-decoration:underline;"><strong>MIA</strong></span> guida all&#8217;<strong>AutoIt</strong>.</p>
<p style="text-align:left;"><span style="text-decoration:underline;"><strong>RICORDO che questa guida è ancora in versione BETA quindi in futuro sarà soggetta a cambiamenti (anche radicali).</strong></span></p>
<p style="text-align:left;">In questo periodo ho davvero poco tempo da dedicargli (Faccio quello che posso) .</p>
<p style="text-align:left;">In questa versione ho aggiunto parti alle cose vecchie.</p>
<p style="text-align:left;">Aggiunte e spiegate altre funzioni utili (con relativi esempi)</p>
<p style="text-align:left;">Rieditato alcuni pezzi.</p>
<p style="text-align:left;">Fatemi sapere cosa ne pensate (consigli <strong>COSTRUTTIVI</strong>, il resto sarà <strong>deletato</strong>)</p>
<p style="text-align:left;"><span style="text-decoration:underline;"><strong>Nota Bene: La guida è stata rieditata TUTTA quindi RILEGGETELA DALL&#8217;INIZIO !</strong></span></p>
<p style="text-align:left;"><span style="text-decoration:underline;"><strong>RIPETO CHE LA GUIDA NON E&#8217; COMPLETA,TRATTA SOLO ALCUNI ARGOMENTI PER ORA. (nella prossima versione vedrò di fare le gui,i socket e alcune udf utili come _IE e altro&#8230;)</strong></span></p>
<p style="text-align:left;"><span style="text-decoration:underline;"><strong>VI VOGLIO RICORDARE CHE LA GUIDA E&#8217; STATA SCRITTA/PENSATA/SOGNATA DA ME (RedSkull), SE VERRA&#8217; LINKATA SUGGERITA PUBBLICATA, L&#8217;AUTORE DOVRA&#8217; SEMPRE ESSERE CITATO.SPERO SI SIA CAPITO.</strong></span></p>
<p style="text-align:left;">Ecco il link al pdf : <a title="AutoIt Guida" href="http://redskull.netsons.org/download/altro/AutoIt2.pdf" target="_blank">AutoIt2.pdf</a></p>
<p style="text-align:left;"><!--more-->Torna alla <a href="http://redskull92.wordpress.com" target="_self">HomePage</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Notepad++ 5.5.1]]></title>
<link>http://netvietnam.org/2009/10/09/notepad-5-5-1/</link>
<pubDate>Fri, 09 Oct 2009 12:15:09 +0000</pubDate>
<dc:creator>Nhân Mã</dc:creator>
<guid>http://netvietnam.org/2009/10/09/notepad-5-5-1/</guid>
<description><![CDATA[Notepad++ là trình biên tập mã nguồn miễn phí (và là công cụ thay thế cho Notepad), hỗ trợ nhiều ngô]]></description>
<content:encoded><![CDATA[Notepad++ là trình biên tập mã nguồn miễn phí (và là công cụ thay thế cho Notepad), hỗ trợ nhiều ngô]]></content:encoded>
</item>
<item>
<title><![CDATA[AutoFarmEXP của FarmVille trên Facebook]]></title>
<link>http://taklamka.wordpress.com/2009/10/06/auto-farm-exp-c%e1%bb%a7a-farmvillage-tren-facebook/</link>
<pubDate>Tue, 06 Oct 2009 16:17:26 +0000</pubDate>
<dc:creator>taklamka</dc:creator>
<guid>http://taklamka.wordpress.com/2009/10/06/auto-farm-exp-c%e1%bb%a7a-farmvillage-tren-facebook/</guid>
<description><![CDATA[- Đây là chương trình cày exp dành cho những ai nhiều tiền . Chương trình sẽ tự động trồng soybeams ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>- Đây là chương trình cày exp dành cho những ai nhiều tiền <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> . Chương trình sẽ tự động trồng soybeams rồi lại xoá rồi lại trồng &#8230;..Mỗi ô đất tốn 30 coins 1 lần và thu đc 3 EXP.</p>
<p>- HDSD:</p>
<ul>
<li>Chuẩn bị 1 miếng đất kích thước 2&#215;10 ô như hình:<img class="aligncenter size-full wp-image-22" title="dat" src="http://taklamka.wordpress.com/files/2009/10/dat.jpg" alt="dat" width="227" height="146" /></li>
<li>Chạy chương trình.</li>
<li>Đưa con chuột lại giữa cái nút Market và nhấn c:</li>
<li><img class="aligncenter size-full wp-image-23" title="c" src="http://taklamka.wordpress.com/files/2009/10/c.jpg" alt="c" width="194" height="174" />Click chuột vào cái PlowTool:</li>
<li>Đưa con chuột lại ô đầu tiên bên trái của miếng đất định farm ( 2&#215;10 ô):<img class="aligncenter size-full wp-image-25" title="th" src="http://taklamka.wordpress.com/files/2009/10/th.jpg" alt="th" width="237" height="149" /></li>
<li>Nhấn s</li>
<li>Xong, giờ thì cứ treo máy đó để  nó tự click để farm exp, sướng nhé!</li>
</ul>
<p>-<span style="color:#ff0000;">Lưu ý:</span></p>
<ul>
<li>Trước khi nhấn s phải đưa thằng nông dân kia lại gần cái ô đầu tiên như hình trên (vòng tròn đỏ).</li>
<li>Máy yếu ko thể sử dụng đc vì sẽ load ko kịp và nó sẽ xoá nhầm vài thứ <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </li>
<li>Nhấn ESC bất cứ lúc nào để thoát chương trình.</li>
<li>Chương trình viết bằng <span style="color:#ff0000;">AutoIT</span></li>
</ul>
<p>- Download:</p>
<ul>
<li><a href="http://www.mediafire.com/?zjzyginhzzn">AutoFarmEXPv2f</a></li>
<li><a href="http://www.mediafire.com/?mowmzzwzzmf">Source code</a></li>
</ul>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Auto click FarmVille trên Facebook]]></title>
<link>http://taklamka.wordpress.com/2009/09/30/autofarm/</link>
<pubDate>Wed, 30 Sep 2009 06:53:36 +0000</pubDate>
<dc:creator>taklamka</dc:creator>
<guid>http://taklamka.wordpress.com/2009/09/30/autofarm/</guid>
<description><![CDATA[- Chức năng: Tự động click vào các ô đất trong một miếng đất hình chữ nhật (khỏi phải ngồi click từn]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>- Chức năng: Tự động click vào các ô đất trong một miếng đất hình chữ nhật (khỏi phải ngồi click từng ô <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  sướng chưa)<br />
- Cách sử dụng:</p>
<ul>
<li>Zoom out hết cỡ</li>
<li>Bật chương trình AutoFarmv2f.exe (nếu muốn click nhanh) hoặc AutoFarmv2s.exe (click chậm, dành cho máy yếu 1 tí)</li>
<li>Nhập kích thước của miếng đất (số ô Trái và Phải)</li>
<li>Đưa con trỏ chuột vào giữa của ô xa nhất bên trái (ô có dấu X đỏ) rồi nhấn phím s ( tắt Caps lock)</li>
<li>Giờ thì ngồi xem nó tự click</li>
</ul>
<p><img class="aligncenter size-full wp-image-11" src="http://taklamka.wordpress.com/files/2009/09/autofarm.jpg" alt="" width="500" height="245" /></p>
<p>- Lưu ý:</p>
<ul>
<li>Trước khi gieo hạt phải chọn loại cây trong chợ trước</li>
<li>Nếu miếng đất to hơn màn hình thì phải chia ra làm 2 miếng đất nhỏ.</li>
<li>Nhấn ESC để thoát chương trình bất cứ lúc nào</li>
<li>Chương trình viết bằng <span style="color:#ff6600;">AutoIT</span> nên sẽ bị vài chương trình antivirus hỏi thăm</li>
<li>Máy yếu chạy sẽ bị giựt</li>
</ul>
<p>- Download : Autoclick FarmVille</p>
<ul>
<li><a href="http://www.mediafire.com/?zhjdyjzjlyb">AutoFarmv2f</a></li>
<li><a href="http://www.mediafire.com/?nlwmgwzbnmy">AutoFarmv2s</a></li>
<li><a href="http://www.mediafire.com/?jjh4d0n1xnn">Source code</a></li>
</ul>
<p>p/s: Chúc cày cấy vui vẻ ! Có vấn đề gì thì comment lại.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Notepad++ 5.5.0]]></title>
<link>http://netvietnam.org/2009/09/21/notepad-5-5-0/</link>
<pubDate>Mon, 21 Sep 2009 13:14:16 +0000</pubDate>
<dc:creator>Nhân Mã</dc:creator>
<guid>http://netvietnam.org/2009/09/21/notepad-5-5-0/</guid>
<description><![CDATA[Notepad++ là trình biên tập mã nguồn miễn phí (và là công cụ thay thế cho Notepad), hỗ trợ nhiều ngô]]></description>
<content:encoded><![CDATA[Notepad++ là trình biên tập mã nguồn miễn phí (và là công cụ thay thế cho Notepad), hỗ trợ nhiều ngô]]></content:encoded>
</item>
<item>
<title><![CDATA[AntiNERD v 3.0]]></title>
<link>http://redskull92.wordpress.com/2009/09/16/antinerd-v-3-0/</link>
<pubDate>Wed, 16 Sep 2009 00:49:57 +0000</pubDate>
<dc:creator>Red Skull</dc:creator>
<guid>http://redskull92.wordpress.com/2009/09/16/antinerd-v-3-0/</guid>
<description><![CDATA[Il programma AntiNERD è stato aggiornato alla versione 3.0 Ho fixato alcuni bug ed ho fatto in modo ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:center;"><img class="alignnone" title="http://redskull92.files.wordpress.com/2009/03/nerd.jpg?w=193&#038;h=329#38;h=331" src="http://redskull92.files.wordpress.com/2009/03/nerd.jpg?w=193&#038;h=329#38;h=331" alt="" width="193" height="329" /></p>
<p style="text-align:left;"><!--more-->Il programma AntiNERD è stato aggiornato alla versione <span style="color:#ff0000;">3.0</span></p>
<p style="text-align:left;">Ho fixato alcuni bug ed ho fatto in modo che il programma contrastasse (anche se per poco) il taskmanager,infatti chiudendo il processo il programma viene riaperto continuando la sessione. (continuando il suo compito); Ovviamente è bypassabile facilmente da chi sa maneggiare un pò + gli strumenti, ma visto che il programma è rivolto ai genitori che vogliono tenere sotto controllo i propri bambini penso non si dovrebbero avere problemi.</p>
<p style="text-align:left;">Potete leggere tutte le info <a href="http://redskull92.wordpress.com/software/antinerd/" target="_blank">quì</a></p>
<p style="text-align:left;">ovviamente per qualsiasi bug/curiosità/info io sono QUI&#8217; <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="text-align:left;">ps: nell&#8217;archivio potete trovare sorgenti ed eseguibile.</p>
<p style="text-align:left;"><!--more-->Torna alla <a href="http://redskull92.wordpress.com" target="_self">HomePage</a></p>
<p style="text-align:left;">
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Teaching to write a Bot [Part 2]]]></title>
<link>http://unkn0wn0x.wordpress.com/2009/09/08/teaching-to-write-a-bot-part-2/</link>
<pubDate>Tue, 08 Sep 2009 16:15:13 +0000</pubDate>
<dc:creator>unkn0wn0x</dc:creator>
<guid>http://unkn0wn0x.wordpress.com/2009/09/08/teaching-to-write-a-bot-part-2/</guid>
<description><![CDATA[Hey guys, I have got some time now and want to share Part 2 to you. I hope you read Part 1. Okay, yo]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Hey guys,  I have got some time now and want to share Part 2 to you. I hope you read Part 1. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   Okay, you&#8217;ve got the <strong>BlackMagicAu3</strong> and <strong>ConstantsWoW. </strong>Go to your new script and start coding. The first thing that I prefer is a GUI. (Graphical User Interface) You can design one with Koda, but I won&#8217;t explain it cause for this tutorial it&#8217;s better if u use the same GUI that I use.  You need 4 <strong>includes</strong> for our Graphical User Interface. Add them to the top of your code.</p>
<blockquote><p>#include &#60;ButtonConstants.au3&#62;</p>
<p>#include &#60;EditConstants.au3&#62;</p>
<p>#include &#60;GUIConstantsEx.au3&#62;</p>
<p>#include &#60;WindowsConstants.au3&#62;</p></blockquote>
<p>After that you create the Form , 2 Buttons and a Edit (used for Output Log):</p>
<blockquote><p>While 1<br />
nMsg = GUIGetMsg()<br />
Switch $nMsg<br />
Case $GUI_EVENT_CLOSE<br />
Exit<br />
Case $StartButton<br />
; Add here something later<br />
Case $StopButton<br />
;Add here something later<br />
EndSwitch<br />
WEnd</p></blockquote>
<p>If you hit F5 and compile it then you should see a new Window.</p>
<p>It should look like this you see here. <img class="alignleft" title="Main - Form Screenshot" src="http://wowgathermate.wo.ohost.de/Unkn0wn0x/MainForm.png" alt="" width="133" height="173" />You can go through the code and think what the &#8220;Case&#8221;&#8217;s are. I added a comment to that lines , this two cases are very important for the future. Tomorrow i will show you how to read X Y Z Cooardinates and how to  move. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Just go through the code and learn and try to understand. If you have questions feel free to ask.</p>
<p>You can get the whole source code here : <a href="http://wowgathermate.wo.ohost.de/Unkn0wn0x/">http://wowgathermate.wo.ohost.de/Unkn0wn0x/</a> and all other needed files.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Top 10 Virus Indonesia: August 2009]]></title>
<link>http://kampusciamis.wordpress.com/2009/08/27/top-10-virus-indonesia-august-2009/</link>
<pubDate>Thu, 27 Aug 2009 19:12:07 +0000</pubDate>
<dc:creator>kampusciamis</dc:creator>
<guid>http://kampusciamis.wordpress.com/2009/08/27/top-10-virus-indonesia-august-2009/</guid>
<description><![CDATA[Conficker still ranked at the top, followed by a re-entry Recycler in the chart and immediately leap]]></description>
<content:encoded><![CDATA[Conficker still ranked at the top, followed by a re-entry Recycler in the chart and immediately leap]]></content:encoded>
</item>
<item>
<title><![CDATA[Enlist AutoIT to Perform Data Manipulation [Tips &amp; Tricks]]]></title>
<link>http://forcecertified.com/2009/08/27/enlist-autoit-to-perform-data-manipulation-tips-tricks/</link>
<pubDate>Thu, 27 Aug 2009 16:17:00 +0000</pubDate>
<dc:creator>ForceCertified.com</dc:creator>
<guid>http://forcecertified.com/2009/08/27/enlist-autoit-to-perform-data-manipulation-tips-tricks/</guid>
<description><![CDATA[&#160; When you work with data, sometimes you need your own personal data masseuse (I could use one ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>&#160;</p>
<p>When you work with data, sometimes you need your own personal data masseuse (I could use one for my back too!).&#160; Thoughts like “if only I could put all of these entries on one line“ or “now if only I could put a space in every 15 characters” or “if I have to hit the blank key followed by the blank key any more blanking times, I am going to blank someone” often creep to mind.&#160; The good news is that you can build a tool to tackle a lot of these repetitive tasks using AutoIT, and the language is very accessible.</p>
<p>&#160;</p>
<p><strong>Example</strong></p>
<p>Compressing a list into a shorter comma-separated list (used this for mass transfer accounts wizard when names did not match exactly and did not have IDs):</p>
<p><a href="http://forcecertified.files.wordpress.com/2009/08/image10.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://forcecertified.files.wordpress.com/2009/08/image_thumb10.png?w=648&#038;h=346" width="648" height="346" /></a> </p>
<p>The very simple code to make this happen:</p>
<p><a href="http://forcecertified.files.wordpress.com/2009/08/image11.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://forcecertified.files.wordpress.com/2009/08/image_thumb11.png?w=424&#038;h=242" width="424" height="242" /></a> </p>
<p>All I would do is run this script and hop into notepad at the start of the file.&#160; You can change the loop settings to match the length of the file, and of course make any changes to keystroke combinations.&#160; You can even get fancy and program it to automatically change to notepad.&#160; I was more comfortable with granular control.</p>
<p>&#160;</p>
<p><strong>Conclusion</strong></p>
<p>The are an infinite number of ways to use this program.&#160; With a little imagination and some basic understanding, this can be another great tool to add to the toolkit.</p>
<p>I would recommend downloading the AutoIT Full Installation and the Script Editor.&#160; I’ve also included the sample script shown above:</p>
<p><a href="http://www.autoitscript.com/autoit3/downloads.shtml">AutoIT Download Page</a></p>
<p><a href="http://www.box.net/shared/4iyk2p84g7">Sample Script</a></p>
<p>Check out the <a href="http://www.autoitscript.com/autoit3/docs/">online documentation</a>, and here is a <a href="http://www.marksanborn.net/howto/introduction-to-autoit/">good introduction</a> including a list of commonly used keys.&#160; Happy scripting!</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[주간 보고 파일 자동으로 만들기]]></title>
<link>http://kanese.wordpress.com/2009/08/07/116/</link>
<pubDate>Fri, 07 Aug 2009 06:28:06 +0000</pubDate>
<dc:creator>kane</dc:creator>
<guid>http://kanese.wordpress.com/2009/08/07/116/</guid>
<description><![CDATA[이번 주 업무 보고서 파일을 자동으로 만드는 스크립트를 작성했다. 주간 보고서를 개별 파일로 관리하는데, 매주 업무 보고서를 작성할 때마다 지난 주 업무 보고서를 복사해서 앞에 붙]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>이번 주 업무 보고서 파일을 자동으로 만드는 스크립트를 작성했다. 주간 보고서를 개별 파일로 관리하는데, 매주 업무 보고서를 작성할 때마다 지난 주 업무 보고서를 복사해서 앞에 붙은 사본 표시 지우고, 날짜를 맞게 고치는 일이 별거 아니지만 은근히 귀찮다. 그래서 새로운 이름으로 파일을 복사하는 AutoIt v3 스크립트를 만들었다.</p>
<pre style="padding-left:30px;">#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.3.0.0
 Author:         myName

 Script Function:
 Template AutoIt script.

#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here

Dim $dst
Dim $pattern = "(.*)서상원_(..)주차_(......)_(.)주-취합용.gul"
$path = StringRegExpReplace($CmdLine[1], $pattern, "\1")
$yweek = StringRegExpReplace($CmdLine[1], $pattern, "\2")
$ym = StringRegExpReplace($CmdLine[1], $pattern, "\3")
$mweek = StringRegExpReplace($CmdLine[1], $pattern, "\4")
$dst = $path &#38; "서상원_" &#38; $yweek + 1 &#38; "주차_" &#38; $ym &#38; "_" &#38; $mweek + 1 &#38; "주-취합용.gul"
;MsgBox(0, "test", $dst)
FileCopy($CmdLine[1], $dst)</pre>
<p>위 스크립트를 컴파일해서 파일에 연결시켜두고, 실행하면 새 파일이 생긴다.</p>
<p>하는 일은 아주 간단하다. 다른 이름으로 파일을 복사하는 것 뿐이다. 그리고 완전히 자동화된 버전도 아니다. 한 달이 끝나면 주차를 다시 처음으로 돌려줘야 하는데, 언제 달이 끝나는지 몰라서 그 때는 전처럼 수동으로 복사해야 한다.</p>
<p>반쯤은 연습삼아 만든거지만, 잡무는 최대한 자동화해야 인생이 편하다.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Simple Object]]></title>
<link>http://unkn0wn0x.wordpress.com/2009/07/31/simple-object/</link>
<pubDate>Fri, 31 Jul 2009 20:16:29 +0000</pubDate>
<dc:creator>unkn0wn0x</dc:creator>
<guid>http://unkn0wn0x.wordpress.com/2009/07/31/simple-object/</guid>
<description><![CDATA[This is my second post now and I want to show you my little Object Dumper. It&#8217;s a very simple ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>This is my second post now and I want to show you my little Object Dumper. It&#8217;s a very <strong>simple</strong> Objectdumper. If I say simple I mean it. (just a little notice) It scans the World of Warcraft Memory for every Object near you and it&#8217;ll displays the <em>Objectname, X Coord, Y Coord, Z Coord. </em>You can use a simplre refresh by pressing <strong>F1</strong> .</p>
<p>Screenshot : <img class="aligncenter" title="Object Dumper Preview" src="http://img339.imageshack.us/img339/6360/screenkiz.jpg" alt="" width="366" height="504" /></p>
<p>How to Use : Login into World of Warcraft. Start the Objectdumper. Enjoy.</p>
<p>Sourcecode Download (includes executable) :  <a href="http://www.mediafire.com/?sharekey=954b0104a771c192e5c3dee5769931ece04e75f6e8ebb871" target="_blank">http://www.mediafire.com/?sharekey=954b0104a771c192e5c3dee5769931ece04e75f6e8ebb871</a></p>
<p>Feel free to use the source. It may help.</p>
<p>P.s.: More tool will follow. (I start with easy simple tools.. and if i get more visits I&#8217;ll show you what you can do with WoW. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  )</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Presentations - Keeping your screen active]]></title>
<link>http://flagit.wordpress.com/2009/07/20/presentations-keeping-your-screen-active/</link>
<pubDate>Mon, 20 Jul 2009 08:52:05 +0000</pubDate>
<dc:creator>thermalspindle</dc:creator>
<guid>http://flagit.wordpress.com/2009/07/20/presentations-keeping-your-screen-active/</guid>
<description><![CDATA[Power saving options on computers are something that I personally think are great.  They not only he]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Power saving options on computers are something that I personally think are great.  They not only help reduce carbon footprints, but they also help draw out even more life from your laptop battery.   One of the main ways in which this is done (others being things such as disabling hardware) is by having an inactivity option that turns off the screen and the hard disk after a period of inactivity.  Unfortunately there are times when this isn&#8217;t something you want.  The primary example of this is when you are giving a presentation.</p>
<p>The typical way of overriding this in Windows is to change what power saving scheme is being used through the Windows control panel or a third party application that links directly to these options.  However sometimes end users don&#8217;t have access to this.</p>
<p>This typically occurs where a group policy has been applied to stop users &#8216;tinkering&#8217; with the power saving schemes.  Users with access can amend or delete power saving schemes which can lead to complications with machines and so it is not that uncommon to restrict access.</p>
<p>Whilst applications such as Microsoft PowerPoint can lead the OS into knowing that it should keep things like monitors on if a presentation is in a browser or some other &#8220;power unaware&#8221; application, then power saving actions can kick in.</p>
<p>I decided to apply a brute force solution to this by creating an AutoHotKey script to send a key press to the OS at regular intervals.  By default it sends a <em>Shift</em> key press as this is least likely to have any impact on any application, but this can be modified along with the frequency with which it is sent by the use of a settings file.  The settings file also includes an option to choose whether to start sending key presses as soon as it is run.</p>
<p>The code for the script is given at the end of this post, but  I have also compiled this into a <a href="http://www.orbitfiles.com/download/id4376417799.html">stand alone executable</a> that you could even pop onto your flash drive if you&#8217;re going to be presenting on someone else&#8217;s PC.  Similarly you could add it into your start-up group (with it set not to auto start sending key presses) so it is always there when you need it.</p>
<p>The script places a monitor icon in the system tray.  When it is black power saving actions through inactivity will take place.  When it is blue, key presses will be sent.  Right clicking on the icon will display a menu with an override option.  Selecting this option will place a check mark next to it which will set the icon blue and initiate the override mode.  Selecting the option again will uncheck it, set the icon black and turn off the override mode.</p>
<p>Only one setting is available on the settings menu.  This is another check item and determines whether override mode should be enabled immediately when the utility is first started.</p>
<p>The utility looks for a settings file called <em>ActiveDisplay.ini</em> in the folder from which the utility is being run.  If it does not exist, the utility will use its default settings which match the settings given in this example file:</p>
<pre>[Settings]
;Set to 1 to enable override mode at start-up and 0 to disable.
EnableOnRun=0
;Specify what characters should be sent.  Use {} for special key strokes
KeyStroke={SHIFT}
;Number of milliseconds between sending the key strokes (120,000 milliseconds : 2 minutes)
Period=120000</pre>
<p>If you want to tweak the script to meet your own needs you can get the details below and use your own icons.  If you want to get the compiled version you can <a href="http://www.orbitfiles.com/download/id4376417799.html">download it for free</a>.</p>
<pre class="brush: vb;">
#Persistent
#SingleInstance

;Read in settings
iniread, EnableAtStartup, %A_ScriptDir%\ActiveDisplay.ini, Settings, EnableOnRun, 0
iniread, KeyStroke, %A_ScriptDir%\ActiveDisplay.ini, Settings, KeyStroke, {Shift}
iniread, Period, %A_ScriptDir%\ActiveDisplay.ini, Settings, Period, 120000

;Create the tray menu
menu, tray, add, Override, Override
Menu, SettingsMenu, add, EnabledAtStartup
Menu, tray, add, Settings, :SettingsMenu
menu, tray, add, About
menu, tray, add, Exit
menu, tray, nostandard

;Initialise
;Time to do something that seems crazy - we'll flip these and then call the menu selection routines where it will get flipped back
EnableTimer := EnableAtStartup
EnableAtStartup := Not(EnableAtStartup)
GoSub, EnabledAtStartup
EnableTimer := Not(EnableTimer)
GoSub, Override
return

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

SendKeyStroke:
Send %KeyStroke%
return

Override:
EnableTimer := Not(EnableTimer)
If EnableTimer
{
 menu, tray, Check, Override
 menu, tray, icon, C:\Icons\Monitor On.ico
 menu, tray, tip, Default Power Saving Mode Overridden
 SetTimer, SendKeyStroke, %Period%
}
Else
{
 menu, tray, UnCheck, Override
 menu, tray, icon, C:\Icons\Monitor Off.ico
 menu, tray, tip, Default Power Saving Mode
 SetTimer, SendKeyStroke, Off
}
return

EnabledAtStartup:
EnableAtStartup := Not(EnableAtStartup)
If EnableAtStartup
{
 menu, SettingsMenu, Check, EnabledAtStartup
 iniwrite, 1, %A_ScriptDir%\ActiveDisplay.ini, Settings, EnableOnRun
}
Else
{
 menu, SettingsMenu, UnCheck, EnabledAtStartup
 iniwrite, 0, %A_ScriptDir%\ActiveDisplay.ini, Settings, EnableOnRun
}
return

About:
MsgBox, 0, About Active Display, Version 1.0`nCopyright 2009 RebootIT`n`nhttp://flagit.wordpress.com
return

Exit:
ExitApp
</pre>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Smurf's Autpot]]></title>
<link>http://dragonihax.wordpress.com/2009/07/20/smurfs-autpot/</link>
<pubDate>Mon, 20 Jul 2009 03:33:15 +0000</pubDate>
<dc:creator>MilitarySmurf</dc:creator>
<guid>http://dragonihax.wordpress.com/2009/07/20/smurfs-autpot/</guid>
<description><![CDATA[Bypass Required: Maybe (I don&#8217;t need one but some people report that it does) All this does is]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong>Bypass Required: <a href="http://en.wordpress.com/tag/bypass/">Maybe</a></strong> (I don&#8217;t need one but some people report that it does)</p>
<p>All this does is monitor your health and mp, and use pots when necessary.</p>
<p><!--more-->Instructions:</p>
<ol>
<li>Download the <a href="http://216.245.214.50/~simplir/dragonica/autopotter.exe">autopotter</a></li>
<li>Run Dragonica (with bypass)</li>
<li>Run autopotter.exe</li>
<li>Place HP Pots in hotkey 1</li>
<li>Place MP Pots in hotkey 2</li>
</ol>
<p>HP Pots will be consumed when HP is at 80% whereas MP pots will be consumed at 50% MP.  If there is enough feedback, I&#8217;ll probably create a version whereby you can configure which hotkeys pots are at and also at what percentage to heal.</p>
<p>Enjoy~</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Skullbox]]></title>
<link>http://pasarila.wordpress.com/2009/07/18/skullbox/</link>
<pubDate>Sat, 18 Jul 2009 20:43:28 +0000</pubDate>
<dc:creator>pasarila</dc:creator>
<guid>http://pasarila.wordpress.com/2009/07/18/skullbox/</guid>
<description><![CDATA[Poate am mai vorbit despre skullbox in diferite posturi, insa de aceasta data voi dedica un post int]]></description>
<content:encoded><![CDATA[Poate am mai vorbit despre skullbox in diferite posturi, insa de aceasta data voi dedica un post int]]></content:encoded>
</item>
<item>
<title><![CDATA[Notepad++ 5.4.5]]></title>
<link>http://netvietnam.org/2009/07/15/notepad-5-4-5/</link>
<pubDate>Wed, 15 Jul 2009 12:23:02 +0000</pubDate>
<dc:creator>Nhân Mã</dc:creator>
<guid>http://netvietnam.org/2009/07/15/notepad-5-4-5/</guid>
<description><![CDATA[Notepad++ là trình biên tập mã nguồn miễn phí (và là công cụ thay thế cho Notepad), hỗ trợ nhiều ngô]]></description>
<content:encoded><![CDATA[Notepad++ là trình biên tập mã nguồn miễn phí (và là công cụ thay thế cho Notepad), hỗ trợ nhiều ngô]]></content:encoded>
</item>

</channel>
</rss>
