AutoHotkey News 2024-08-29 This simple tip will change your life!

AutoHotkey NewsletterHowdy,

Here’s a super quick tip to change the entire trajectory of your life❗

I know that’s a bold statement but trust me, it’s true!

It’s all about preventing procrastination .

Procrastination is one of the worst habits there is.  Period!

So here’s how I deal it:

Always create “soft deadlines“

Nearly everything you do should be bound by a time constraint.

For big tasks take your final deadline and break it down into tiny “bite size” steps putting soft deadlines on each one.

As the saying goes “you’ll thank me later!”

You might grab our Simple Checklist to help keep track of your status!

Now on with the show…

Learn how to Master VSCode Make the switch to v2 Intro to AutoHotkey Intermediate AutoHotkey Intermediate ObjectsGUIs are Easy w/AutoHotkey Access all our Courses; Quit when you want

Tackling those ginormous tasks…

Speaking of breaking down a large task I remembered this chat where I spoke with Ryan Wells about so many ways improve tackling those big tasks

The proper way to eat an elephant
The proper way to eat an elephant


Are you wondering where to Start with AutoHotkey?

If you have and of the following questions, I highly recommend you watch this video to help you answer this (somewhat) complicated topic

  • Which version of AutoHotkey should you use
  • What Editor is right for you
  • What should you be learning next

Answers to Important AHK Questions (depending on your Skills & goals)

Answers to Important AHK Questions (depending on your Skills & goals)


Easy way for Tweaking Older Windows Programs

Did you know that, if you are working with older programs, chances are you can literally change the GUI❓

If the programs were created using Win32 controls (and a TON of programs were) then you’re in luck!

Not only can you automate them, you can actually change how they look & work.

In this short tutorial we demonstrate the approach.

Easily manipulate Older Windows Programs with AutoHotkey
Easily manipulate Older Windows Programs with AutoHotkey

Simple Spy is great for working with win32 Controls

You also might like our SimpleSpy tool that greatly simplifies working with win32 controls.

Amazingly Simple Spy tool for Inspecting Controls: SimpleSpy in AHK v2
Amazingly Simple Spy tool for Inspecting Controls: SimpleSpy in AHK v2

We go deep on working with Win32 controls in our
Intermediate AutoHotkey course which, comes with a 30-day double-your-money-back guarantee!


Intermediate AutoHotkey


200% Money Back Guarantee badge with a yellow and green starburst seal for AHK courses


Improving People’s Lives: Story #13

One of our Radiologists mentioned some of his colleagues are “old school” and don’t use “voice to text” tools.  Instead, his luddite colleagues record the audio of their report and send it off for human transcription.  This means his company has to have “live transcriptionists” available during the time (which is not cheap!)

We waved our “magic AI wands” and created a tool where you drag your audio file on it and “ipso-presto” out pops a highly reliable transcription.


What we’re reading


AI / Chat GPT-3 News / Usage


⚡️Productivity tips:

The intro is this week’s productivity tip.  Have you started creating soft-deadlines yet?


A spot of Humor Get the “how to stink at work” book by Jeff Foxworthy

How to NOT suck at your job

How to suck at your job


Testimonial

“The content is great in general and often questions can actually help and improve interest in AutoHotKey.” — Rodrigo Costa

Cartoon superhero mascot in green costume beside the bold text AHK Hero on a yellow background AHK Hero

Consider joining the AHK Hero club! Members receive 25% off courses, consultations, tutoring, done for you project work, etc.    Currently we have over 300 hours of recordings teaching AutoHotkey that is exclusive to AHK Hero members❗

During this Friday’s call we’re planning to discuss:

  • Help AHK Members with their code
  • Branching in VS code with git
  • Handling non-AHK files when compiling scripts
  • Attach debug to running script
  • How do Settimers Track time❓
  • WinKill, WinClose, and Processclose
  • Using AI to create Documentation for your Project
  • Using “invert” on a slider so it is intuitive

They also have access to exclusive & pre-released content and a 3 hours a week where we help people with their AHK issues (the Saturday calls are geared towards people new to AutoHotkey.)


️ Quotable quotes

  • Work harder on yourself than you do on your job — Jim Rohn
  • How you deal with failure determines whether or not you ever get to deal with the success — Dan Kennedy
  • Don’t sacrifice peace of mind for a piece of luxury — James Cleary
  • Knowledge is power; Automation knowledge is a “super-power” — Joe Glines

AHK Newsletter⏩SHARE WITH A FRIEND⏩

Do you know someone that would benefit from learning useful automation tips like the gems in today’s issue?  Take a second and forward this newsletter and bask in the glow of their undying gratitude.  Was this email forwarded to you?

Sign up for this Newsletter here.  We never share your email with anyone.  Ever!


The-Automator

Joe, Isaias, Irfan, Rizwan and staff


P.S. Over the years I’ve worked with a lot of people in corporate America.  By far the majority of people do NOT give themselves deadlines.  This is, by far, one of the best things you can do to be more productive.

What’s even more interesting is how small you can go.   Dividing even small tasks into smaller ones is surprisingly beneficial.  For instance, I break this newsletter into sections of which I do different parts every day.  It ensures I can stay Focused (and productive) and not easily get side-tracked.

AutoHotkey Webinar: AutoHotkey Version 2 – What to look out for when switching to V2

In this webinar we explore some of the main differences in AutoHotkey version 2, Why you might adapt it, and a tool to help automate the adaption

Special thanks to Dimitri Geerts for leading the discussion, putting together the deck, and working on the converter tool!

Video Hour 1: High-level overview
Video Hour 2: Q&A:

  • Major differences withAHK Version 2
  • You can read up on the official listing of changes
  • v2.0 beta 1was released in July 2021 and future releases are expected to be backward-compatible!  If you want to learn more, check out the v2 forum posts:
  • Take a look at the tool Dimitri demonstrated to adapt V1 code to V2 here

 

Script Highlight:  RunWith: Use this function to control the bitness of your AutoHotkey script

Sign up for future webinars here

See past AutoHotkey webinars 

You can get the Deck Dimitri presented here, or just look through the below images.

1) All parameters are expressions, not text

Side-by-side comparison slide: AutoHotkey Version 1 syntax (var1 = test, MsgBox, %var%) on the left versus Version 2 syntax (var1 := test, msgResult

2) Variables need to be declared

Side-by-side comparison of AutoHotkey V1 and V2 code, showing V1 code triggering a warning dialog for an undeclared variable while V2 code is shown

3) “All” commands are now also functions

Side-by-side comparison of AutoHotkey Version 1 and Version 2 MsgBox code, with Version 1 in green on the left and Version 2 in blue on the right

4) Some functions now return objects

Side-by-side code comparison showing an InputBox script in AutoHotkey Version 1 syntax on the left and the updated Version 2 syntax on the right

5) There is now a distinction between properties accessed with . and data (items, array or map elements) accessed with []

Side-by-side code comparison: AutoHotkey Version 1 uses MsgBox with a comma and % syntax, while Version 2 uses MsgBox() as a function that returns a

6) Hotkeys and non-autoreplace HotStrings are no longer labels; instead, they (automatically) define a function

Side-by-side comparison of an F1 hotkey in Version 1 syntax with MsgBox, test versus Version 2 syntax with msgResult := MsgBox(test) inside braces

7) All byRef variables need to have a “&” before

Side-by-side comparison of AutoHotkey Version 1 and Version 2 SplitPath syntax, showing the byRef & change in the second line.

8) Function calls require a space or “(“. Use comma only between parameters

Side-by-side code comparison: AutoHotkey Version 1 loop syntax in green on the left, and the updated Version 2 syntax in blue on the right, showing

9) GUI and GUI controls are now objects

Side-by-side code comparison titled Gui and Gui controls are now objects: AutoHotkey Version 1 GUI code on the left in green and Version 2

 

TLDR: The 62nd AutoHotkey webinar discussed the benefits and challenges of switching to version 2, which offers improved consistency and cleaner code, but may require code conversion and can be less forgiving for beginners.

1. 00:00 📢 The 62nd AutoHotkey webinar discussed podcast topics, demonstrated Quick Access Pop-up, and provided a code template for running AutoHotkey in a specific business with the Unicode version.
1.1 The 62nd AutoHotkey webinar had 112 registrants and participants were asked to ask questions in the chat instead of speaking due to the potential for confusion.
1.2 The speaker discussed various podcast topics including version two, increasing the likelihood of script running on multiple computers, and the pros and cons of subscription-based vs one-time fee sales.
1.3 The speaker shared their screen and demonstrated how to use Quick Access Pop-up with AutoHotkey in the 32-bit version.
1.4 The speaker provides a code template that can be downloaded to force AutoHotkey to run in a specific business with the Unicode version, which is a useful function that should be built into AutoHotkey.

2. 04:45 🚀 The new version of the cjson parser improves code consistency and speed, while the changes in autohotkey code may be less forgiving for beginners.
2.1 Geek dude’s new version of the cjson parser works in both 64-bit and 32-bit, and thanks to everyone who develops and runs the forum.
2.2 The speaker discussed the changes from version 1.1 to version 2 and provided examples of how to correctly convert code to avoid errors.
2.3 In the updated version, everything is a function and errors occur when a variable is not declared, resulting in better code and fewer commands.
2.4 The upgrade may improve consistency and speed, but benchmarking is needed to determine the extent of the improvements.
2.5 The changes in version two of autohotkey code are simpler and less arbitrary, but may be less forgiving and not as easy for beginners to learn.
2.6 The speaker thinks the new conversion process is great despite concerns, and is currently working on a converter that is improving but may have difficulty handling large changes.

3. 14:01 👨‍💻 Arrays, hotkeys, and objects behave differently in Autohotkey version 2, but it has improved consistency and nested functions.
3.1 Arrays behave differently in version one and version two, with brackets and points having different effects, and it’s important to understand these differences when working with arrays.
3.2 Fix hotkeys by adding brackets and use an ampersand before name to avoid errors.
3.3 Version 2 of the programming language requires a space instead of a comma for the first variable in commands, and the use of objects has been changed.
3.4 Autohotkey version 2 has improved consistency and nested functions, making it easier for editors to do their intellisense type stuff and allowing for special tools without interfering with the rest of the program.
3.5 Learning it was easy with just understanding the birth variables, and there were not many difficulties encountered.

4. 22:25 📝 The speaker discussed code conversion challenges and loop confusion, while also sharing their struggles with using Hit Up and making changes to improve their skills.
4.1 The speaker discussed adding an ampersand sign to the function declaration and clarified that loops are not functions.
4.2 The speaker created a converter to convert version one code to a new version, but loops as a function can be confusing and the converter is currently only for testing purposes.
4.3 The speaker discussed the challenges of converting code and the need to sometimes invent methods to achieve the same results, while acknowledging that there may be better ways to code and asking for a link to the converter.
4.4 The speaker struggled with using Hit Up, a coding script adopted from another person, and made changes to it before the original coder stopped helping, leading to the speaker working offline to improve their skills.

5. 28:24 👨‍💻 Switching to version two of AutoHotkey can avoid issues and the speaker is working on converting functions from version one to version two.
5.1 V2 began around 10-12 years ago and the error level variable in V2 produces the same result as the V1 goat.
5.2 Consider switching to version two to avoid the same issues Python faced when switching between versions two and three.
5.3 Many people still have thousands of Python 2 scripts written in legacy libraries and converting them to Python 3 can be a daunting task.
5.4 The speaker demonstrated how to run different versions of AutoHotkey using a small script that detects the version number in the first 20 lines of the file.
5.5 The speaker is working on converting functions from version one to version two, focusing on the most used ones, and believes that com objects should work the same regardless of the language used to connect to them.

6. 36:49 💻 Using AutoHotkey version 2 leads to cleaner and more consistent code, with a 64-bit installer for easier management of hotkeys and scripts.
6.1 Functions are preferred over commands in programming as they have a cleaner syntax and are easier to understand, and while the old way of dealing with double quotes in version one is no longer available in version two, single quotes can be used instead.
6.2 Using version two of the converter leads to more consistent and cleaner code in the long run.
6.3 When installing AutoHotkey version 2, it does not install version 1 and comes with a 64-bit installer, which allows for easier management of hotkeys and scripts.
6.4 Learning the syntax of a new coding language is important to be able to use the same rules in your code and make the transition easier.
6.5 Version one library for functions has two functions inside, and it is easy to transition without converting the whole code, but it is hard to differentiate between exchanges.
6.6 The speaker stumbled upon forum posts about hotkeys using vanilla and l versions while learning dot notation with auto hotkey.

7. 47:00 💻 AutoHotkey users should consider using separate sub-forums or tags to indicate the version being used, and a converter can help avoid problems when transitioning to version 2.
7.1 Use separate sub-forums or tags to indicate the version of AutoHotkey being used to avoid confusion, and consider using custom extensions for more interactive output.
7.2 Autohotkey version 2 has new functionality and changes that shouldn’t break version 1, but it may take a while for it to gain widespread popularity.
7.3 Language should be concise and consistent, although every language has its quirks.
7.4 A gradual move to version two would damage adoption and cause problems in the community, so a converter can be a great help for people to avoid that kind of mess.
7.5 Automating 80% of the work is helpful and efficient, as it saves time and effort.

8. 54:59 👨‍💻 It’s suggested to make a community-wide effort to switch to a new version of AutoHotkey to avoid supporting multiple languages, but it may be difficult due to the large amount of content that still works with the old version.
8.1 There are some improvements in AutoHotkey version 2, but there is no compelling reason for existing users to switch to it.
8.2 Users may not switch to AutoHotkey version 2 quickly as long as they can find examples of version 1 scripts in the community.
8.3 To avoid the challenge of supporting multiple languages, it is suggested that a community-wide effort should be made to switch to a new version as fast and hard as possible, although it may be difficult due to the large amount of content that still works with the old version.
8.4 The majority of code in the programming language Otaha is found in a select few places, such as Reddit and hockey forums, and efforts could be made to create a foolproof converter to update outdated code.
8.5 The speaker suggests using a tool to nudge developers to use version two and setting up rules to check for version one code in posts to reduce confusion and fragmentation in programming languages.
8.6 The speaker discusses the implementation of Lactico’s version of AutoHotkey and how it drove some people away, while also mentioning the debate between Lactico’s version and the previous version.

Summary for https://youtu.be/R-AJgevfZ3k by www.eightify.app