Jump to content
Sign in to follow this  
redfire

Who can help with. a good book on AutoIT

Recommended Posts

redfire

Who can help with a good ebook or video on Auto IT? I'm looking to be a good coder with this language and so I'm tired of asking some silly questions I need good books and videos on this.

Share this post


Link to post
Share on other sites
Melba23

redfire,

The only books I know of are either out-dated or useless. I recommend reading the Help file (at least the first few sections - Using AutoIt, Tutorials and the first couple of References) as this will help you enormously. You should also look at this excellent tutorial - you will find other tutorials in the Wiki (the link is at the top of the page). There are some video tutorials on YouTube. :)

M23

  • Like 1

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

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
water

Asking questions is never silly!

What helped me most to learn AutoIt:

  • The tutorials in the Wiki
  • The forum

If you search YouTube for AutoIt you will find some videos too.

But I can't remember there being a good book available. A guy on the german forum started a book some time ago. It is still unfinished and I'm not sure a german book helps you a lot.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
redfire

Ok, thanks. Suppose I create a program and save in au3 and I wonna make use of the same program to run inside my program, how do I go about it? Let's start from there I am a bit novice about Auto IT but I now how to get some system info, and display in messagebox, I am also learning how to use ftp.

I will also be learning to use BHO, and the rest in AUto It.

All for educational purpose only.

Share this post


Link to post
Share on other sites
water

Use

#include <Code2beIncluded.au3>

in your other script.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
redfire

Use

#include <Code2beIncluded.au3>
in your other script.

Then how do I execute the program to run inside the second program. Once I include it, I must create something like a trigger, now including it is one thing, executing is another. How do I go about it?

Share this post


Link to post
Share on other sites
guinness

You can't jump in feet first without doing a bit of reading. Have you attempted what Melba23 and water suggested?


UDF List:

 
_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_ArrayFilter/_ArrayReduce_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: 22/04/2018

Share this post


Link to post
Share on other sites
redfire

You can't jump in feet first without doing a bit of reading. Have you attempted what Melba23 and water suggested?

Yes I have downloaded some videos, at the same time I am learning here. Try to understand not all videos are online and I believe in interactive form of discussion to learn and learn thoroughly, this is the way I can learn, so what's the point...help me pls that's just all I have to ask.

Share this post


Link to post
Share on other sites
water

Can you please elaborate on what the script you want to run from the other script does? Do you need to exchange data between the two programs?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
redfire

Can you please elaborate on what the script you want to run from the other script does? Do you need to exchange data between the two programs?

For instance, I was designing a program to get computer information like OS, computername, username, ip address, country, and flag.

I was somehow able to come clean with those, except the country and the flag part. Now I pasted for the tutorial, someone helped with some $global function and the rest

Now I would be using TCP to do something like data transfer between two programs so that I can get the complete data from the first to the second.

In the second program I want it to arrange the data in a Listviewer, so that I can see it. So that's all the info I should give for now,

So I call the computer info "sysinfo.au3"

Now I want to use the tcp to transfer data from the first program to the second

Now I do #include <sysinfo.au3>

How do igger it to do something like that. This is a start, I believe I am getting somewhere.

Share this post


Link to post
Share on other sites
water

What you are looking for is called: functions.

A UDF (User Defined Functions) is most of the time a collection of functions which can be included in any script you like by the "#include <YourUDFName.au3>" statement.

Example:

Your SysInfo.au3 contains the following function to get the computername and return it to the calling script:

SysInfo.au3:

Func _ComputerName()

    Local $sComputerName = ...

    Return $sComputerName

EndFunc

Your script:

#include <SysInfo,.au3>

Global $sCompName = _ComputerName()

MsgBox(0, "Info", "The Name of your Computer is " & $sCompName)

   


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
redfire

very well, now how do I use tcp to send the data and preview in a list viewer? Can you help with a code, I am dying to learn this. Seriously.

Share this post


Link to post
Share on other sites
water

OK, lets do it step by step: Why do you think you need TCP?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
redfire

OK, lets do it step by step: Why do you think you need TCP?

When you are creating client/server programs, you may want to send data from the server to client. Nowyou need TCP to transmit the data.

Transmiting the data, you now need the TCP. So I wanted to do something like a user defind function that will string the computer info, and send from server to client and then arrange in Listviewer like I said before.

Share this post


Link to post
Share on other sites
water

To get computer information from another machine I wouldn't code my own client server application.

WMI provides all the information you need. Means you can access piles of the server information from your client.

>Scriptomatic in the Example Scripts section is the tool to show what you kind of information you can get and which generates the necessary AutoIt code for you.

If you search the Examples Scripts forumfor "Computer Info" you will find a lot of ready made code.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
redfire

To get computer information from another machine I wouldn't code my own client server application.

WMI provides all the information you need. Means you can access piles of the server information from your client.

>Scriptomatic in the Example Scripts section is the tool to show what you kind of information you can get and which generates the necessary AutoIt code for you.

 

If you search the Examples Scripts forumfor "Computer Info" you will find a lot of ready made code.

How can you use TCP to send data?

Share this post


Link to post
Share on other sites
water

WMI uses TCP under the covers to transmit the data.

If you want to code a client/server application yourself then please have a look at TCPSend and TCPRecv. The examples in the help file provide client and server code.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
junkew

There are multiple ways of IPC under windows so depending on your needs there are different ways of doing this

http://msdn.microsoft.com/en-us/library/windows/desktop/aa365574(v=vs.85).aspx

with the terms in above link you can search this forum for examples with code

Share this post


Link to post
Share on other sites
Morthawt

If you are interested I have made several videos explaining the main, basic features of autoit scripting on this youtube playlist: 

Edited by Morthawt

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
Sign in to follow this  

×