Jump to content
AGlassman

AutoIT Framework

Recommended Posts

AGlassman

Over the years I've written stand-alone AutoIt scripts for specific purposes. So that now I have a large number of little scripts scattered all over. Each one using different methods to do common operations (message logging, error traping, etc), depending on my AutoIt experience at the time I wrote it.

As part of a project to consolidate and standardize all of these scripts, and to make them all accessable from a consistent set of HotKeys and Windows Shortcuts, I found myself moving towards a framework of common methods that could be shared by all the scripts, that I call HotRod. Attached is my first try at this kind of framework.

All of the framework code is in a set of AutoIt files with three letter names (ACE, BKE). The functions to perform specific actions are defined in lower level includes under the "PRO" (for Profile) directory. The main program is "_HRD" which sets up the framework and waits for HotKey sequences or a call from a Windows Shortcut (the LNK program) to execute a specific function.

I would be very interested to hear from anyone else working along similar lines, or comments on what I've done so far.

HotRod_Prelim.zip

  • Like 1

Share this post


Link to post
Share on other sites
Sandeeptrp

Good Try,

But  an Issue is displayed will running the code, it says error: "_IIF() : undefined Function" 

Pls Fix it

Share this post


Link to post
Share on other sites
TheDcoder

@Sandeeptrp Do you realize that this thread is 6 years old!? And I don't think @AGlassman is still maintaining his framework accounting that he hasn't posted a single update since the first version :mellow:.


AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Spoiler

My contributions to the AutoIt Community

If I have hurt or offended you in anyway, Please accept my apologies, I never (regardless of the situation) mean to do that to anybody!!!

3fHNZJ.gif

PLEASE JOIN ##AutoIt AND HELP THE IRC AUTOIT COMMUNITY!

Share this post


Link to post
Share on other sites
Sandeeptrp
8 minutes ago, TheDcoder said:

@Sandeeptrp Do you realize that this thread is 6 years old!? And I don't think @AGlassman is still maintaining his framework accounting that he hasn't posted a single update since the first version :mellow:.

Maybe what you had just said can be a scenario but No Problem all I want a Solution for my Problem; If he sees and reply it, then thats a Plus Point for me else I am on my Track as usual

Share this post


Link to post
Share on other sites
TheDcoder

@Sandeeptrp You have a point but its not good to necro an old post, a PM to @AGlassman would be more appropriate.


AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Spoiler

My contributions to the AutoIt Community

If I have hurt or offended you in anyway, Please accept my apologies, I never (regardless of the situation) mean to do that to anybody!!!

3fHNZJ.gif

PLEASE JOIN ##AutoIt AND HELP THE IRC AUTOIT COMMUNITY!

Share this post


Link to post
Share on other sites
AutoBert
5 hours ago, Sandeeptrp said:

Good Try,

But  an Issue is displayed will running the code, it says error: "_IIF() : undefined Function" 

Pls Fix it

Go back to AutoItversion before 3.3.10.x then it runs, or do what is suggested:

  • Removed: Documentation and example for _Iif(). Scripts should be updated to use ternary operators instead. THIS IS A SCRIPT BREAKING CHANGE.
Edited by AutoBert

Share this post


Link to post
Share on other sites
TheDcoder

@Sandeeptrp Try adding this function to your script:

 


AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Spoiler

My contributions to the AutoIt Community

If I have hurt or offended you in anyway, Please accept my apologies, I never (regardless of the situation) mean to do that to anybody!!!

3fHNZJ.gif

PLEASE JOIN ##AutoIt AND HELP THE IRC AUTOIT COMMUNITY!

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

×