islanq

AutoIt C# Wrapper

9 posts in this topic

#1 ·  Posted (edited)

Hey guys, so I was just wondering if anyone has made a wrapper to simplify the AutoIt + C# intergration?

One of the benefits I like most about automation languages such as AHK is being able to call the next method without having to specifiy my window explicitly.

 

This is far from complete but has a lot of the Window functionality placed. Class + Example included.

using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Runtime.Remoting.Messaging;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using AutoItX3Lib;

namespace AutoItTest
{
    public class AU3
    {
        public static AutoItX3Lib.AutoItX3 au3;

        private static string _lastWindow = "";

        static AU3()
        {
            au3 = new AutoItX3Lib.AutoItX3();
        }

        public static string LastWindow
        {
            get { return _lastWindow; }
            set { _lastWindow = value; }
        }

        #region WindowTools

        private static void LastWindowCheck(string win)
        {
            LastWindow = win != LastWindow ? LastWindow = win : LastWindow = LastWindow;
        }

        public static bool WinExist(string win)
        {
            LastWindowCheck(win);
            return au3.WinExists(win, "") != 0;
        }

        public static bool WinExist(string win, out string lastWindow)
        {
            lastWindow = win != LastWindow ? LastWindow = win : LastWindow;
            return au3.WinExists(win, "") != 0;
        }

        public static bool WinExist(string win, string txt)
        {
            LastWindowCheck(win);
            return au3.WinExists(win, txt) != 0;
        }

        public static bool WinExist(string win, string txt, out string lastWindow)
        {
            lastWindow = win != LastWindow ? LastWindow = win : LastWindow = LastWindow;
            return au3.WinExists(win, txt) != 0;
        }

        public static bool WinActive(string win)
        {
            LastWindowCheck(win);
            return au3.WinActive(win, "") != 0;
        }

        public static bool WinActive(string win, string txt)
        {
            LastWindowCheck(win);
            return au3.WinActive(win, txt) != 0;
        }

        public static bool WinActive(string win, out string lastWindow)
        {
            lastWindow = win != LastWindow ? LastWindow = win : LastWindow = LastWindow;
            return au3.WinActive(win, "") != 0;
        }

        public static void WinActivate()
        {
            au3.WinActivate(LastWindow, "");
        }

        public static void WinActivate(string win)
        {
            LastWindowCheck(win);
            au3.WinActivate(win, "");
        }

        public static void WinActivate(string win, string txt)
        {
            LastWindowCheck(win);
            au3.WinActivate(win, txt);
        }

        public static bool WinWaitNotActive()
        {
            return au3.WinWaitNotActive(LastWindow, "", 100) != 0;
        }

        public static bool WinWaitNotActive(string win)
        {
            LastWindowCheck(win);
            return au3.WinWaitNotActive(win, "", 100) != 0;
        }

        public static bool WinWaitNotActive(string win, int timeout)
        {
            LastWindowCheck(win);
            return au3.WinWaitNotActive(win, "", timeout) != 0;
        }

        public static bool WinWaitNotActive(string win, string txt, int timeout)
        {
            LastWindowCheck(win);
            return au3.WinWaitNotActive(win, txt, timeout) != 0;
        }

        public static bool WinWaitActive()
        {
            return au3.WinWaitActive(LastWindow, "", 100) != 0;
        }

        public static bool WinWaitActive(string win)
        {
            LastWindowCheck(win);
            return au3.WinWaitActive(win, "", 100) != 0;
        }

        public static bool WinWaitActive(string win, string txt)
        {
            LastWindowCheck(win);
            return au3.WinWaitActive(win, txt, 100) != 0;
        }

        public static bool WinWaitActive(string win, string txt, int timeout)
        {
            LastWindowCheck(win);
            return au3.WinWaitActive(win, txt, timeout) != 0;
        }

        public static void WinClose()
        {
            au3.WinClose(LastWindow, "");
        }

        public static void WinClose(string win)
        {
            LastWindowCheck(win);
            au3.WinClose(win, "");
        }

        public static void WinClose(string win, string txt)
        {
            LastWindowCheck(win);
            au3.WinClose(win, txt);
        }


        public static string WinGetClassList()
        {
            return au3.WinGetClassList(LastWindow, "");
        }

        public static string WinGetClassList(string win)
        {
            LastWindowCheck(win);
            return au3.WinGetClassList(win, "");
        }

        public static string WinGetClassList(string win, string txt)
        {
            LastWindowCheck(win);
            return au3.WinGetClassList(win, txt);
        }

        public static string WinGetHandle()
        {
            return au3.WinGetHandle(LastWindow, "");
        }

        public static string WinGethandle(string win)
        {
            LastWindowCheck(win);
            return au3.WinGetHandle(win, "");
        }

        public static string WinGethandle(string win, string txt)
        {
            LastWindowCheck(win);
            return au3.WinGetHandle(win, txt);
        }

        public static string WinGetProcess()
        {
            return au3.WinGetProcess(LastWindow, "");
        }

        public static string WinGetProcess(string win)
        {
            LastWindowCheck(win);
            return au3.WinGetProcess(win, "");
        }

        public static string WinGetProcess(string win, string txt)
        {
            LastWindowCheck(win);
            return au3.WinGetProcess(win, txt);
        }

        public static int WinGetPosX()
        {
            return au3.WinGetPosX(LastWindow, "");
        }

        public static int WinGetPosX(string win)
        {
            LastWindowCheck(win);
            return au3.WinGetPosX(win, "");
        }

        public static int WinGetPosX(string win, string txt)
        {
            LastWindowCheck(win);
            return au3.WinGetPosX(win, txt);
        }

        public static int WinGetPosY()
        {
            return au3.WinGetPosY(LastWindow, "");
        }

        public static int WinGetPosY(string win)
        {
            LastWindowCheck(win);
            return au3.WinGetPosX(win, "");
        }

        public static int WinGetPosY(string win, string txt)
        {
            LastWindowCheck(win);
            return au3.WinGetPosY(win, txt);
        }


        public static int WinGetPosHeight()
        {
            return au3.WinGetPosHeight(LastWindow, "");
        }

        public static int WinGetPosHeight(string win)
        {
            LastWindowCheck(win);
            return au3.WinGetPosX(win, "");
        }

        public static int WinGetPosHeight(string win, string txt)
        {
            LastWindowCheck(win);
            return au3.WinGetPosHeight(win, txt);
        }

        public static int WinGetPosWidth()
        {
            return au3.WinGetPosWidth(LastWindow, "");
        }

        public static int WinGetPosWidth(string win)
        {
            LastWindowCheck(win);
            return au3.WinGetPosX(win, "");
        }

        public static int WinGetPosWidth(string win, string txt)
        {
            LastWindowCheck(win);
            return au3.WinGetPosWidth(win, txt);
        }


        public static int WinGetClientSizeHeight()
        {
            return au3.WinGetClientSizeHeight(LastWindow, "");
        }

        public static int WinGetClientSizeHeight(string win)
        {
            LastWindowCheck(win);
            return au3.WinGetPosX(win, "");
        }

        public static int WinGetClientSizeHeight(string win, string txt)
        {
            LastWindowCheck(win);
            return au3.WinGetClientSizeHeight(win, txt);
        }

        public static int WinGetClientSizeWidth()
        {
            return au3.WinGetClientSizeWidth(LastWindow, "");
        }

        public static int WinGetClientSizeWidth(string win)
        {
            LastWindowCheck(win);
            return au3.WinGetPosX(win, "");
        }

        public static int WinGetClientSizeWidth(string win, string txt)
        {
            LastWindowCheck(win);
            return au3.WinGetClientSizeWidth(win, txt);
        }


        public static string WinGetText()
        {
            return au3.WinGetText(LastWindow, "");
        }

        public static string WinGetText(string win)
        {
            LastWindowCheck(win);
            return au3.WinGetText(win, "");
        }

        public static string WinGetText(string win, string txt)
        {
            LastWindowCheck(win);
            return au3.WinGetText(win, txt);
        }

        public static int WinGetState()
        {
            return au3.WinGetState(LastWindow, "");
        }

        public static int WinGetState(string win)
        {
            LastWindowCheck(win);
            return au3.WinGetPosX(win, "");
        }

        public static int WinGetState(string win, string txt)
        {
            LastWindowCheck(win);
            return au3.WinGetState(win, txt);
        }

        public static void WinKill()
        {
            au3.WinKill(LastWindow, "");
        }

        public static void WinKill(string win)
        {
            LastWindowCheck(win);
            au3.WinKill(win, "");
        }

        public static void WinKill(string win, string txt)
        {
            LastWindowCheck(win);
            au3.WinKill(win, txt);
        }

        public static void WinMove(int x, int y)
        {
            au3.WinMove(LastWindow, "", x, y, -1, -1);
        }

        public static void WinMove(string win, int x, int y)
        {
            LastWindowCheck(win);
            au3.WinMove(win, "", x, y, -1, -1);
        }

        public static void WinMove(string win, string txt, int x, int y)
        {
            LastWindowCheck(win);
            au3.WinMove(win, txt, x, y, -1, -1);
        }

        public static void WinMove(string win, string txt, int x, int y, out bool success)
        {
            LastWindowCheck(win);
            au3.WinMove(win, txt, x, y, -1, -1);
            success = au3.WinMove(win, txt, x, y, -1, -1) != 0;
        }

        public static void WinMove(string win, int x, int y, out bool success)
        {
            LastWindowCheck(win);
            au3.WinMove(win, "", x, y, -1, -1);
            success = au3.WinMove(win, "", x, y, -1, -1) != 0;
        }

        public static void WinMove(int x, int y, out bool success)
        {
            au3.WinMove(LastWindow, "", x, y, -1, -1);
            success = au3.WinMove(LastWindow, "", x, y, -1, -1) != 0;
        }

        public static bool WinSetOnTop()
        {
            return au3.WinSetOnTop(LastWindow, "", 1) != 0;
        }

        public static bool WinSetOnTop(string win)
        {
            LastWindowCheck(win);
            return au3.WinSetOnTop(win, "", 1) != 0;
        }

        public static bool WinSetOnTop(string win, string txt)
        {
            LastWindowCheck(win);
            return au3.WinSetOnTop(win, txt, 1) != 0;
        }

        public static bool WinSetOnTop(string win, int flag)
        {
            LastWindowCheck(win);
            if (flag != 0 || flag != 1)
            {
                return false;
            }
            return au3.WinSetOnTop(win, "", flag) != 0;
        }

        public static bool WinSetOnTop(string win, string txt, int flag)
        {
            LastWindowCheck(win);
            if (flag != 0 || flag != 1)
            {
                return false;
            }
            return au3.WinSetOnTop(win, txt, flag) != 0;
        }

        #endregion

        public static bool Run(string exe, string dir)
        {
            return au3.Run(exe, dir, au3.SW_SHOW) != 0;
        }

        public static bool RunWait(string exe, string dir)
        {
            return au3.Run(exe, dir, au3.SW_SHOW) != 0;
        }

        public static void Sleep(int ms)
        {
            Thread.Sleep(ms);
        }
    }

    internal class Program : AU3
    {
        private static void Main(string[] args)
        {
            if (!WinExist("Untitled - Notepad"))
            {
                RunWait("notepad.exe", "C:\\Windows\\system32\\");
            }
            WinActivate();
            WinWaitActive();
            WinSetOnTop();
            WinClose();

            Console.WriteLine("Last Window: {0}", LastWindow);
            Console.ReadLine();
        }
    }
}

GitHub: https://github.com/islanq/AutoItCSharpWrapper

Edited by islanq
Replaced Pastebin with GitHub

Share this post


Link to post
Share on other sites



Not bad. By the way the getter for LastWindow can be refactored to

public static string LastWindow { get; set; }

 


_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 04/09/2015

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Not bad. By the way the getter for LastWindow can be refactored to

public static string LastWindow { get; set; }

 

Yeah, I just realized silly things like that now. I could have also used default params in my method declaration(s) as well for a cleaner look. Hoping to get some nice people together to work on something like this so it can be more compact and even easier to use in your code.

Edited by islanq

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Put on GitHub and then multiple people can contribute, including me and you still have control. Unless you're happy using the forum, thus maintaining yourself?

Edited by guinness

_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 04/09/2015

Share this post


Link to post
Share on other sites

Good idea, git added here. :) 

https://github.com/islanq/AutoItCSharpWrapper

Put on GitHub and then multiple people can contribute, including me and you still have control. Unless you're happy using the forum, thus maintaining yourself?

Share this post


Link to post
Share on other sites

Good idea, git added here. :) 

https://github.com/islanq/AutoItCSharpWrapper

 

Thanks for that


_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 04/09/2015

Share this post


Link to post
Share on other sites

Please change the OP (remove PasteBin link and add github link).

 


Signature beginning:   Wondering who uses AutoIT and what it can be used for ?
* GHAPI UDF - modest begining - comunication with GitHub REST API *
ADO.au3 UDF     POP3.au3 UDF     XML.au3 UDF    How to use IE.au3  UDF with  AutoIt v3.3.14.x  for other useful stuff click the following button

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST API *

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 - BETA * ADO.au3 UDF SMTP Mailer UDF *

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Best coding practices * 

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * 

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2017-06-04

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now