chrisjudd Posted November 4, 2016 Share Posted November 4, 2016 So I have a bat file that I would like to have a better gui than just the command prompt window and someone told me I should take a look at using autoit for it. I am a complete novice in that I have no idea where to even start with this if its even possible with autoit. Here is the batch file in question: http://paste.ubuntu.com/23423164/ Link to comment Share on other sites More sharing options...
spudw2k Posted November 4, 2016 Share Posted November 4, 2016 Oh my, that indeed can be done with AutoIt, relatively simply I would say. The key to learning is getting familiar with your help file--included with the installer and a link to an online version here. There are TONs of examples in it that you can learn from and even piece together a working script. Also included with the installer are some GUI examples (look in the AutoIt directory for Examples\GUI). I'd suggest checking out the SampleControls.au3 demo script. That will give you an idea of what kinds of "native" controls you can incorporate in your GUI; of course you can always look to do a more sophisticated GUI (search for GUI examples on the forum), but as a crash course I'd suggest trying out some stuff from the sample. The majority of the batch file looks to be something you'll want to create a GUI for, so go nuts. For the drive mapping you can either employ one of the Run() functions, or you can use the native AutoIt function DriveMapAdd(), just to give you a couple options to get started with. Let us know if you get stuck, and as a tip, you'll get better support if you show effort; you'll find the scripting process more rewarding as well. Try things out and when things don't work/break and you don't understand how or why it works, let us know. chrisjudd 1 Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
chrisjudd Posted November 4, 2016 Author Share Posted November 4, 2016 40 minutes ago, spudw2k said: Oh my, that indeed can be done with AutoIt, relatively simply I would say. The key to learning is getting familiar with your help file--included with the installer and a link to an online version here. There are TONs of examples in it that you can learn from and even piece together a working script. Also included with the installer are some GUI examples (look in the AutoIt directory for Examples\GUI). I'd suggest checking out the SampleControls.au3 demo script. That will give you an idea of what kinds of "native" controls you can incorporate in your GUI; of course you can always look to do a more sophisticated GUI (search for GUI examples on the forum), but as a crash course I'd suggest trying out some stuff from the sample. The majority of the batch file looks to be something you'll want to create a GUI for, so go nuts. For the drive mapping you can either employ one of the Run() functions, or you can use the native AutoIt function DriveMapAdd(), just to give you a couple options to get started with. Let us know if you get stuck, and as a tip, you'll get better support if you show effort; you'll find the scripting process more rewarding as well. Try things out and when things don't work/break and you don't understand how or why it works, let us know. Thanks for this info, I will definitely give it a go! 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