redfire Posted September 28, 2013 Share Posted September 28, 2013 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. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted September 28, 2013 Moderators Share Posted September 28, 2013 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 Danyfirex 1 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
water Posted September 28, 2013 Share Posted September 28, 2013 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 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
redfire Posted September 28, 2013 Author Share Posted September 28, 2013 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. Link to comment Share on other sites More sharing options...
water Posted September 28, 2013 Share Posted September 28, 2013 Use #include <Code2beIncluded.au3> in your other script. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
redfire Posted September 28, 2013 Author Share Posted September 28, 2013 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? Link to comment Share on other sites More sharing options...
guinness Posted September 28, 2013 Share Posted September 28, 2013 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 parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018 Link to comment Share on other sites More sharing options...
redfire Posted September 28, 2013 Author Share Posted September 28, 2013 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. Link to comment Share on other sites More sharing options...
water Posted September 28, 2013 Share Posted September 28, 2013 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 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
redfire Posted September 28, 2013 Author Share Posted September 28, 2013 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. Link to comment Share on other sites More sharing options...
water Posted September 28, 2013 Share Posted September 28, 2013 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 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
redfire Posted September 28, 2013 Author Share Posted September 28, 2013 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. Link to comment Share on other sites More sharing options...
water Posted September 28, 2013 Share Posted September 28, 2013 OK, lets do it step by step: Why do you think you need TCP? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
redfire Posted September 28, 2013 Author Share Posted September 28, 2013 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. Link to comment Share on other sites More sharing options...
water Posted September 28, 2013 Share Posted September 28, 2013 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 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
redfire Posted September 28, 2013 Author Share Posted September 28, 2013 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? Link to comment Share on other sites More sharing options...
water Posted September 28, 2013 Share Posted September 28, 2013 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 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
junkew Posted September 28, 2013 Share Posted September 28, 2013 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 FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
Morthawt Posted September 28, 2013 Share Posted September 28, 2013 (edited) If you are interested I have made several videos explaining the main, basic features of autoit scripting on this youtube playlist: Edited September 28, 2013 by Morthawt Free and easy Autoit scripting video tutorials (plus more videos always coming!) General video tutorials, especially correct and safe TeamSpeak permissions tutorials. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now