Jump to content
Sign in to follow this  
wpgourley

Newb question.

Recommended Posts

wpgourley

Hello all, please call me Paul.

 

I'm new to AutoIt but I've coded in other languages; C#, JAVA, and my favorite but lesser known: NeoBook.

 

When learning new application software; I like to find a project to create and then just jump right in. I have a goal in mind for an application that will help me in my work as a help-desk / IT tech at a hospital. In that role; I often have to image multiple desktops / laptops, etc. After imaging is complete, I need to install various software package depending on where they are going to be deployed.

 

My goal in this; my first AutoIt application is to automate the installation of these applications by making use of the AutoIt record tool. I want to build a kind of wrapper GUI interface that will go to a specific folder and look at previously recorded sessions stored there.

 

The interface will populate a multi-selectable list from the content of that folder and allow the user to select one or more application install sessions from that list.

 

After a "go" button is clicked; the application will then manage the serial running of each script and wait for that script to finish before moving on to the next; appropriate error trapping included.

 

The reason I want to use the recorder tool instead of coding the install; is so that the application can be used by other techs who can use the record tool, but are not coders. They should be able to use the recorder tool to record a new session and place that session in the folder. The application will then be able to re-create that install from then on.

 

My question here is; Is this a feasible and obtainable goal using the AutoIt and SciTE tools? I'm not asking for someone to code this for me. Learning AutoIt is my primary goal here. But, I would like to know if there is some aspect of AutoIt that might prevent me from completing my application.

 

Alternately; I would welcome any advice / tips that anyone would like to give me.

 

 

Thanks in advance for your help;

 

Paul

Edited by Melba23
URL removed

Share this post


Link to post
Share on other sites
careca

Hi Paul, yes, i think everyone is able to "record", and after it has been recorded one time,

you save that script, compile it, and from then on, you only execute the exe.

Scripting is not that difficult for installs, you can pass arguments, like silent switches and stuff,

and you can do the install without moving the mouse 95% os cases.


Spoiler

Paster - Main function is to paste text, but has more functions. (No longer mantained, switched to String Trigger)

OpenW - Open With... alternative, Open any file with any application, set it's icon, set application as default.

Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Firefox Profile Backup - Backup/restore previously saved profile.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Au3Record.exe

Share this post


Link to post
Share on other sites
Melba23

wpgourley,

Welcome to the AutoIt forums. :)

But please note that we do not accept adverts for payware - I have deleted the link above. ;)

M23


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
wpgourley

wpgourley,

Welcome to the AutoIt forums. :)

But please note that we do not accept adverts for payware - I have deleted the link above. ;)

M23

Moderator; I appreciate your need to keep to established policy; however that link was to a site which offers both a freeware and a payware version of it's rapid application development suite. I defer to your wisdom on the issue.

Share this post


Link to post
Share on other sites
corgano

There is already a tool like this included with AutoIt called Au3Recorder. I'm not sure if this is written in autoit itself or not, but maybe it can give you some ideas. If it IS written in autoit, you might be able to find the code somewhere and instead of writing a new one just improve it

If you do write a completely new one, instead of simple recording clicks and playing them back, maybe you could have it recorded clicks and find out what is actually being clicked, and then convert that into controlclick()s. Using the Controlclick / Controlsend commands is more robust than using mouse click and send because you can specify to what they go, not just to where


0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e

Share this post


Link to post
Share on other sites
wpgourley

There is already a tool like this included with AutoIt called Au3Recorder. I'm not sure if this is written in autoit itself or not, but maybe it can give you some ideas. If it IS written in autoit, you might be able to find the code somewhere and instead of writing a new one just improve it

If you do write a completely new one, instead of simple recording clicks and playing them back, maybe you could have it recorded clicks and find out what is actually being clicked, and then convert that into controlclick()s. Using the Controlclick / Controlsend commands is more robust than using mouse click and send because you can specify to what they go, not just to where

 

Thank you for taking the time to respond: the Au3Recorder tool is what I'm referring to when I propose to use a recorder to capture the install sessions.

I understand that using the Controlclick and Controlsend commands to hard code a session would be more robust and presumably; less likely to introduce errors. One of the reasons I am looking at using the recorder tool and saving that tools' output to be played back is that I work with some other very capable techs; but most of them do not code as I do. Thus, while they are certainly capable of using the Au3Recorder tool and then compiling that into an executable. I don't want them to have to edit or write new code in order to add a new install capability to the list. While I'm creating this small tool, I will keep in mind your suggestions.

Thanks again.

Share this post


Link to post
Share on other sites
Melba23

wpgourley,

 

however that link was to a site which offers both a freeware and a payware version of it's rapid application development suite

All I can see is a payware with a free trial - that is just payware. ;)

 

I defer to your wisdom on the issue

Thanks. :)

M23


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

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  

×