Start building your web presence at Rs. 499.00/mo

Start building your web presence at Rs. 499.00/mo
Web Hosting Coupon Archives

Error getting AutoITx3.Dll

Error getting AutoITx3.Dll

Error getting AutoITx3.Dll

Normally you can get all Methods and Properties of any registered COM object using the Get-member cmdlet.
But occasionally you get this error.
image
The reason is that you have registered the COM object only as x32 bit and not as x64 bit.
2 ways to solve this.
First register both x32 and x64 bit Dll’s.
image
After registering both versions this was the result.
1
2
3
Cls
New-Object -com AutoItX3.Control | Get-Member
image
Lucky for us that AutoIT ships 2 versions. But most of the DLL are either x32 or x64 bit ?
So you can get it running using the x32 bit if Powershell using the x32 bit of the COM Dll and the same for x64.
Or try a hack to register the x32 Bit like this :
The 32-bit one goes into C:\Windows\SysWOW64, and the 64-bit DLL goes into C:\Windows\System32.
And appropriate registry keys in the appropriate location

Java and AutoIt - Automating the calculator application using autoitx4java

Java and AutoIt - Automating the calculator application using autoitx4java

autoitx4java is useful for testing the Windows applications using the AutoIt.

For more information on 'autoitx4java' check the url https://code.google.com/p/autoitx4java/

1. Download 'AutoItX4Java.jar'.
https://code.google.com/p/autoitx4java/downloads/list

2. Copy the 'AutoItX4Java.jar' file to the 'lib' folder of the project(i.e. Eclipse IDE Project).

3. Download JACOB.


4. Extract the 'jacob-1.18-M2.zip' file.

5. Copy the below file in the 'lib' folder of the project.





7. Extract the 'autoit-v3.zip' file.

8. AutoIt Inspector - for inspecting the UI elements.


9.Set the java build path for 
- AutoItX4Java.jar
- jacob.jar



10. Create a java class.


11. Execute the program(Sample Program is added in the end of the page).

Note: Unable to execute the program, since AutoIt is not registered in the windows registry

Below steps guides you in adding AutoIt to the windows registry.
12. Open the 'CommandPrompt' as 'Administrator'



13. After extracting the 'autoit-v3.zip' file, navigate to the folder 'autoit-v3\install\AutoItX' in the extracted zip file.

Navigate to the 'autoit-v3\install\AutoItX'(i.e. extracted 'autoit-v3.zip') in the command prompt.

14. Add the 'AutoIt' to the registry.
If you are using 'Java 32bit', run the below command in the 'Command Prompt':
regsvr32.exe AutoItX3.dll


If you are using 'Java 64bit', run the below command in the 'Command Prompt':
regsvr32.exe AutoItX3_x64.dll


15.Execute the program again(Sample Program is added in the end of the page), after setting the AutoIt in windows registry.



you can download the below sample code from the repository, click link AutoIt Proj.zip to download.

Sample Program:
package autoit;

import java.io.File;
import java.util.HashMap;
import java.util.Map;

import autoitx4java.AutoItX;

import com.jacob.com.LibraryLoader;
public class CalculatorTest {
//Choose the 'JACOB' dll based on the JVM bit version.
final String JACOB_DLL_TO_USE = System.getProperty("sun.arch.data.model").contains("32") ?
  "jacob-1.18-M2-x86.dll" : "jacob-1.18-M2-x64.dll";

final String APPLICATION_TITLE = "Calculator";
final String APPLICATION = "calc.exe";
private AutoItX control;

private Map<Integer,String> calcNumPad_ObjectRepository;
private Map<String,String> calcOperPad_ObjectRepository;
{
//Object Repository for Calculator Numbers
calcNumPad_ObjectRepository = new HashMap<Integer,String>();
calcNumPad_ObjectRepository.put(0, "130");
calcNumPad_ObjectRepository.put(1, "131");
calcNumPad_ObjectRepository.put(2, "132");
calcNumPad_ObjectRepository.put(3, "133");
calcNumPad_ObjectRepository.put(4, "134");
calcNumPad_ObjectRepository.put(5, "135");
calcNumPad_ObjectRepository.put(6, "136");
calcNumPad_ObjectRepository.put(7, "137");
calcNumPad_ObjectRepository.put(8, "138");
calcNumPad_ObjectRepository.put(9, "139");

//Object Repository for Calculator Operators
calcOperPad_ObjectRepository = new HashMap<String,String>();
calcOperPad_ObjectRepository.put("+", "93");
calcOperPad_ObjectRepository.put("-", "94");
calcOperPad_ObjectRepository.put("*", "92");
calcOperPad_ObjectRepository.put("/", "91");
calcOperPad_ObjectRepository.put("=", "121");
calcOperPad_ObjectRepository.put("clear", "81");
//Load the jacob dll.
File file = new File(System.getProperty("user.dir")+"\\lib", JACOB_DLL_TO_USE);
System.setProperty(LibraryLoader.JACOB_DLL_PATH, file.getAbsolutePath());
control = new AutoItX();
}
public static void main(String[] args) throws InterruptedException {
CalculatorTest ct = new CalculatorTest();
//Launch 'Calculator' application.
ct.control.run("calc.exe");
ct.control.winActivate("Calculator");
ct.control.winWaitActive("Calculator");

//Perform Addition
System.out.println("Addition of 1,3 - Actual Results: "+ct.add(1,3)+",  Expected Results: 4");
System.out.println("Addition of 17,3 - Actual Results: "+ct.add(17,3)+",  Expected Results: 20");

//Perform Subtraction
System.out.println("Subtraction of 5,1 - Actual Results: "+ct.subtraction(5,1)+",  Expected Results: 4");
System.out.println("Subtraction of 90,7 - Actual Results: "+ct.subtraction(90,7)+",  Expected Results: 83");
//Perform Multiplication
System.out.println("Multiplication of 8,2 - Actual Results: "+ct.multiplication(8,2)+",  Expected Results: 16");
System.out.println("Multiplication of 15,4 - Actual Results: "+ct.multiplication(15,4)+",  Expected Results: 60");
//Perform Division
System.out.println("Division of 9,3 - Actual Results: "+ct.division(9,3)+",  Expected Results: 3");
System.out.println("Division of 100,2 - Actual Results: "+ct.division(100,2)+",  Expected Results: 50");
//Close 'Calculator' application.
ct.control.winClose("Calculator");
}
//Perform 'Addition'.
public int add(int a, int b) throws InterruptedException{
performOperation("clear");
clickNumber(a);
performOperation("+");
clickNumber(b);
performOperation("=");
return Integer.parseInt(getResults().trim());
}
//Perform 'Subtraction'.
public int subtraction(int a, int b) throws InterruptedException{
performOperation("clear");
clickNumber(a);
performOperation("-");
clickNumber(b);
performOperation("=");

return Integer.parseInt(getResults().trim());
}
//Perform 'Multiplication'.
public int multiplication(int a, int b) throws InterruptedException{
performOperation("clear");
clickNumber(a);
performOperation("*");
clickNumber(b);
performOperation("=");

return Integer.parseInt(getResults().trim());
}

//Perform 'Division'.
public int division(int a,int b) throws NumberFormatException, InterruptedException{
performOperation("clear");
clickNumber(a);
performOperation("/");
clickNumber(b);
performOperation("=");
return Integer.parseInt(getResults().trim());
}
//Fetch the results after performing the operations
private String getResults() throws InterruptedException{
Thread.sleep(1000);
return control.winGetText(APPLICATION_TITLE);
}
//Click the Number in the calculator application.
private void clickNumber(int number) throws InterruptedException{

String sNumber = String.valueOf(number);
for(int i = 0; i < sNumber.length(); i++) {
    control.controlClick(APPLICATION_TITLE, "", calcNumPad_ObjectRepository.get(Character.digit(sNumber.charAt(i), 10)));
    Thread.sleep(1000);
}
}
//Perform operations.
private void performOperation(String controlID) throws InterruptedException{
control.controlClick(APPLICATION_TITLE, "", calcOperPad_ObjectRepository.get(controlID));
Thread.sleep(1000);
}
}

Troubleshooting: 
Make sure you are using the correct version of Jacob and AutoItX3 dlls. Since both come in x86 and x64 versions.

UDF Provides Automation Support For Java Applications - AUTO IT

UDF Provides Automation Support For Java Applications - AUTO IT
 UDF provides automation support for Java applications
.
This UDF currently automates standalone applications and browser-based applets, developed in either Swing or the Abstract Window Toolkit (AWT).

REQUIREMENTS:
  • AutoIt3 3.2 or higher
  • Java Runtime Environment (JRE) 1.4 or above
  • Java Access Bridge for the Microsoft Windows Operating System
  • Microsoft Visual C++ 2008 Redistributable
  • AutoIT for Java Access dynamically linked library (DLL)
  • Tesseract UDF 0.6
  • Manual check and update of the Java Access Bridge
INSTALLATION:
To install the latest Java Runtime Environment (JRE):
  • Open the web page http://java.com/en/download/manual.jsp.
  • Click Windows XP/Vista/2000/2003 Offline.
  • Save the file to your computer and run it (ie. jre-6u11-windows-i586-p-s.exe).
  • Follow the installation instructions.
  • Restart your computer when prompted.
To install the Java Access Bridge for the Microsoft Windows Operating System:
  • Open the web page Java Access Bridge.
  • Click Download Java Access Bridge 2.0.1.
  • Click I agree to the Software License Agreement.
  • Click Continue.
  • Click accessbridge-2_0_1.exe.
  • Save the file to a location on your computer.
  • Run the file accessbridge-2_0_1.exe from your computer.
  • Follow the installation instructions.
  • Restart your computer when prompted.
To install the Microsoft Visual C++ 2008 Redistributable:
  • Open the web page http://www.microsoft.com/downloads/details.aspx?FamilyID=9b2da534-3e03-4391-8a4d-074b9f2bc1bf&displaylang=en.
  • Click Download.
  • Save the file to a location on your computer.
  • Run the file vcredist_x86.exe from your computer.
  • Follow the installation instructions.
To install the AutoIT for Java Access dynamically linked library (DLL):
  • Right-click on the link AutoITJavaAccess.dll below.
  • Save the file to your Windows System32 folder (ie. C:\WINDOWS\system32).
To install the Tesseract UDF 0.6:
To manually check and update the Java Access Bridge:
Note:- This step should be performed in addition to the install of the Java Access Bridge above.
  • Using Windows Explorer, go to your Java folder C:\Program Files\Java.
  • Open the first subfolder (ie. j2re1.4.2_19).
  • Go to the subfolder lib\ext.
  • If the files access-bridge.jar and jaccess.jar already exist then go to step 9 below.
  • Copy the file access-bridge.jar to this subfolder (ie. C:\Program Files\Java\jre1.4.2_19\lib\ext).
  • If the subfolder in step 2 above starts with j2re1.2 or jre1.2, then copy the file jaccess-1_2.jar to this subfolder (ie. C:\Program Files\Java\jre1.4.2_19\lib\ext).
  • If the subfolder in step 2 above starts with j2re1.3 or jre1.3, then copy the file jaccess-1_3.jar to this subfolder (ie. C:\Program Files\Java\jre1.4.2_19\lib\ext).
  • If the subfolder in step 2 above starts with j2re1.4 or jre1.4, then copy the file jaccess-1_4.jar to this subfolder (ie. C:\Program Files\Java\jre1.4.2_19\lib\ext).
  • Repeat steps 3 to 8 for every subfolder within the Java folder.
To confirm that the installation process was successful:
  • Using Windows Explorer, go to C:\Program Files\Java Access Bridge and double-click JavaFerret.exe.
  • In the Java Ferret window, select the menu item JavaEvents -> Track Mouse Events.
  • Drag your mouse over any Java application, and the Java Ferret window should dynamically update with information about the Java objects as you drag your mouse over them.
LIST OF FUNCTIONS:

  Quote
_JavaAttachAndWait($win_title)
_JavaObjValueGet($autoit_cntl_id, $javaferret_obj_name = "", $javaferret_obj_role = "", $instance_num = 1)
_JavaObjIndexGet($autoit_cntl_id, $javaferret_obj_name = "", $javaferret_obj_role = "", $instance_num = 1)
_JavaObjValueSet($autoit_cntl_id, $javaferret_obj_name, $javaferret_obj_role, $object_value, $instance_num = 1, $partial = 1, $get_last_capture = 0, $delimiter = "", $expand = 1, $scrolling = 1, $cleanup = 1, $max_scroll_times = 5, $scale = 2, $left_indent = 0, $top_indent = 0, $right_indent = 0, $bottom_indent = 0, $show_capture = 0)
_JavaObjSelect($autoit_cntl_id, $javaferret_obj_name = "", $javaferret_obj_role = "", $instance_num = 1)
_JavaObjValuesGet($autoit_cntl_id, $javaferret_obj_name = "", $javaferret_obj_role = "", $instance_num = 1, $get_last_capture = 0, $delimiter = "", $expand = 1, $scrolling = 1, $cleanup = 1, $max_scroll_times = 5, $scale = 2, $left_indent = 0, $top_indent = 0, $right_indent = 0, $bottom_indent = 0, $show_capture = 0)
_JavaObjDeselect($autoit_cntl_id, $javaferret_obj_name = "", $javaferret_obj_role = "", $instance_num = 1)
_JavaObjPropertyGet($autoit_cntl_id, $javaferret_obj_name = "", $javaferret_obj_role = "", $instance_num = 1, $property_name = "")
_JavaTableRowSelect($autoit_cntl_id, $javaferret_obj_name = "", $instance_num = 1, $javaferret_panel_name = "", $panel_instance_num = 1, $col_names = "", $col_values = "")
_JavaTableCellSelect($autoit_cntl_id, $javaferret_obj_name = "", $instance_num = 1, $javaferret_panel_name = "", $panel_instance_num = 1, $col_names = "", $col_values = "", $col_name_select = "")
_JavaTableCellValueGet($autoit_cntl_id, $javaferret_obj_name = "", $instance_num = 1, $javaferret_panel_name = "", $panel_instance_num = 1, $col_names = "", $col_values = "", $col_name_select = "")
_JavaTableCellValueSet($autoit_cntl_id, $javaferret_obj_name = "", $instance_num = 1, $javaferret_panel_name = "", $panel_instance_num = 1, $col_names = "", $col_values = "", $col_name_select = "", $object_value = "")

Auto IT Complete Commands with Directories & Key

Auto IT Complete Commands with Directories & Key

How To: Learn Basic AutoIt

How to AutoIt!

Please view this guide here as well its for after you've complete this.


Greetings all Glyn here, this is my first programming guide I have ever posted so I hope you all like it. I put a lot of work into it and I think it will help everyone out a little in the wonderful world of scripting.


First off all, You need to download AutoIT setup and scite editor by clicking on these two links (one is the actual Autoit program and the other is a base of tut's)

Auto IT Setup 
-Download 1

and
Auto IT Scite Editor 
-Download 2
Now before we really start I want to start with a Q/A piece and a little list of various commands because you will have absolutely no idea what your doing if you don't understand the basics.


Q-What is Autoit?


A-AutoIt v3 is a freeware BASIC-like scripting language designed for automating the Windows GUI and general scripting. It uses a combination of simulated 

keystrokes, mouse movement and window/control manipulation in order to automate tasks in a way not possible or reliable with other languages (e.g. VBScript 

and SendKeys). AutoIt is also very small, self-contained and will run on all versions of Windows out-of-the-box with no annoying "runtimes" required!


Q-What can I do with Autoit?


A-You can create, alter or delete your very own programs. For instance the new Autoit V3 has the option of making GUI's (Graphical User Interface) which can be the basis on a major program you might be working on. It can also be used for much more (to much to explain) but remember the sky is teh limit.


Q-What sort of programs have been created by Autoit?

A-Well for one, Noggit (Autoit) see the resemblance. Made by Maul05-the god of autoit scripting. There have been a couple other well known programs made but I'm not sure most here people would know them.

Q-Whats the difference between Autoit scripting and C++ or Javascript?



A-These languages are different in their own way. Each different script will have a different end result. Some languages take ages to learn as well (C++ for example).

Q-What are the current technical linits of Autoit?


A- As follows:
Maximum length of a single script line: 4,095
Maximum string length: 2,147,483,647 characters

Number range (floating point): 1.7E–308 to 1.7E+308 with 15-digit precision
Number range (integers): 64-bit signed integer
Hexadecimal numbers: 32-bit signed integer (0x80000000 to 0x7FFFFFFF)

Arrays: A maximum of 64 dimensions and/or a total of 16 million elements
Maximum depth of recursive function calls: 384 levels

Maximum number of variables in use at one time: No limit
Maximum number of user defined functions: No limit

Maximum number of GUI windows: 1024
Maximum number of GUI controls per window: 4096 

I will add more if more questions appear later on.

A list of different and useful commands:

Run - Executes a .exe program
 

Sleep(insert # here) - Makes the program hold
 

GUIcreate to GUIswitch - All useful for makeing and altering GUI's

Execute - Executes an expression

Beep - Does exactly as it means

Mousemove(10, 100) - Moves the mouse 10 from the left and 100 from top

Exit - Obvious

Exitloop - Ends a loop

Binary - Returns the Binary Representation of and Expression

Call - Calls a user-defined function

Tan - Calculates the Tangent of a Number

Send - This will send simulated keystrokes to a window

Log - Calculates the natural logarithm of a number

And now for a list of some of the Macro's:

@AppDataCommonDir - Path to Application Data 

@AppDataDir - Path to current user's Application Data 

@AutoItExe - The full path and filename of the AutoIt executable currently running. For compiled 
 scripts it is the path of the compiled script. 

@AutoItPID - PID of the process running the script. 

@AutoItVersion - Version number of AutoIt such as 3.0.81.0 

@COM_EventObj - Object the COM event is being fired on. Only valid in a COM event Function. 

@CommonFilesDir - Path to Common Files folder 

@Compiled - Returns 1 if script is a compiled executable; otherwise, returns 0. 

@ComputerName - Computer's network name. 

@ComSpec - value of %comspec%, the SPECified secondary COMmand interpreter; 
primarily for command line uses, e.g. Run(@ComSpec & " /k help | more") 

@CR - Carriage return, Chr(13); sometimes used for line breaks. 

@CRLF = @CR & @LF ;occasionally used for line breaks. 

@DesktopCommonDir - Path to Desktop 

@DesktopDir - Path to current user's Desktop 

@DesktopHeight - Height of the desktop screen in pixels. (vertical resolution) 

@DesktopWidth - Width of the desktop screen in pixels. (horizontal resolution) 

@DesktopDepth - Depth of the desktop screen in bits per pixel. 

@DesktopRefresh - Refresh rate of the desktop screen in hertz. 

@DocumentsCommonDir - Path to Documents 

@error - Status of the error flag. See the SetError function. 

@exitCode - Exit code as set by Exit statement. 

@exitMethod - Exit method. See the Func OnAutoItExit(). 

@extended - Extended function return - used in certain functions such as StringReplace. 

@FavoritesCommonDir - Path to Favorites 

@FavoritesDir - Path to current user's Favorites 

@GUI_CtrlId - Last click control identifier. Only valid in an event Function. See the 
GUICtrlSetOnEvent function. 

@GUI_CtrlHandle - Last click control handle. Only valid in an event Function. See the GUICtrlSetOnEvent function. 

@GUI_DragId - Drag control identifier. Only valid in an event Function. See the GUISetOnEvent function. 

@GUI_DragFile - Filename of the file being dropped. Only valid in an event Function. See the GUISetOnEvent function. 

@GUI_DropId - Drop control identifier. Only valid in an event Function. See the GUISetOnEvent function. 

@GUI_WinHandle - Last click GUI window handle. Only valid in an event Function. See the GUICtrlSetOnEvent function. 

@HomeDrive - Drive letter of drive containing current user's home directory. 

@HomePath - Directory part of current user's home directory. To get the full path, use in conjunction with @HomeDrive. 

@HomeShare - Server and share name containing current user's home directory. 

@HOUR - Hours value of clock in 24-hour format. Range is 00 to 23 

@HotKeyPressed - Last hotkey pressed. See the HotKeySet function. 

@InetGetActive - Is 1 if a InetGet download is currently active, otherwise is 0. 

@InetGetBytesRead - During a InetGet download this is the number of bytes currently read. It is -1 when there is an error downloading. 

@IPAddress1 - IP address of first network adapter. Tends to return 127.0.0.1 on some computers.

@IPAddress2 - IP address of second network adapter. Returns 0.0.0.0 if not applicable. 

@IPAddress3 - IP address of third network adapter. Returns 0.0.0.0 if not applicable. 

@IPAddress4 - IP address of fourth network adapter. Returns 0.0.0.0 if not applicable. 

@KBLayout - Returns code denoting Keyboard Layout. See Appendix for possible values. 

@LF - Line feed, Chr(10); typically used for line breaks. 

@LogonDNSDomain - Logon DNS Domain. 

@LogonDomain - Logon Domain. 

@LogonServer - Logon server. 

@MDAY - Current day of month. Range is 01 to 31 

@MIN - Minutes value of clock. Range is 00 to 59 

@MON - Current month. Range is 01 to 12 

@MyDocumentsDir - Path to My Documents target 

@NumParams - Number of parameters used to call the user functions 

@OSBuild - Returns the OS build number. For example, Windows 2003 Server returns 3790 

@OSLang - Returns code denoting OS Language. See Appendix for possible values. 

@OSServicePack - Service pack info in the form of "Service Pack 3" or, for Windows 95, it may 
return "B" 

@OSTYPE - Returns "WIN32_NT" for NT/2000/XP/2003/Vista and returns "WIN32_WINDOWS" for 95/98/Me 

@OSVersion - Returns one of the following: "WIN_VISTA", "WIN_2003", "WIN_XP", "WIN_2000", "WIN_NT4", "WIN_ME", "WIN_98", "WIN_95" 

@ProcessorArch - Returns one of the following: "X86", "IA64", "X64" 

@ProgramFilesDir - Path to Program Files folder 

@ProgramsCommonDir - Path to Start Menu's Programs folder 

@ProgramsDir - Path to current user's Programs (folder on Start Menu) 

@ScriptDir - Directory containing the running script. (Result does not contain a trailing 
backslash) 

@ScriptFullPath - Equivalent to @ScriptDir & "\" & @ScriptName 

@ScriptLineNumber - Line number of the currently executed script line. Useful for debug statements specially when a function is call you can pass the caller 
line number. (Not significant in complied script) 

@ScriptName - Long filename of the running script. 

@SEC - Seconds value of clock. Range is 00 to 59 

@StartMenuCommonDir - Path to Start Menu folder 

@StartMenuDir - Path to current user's Start Menu 

@StartupCommonDir - Path to Startup folder 

@StartupDir - Current user's Startup folder 

@SW_DISABLE - Disables the window. 

@SW_ENABLE - Enables the window. 

@SW_HIDE - Hides the window and activates another window. 

@SW_LOCK -Lock the window to avoid repainting. 

@SW_MAXIMIZE - Maximizes the specified window. 

@SW_MINIMIZE - Minimizes the specified window and activates the next top-level window in the  
Z order. 

@SW_RESTORE - Activates and displays the window. If the window is minimized or maximized, the system restores it to its original size and position. An  
application should specify this flag when restoring a minimized window. 

@SW_SHOW - Activates the window and displays it in its current size and position. 

@SW_SHOWDEFAULT - Sets the show state based on the SW_ value specified by the program that started the application. 

@SW_SHOWMAXIMIZED - Activates the window and displays it as a maximized window. 

@SW_SHOWMINIMIZED - Activates the window and displays it as a minimized window. 

@SW_SHOWMINNOACTIVE - Displays the window as a minimized window. This value is similar to @SW_SHOWMINIMIZED, except the window is not activated. 

@SW_SHOWNA - Displays the window in its current size and position. This value is similar to

@SW_SHOW, except the window is not activated. 

@SW_SHOWNOACTIVATE - Displays a window in its most recent size and position. This value is similar to @SW_SHOWNORMAL, except the window is not activated. 

@SW_SHOWNORMAL - Activates and displays a window. If the window is minimized or maximized, the system restores it to its original size and position. An 
application should specify this flag when displaying the window for the first time. 

@SW_UNLOCK - Unlock windows to allow painting. 

@SystemDir - Path to Windows' System (or System32) folder 

@TAB Tab character, Chr(9) 

@TempDir - Path to the temporary files folder. 

@TRAY_ID - Last clicked item identifier during a TraySet(Item)OnEvent action. 

@TrayIconFlashing - Returns 1 if tray icon is flashing; otherwise, returns 0. 

@TrayIconVisible - Returns 1 if tray icon is visible; otherwise, returns 0. 

@Unicode - Returns 1 if running using the Unicode version of AutoIt (AutoIt3.exe) or 0 if running the ANSI version (AutoIt3A.exe).
Usually, this macro should not be required as AutoIt handles any Unicode/ANSI conversions. However, with certain DllCalls() or use of direct Windows messages 
this may be required. 

@UserProfileDir - Path to current user's Profile folder. 

@UserName - ID of the currently logged on user. 

@WDAY - Numeric day of week. Range is 1 to 7 which corresponds to Sunday through Saturday. 

@WindowsDir - path to Windows folder 

@WorkingDir - Current/active working directory. (Result does not contain a trailing backslash) 

@YDAY - Current day of year. Range is 1 to 366 (or 365 if not a leap year) 

@YEAR - Current four-digit year 



Now for the fun stuff, I'm gonna show you some of the basic commands and how to work them today.

How to make a basic GUI:
________________________________________

Start up by opening 'SciTE Script Editor'.

Now remember, if you key one thing in wrong it will throw off the ENTIRE outcome.

The first thing you'll want to type is-

#include <GUIConstants.au3>

GUICreate("My GUI Checkbox") ; you can edit in between the ""s so it will be titled differently.

$checkCN = GUICtrlCreateCheckbox ("CHECKBOX 1", 10, 10, 120, 20)

GUISetState () ; will display an dialog box with 1 checkbox and you can make more by duplicating the above code and altering the position points.

; Run the GUI until the dialog is closed
While 1
$msg = GUIGetMsg()

If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend

________________________________________

It should end up looking like this:



and the outcome like this:



If it doesn't than you've obviously written something incorrectly.


Next I'll show you how to open a hyperlink to a selected webpage (MMOwned for example).

Key in:

#include <IE.au3>

; Create a browser window and navigate to hotmail
$oIE = _IECreate()
_IENavigate($oIE, "mmowned.com")


Exit

Now if you don't plan to use Internet Explorer (IE) you'll have to change some parts but I'll leave that out for now. MF > IE

In the end it should look like this:



And it should take you to the front page of MMOwned.com, I could have added for it to log you in automatically but I know it would look like a scam so you'll 
have to figure that out for yourself.

Another way to go to a web page is accessing the DOS window, it'll look like this:

$rc = _RunDos("start Http://www.mmowned.com")

I'm going to add an advanced part to this guide now its an anti afk bot for World of Warcraft and it will look something like this-

$move = Random (1, 100, 1)
If $move < 50
Send (“{RIGHT down}”)
Sleep (500)
Send (“{LCTRL}”)
Sleep (2000)
Send (“{RIGHT up}”)
Else
Send (“{LEFT down}”)
Sleep (500)
Send (“{LCTRL}”)
Sleep (2000)
Send (“{LEFT up}”)
EndIf



Now the best part of this bot is that it generates a random movement each time so that it doesn't just make you step forward every so often. Thats why whenever I make myself a bot I make sure that it has randomly generated movements in it.
I just want to state that this is more of a difficult script and wouldn't suggest attempting these on your own until you've masted the tut's and lessons.

This guide is just to show the basics in Autoit (I plan on putting more up soon for more advanced pupils). I hope you all learned something and kept up with 
what I was saying.