• Intro to AutoHotkey HotStrings with AutoHotkey Intermediate AutoHotkey GUIs are Easy with AutoHotkey Intro to DOS & AutoHotkey AutoHotkey FAQ AutoHotkey FAQ

Amazing Advanced course on AutoHotkey Objects and Classes – Coming in 2022

We’re working on an advanced course deep-diving into Objects in AutoHotkey.  In the Intermediate AutoHotkey course I covered some of the basics of storing data in Objects however, with the help of RaptorX / Isaias Baez I’m creating a course that dives deep into AutoHotkey Objects and Classes

We’re finalizing the outline and beginning to produce the videos.  Below is a current peak into what will be covered.  If you’d like to stay informed, please complete this short form and we’ll keep you in the loop!

AutoHotkey Objects and Classes

  • What AutoHotkey objects and classes are and why you should learn them
  • What can be done with objects
  • Diving into: Items, Keys, Properties and Methods
  • Quick refresher on Functions
  • Object Types (Arrays, Associative Arrays, Multi-dimensional arrays, Maps (new in V2
  • Advantages & Disadvantages of Dot Notation and Object Oriented Principles
  • Functional Programming Concepts and Terminology
  • Creating your own Objects & Classes
  • What is a COM Object & Why you should use one
  • What COM objects are available
  • Reading and Understanding the MSDN Documentation
  • Nuances & best practices

Streamline your code by Utilizing Includes in AutoHotkey

how to use Includes in AutoHotkeyAs I previously reviewed, functions in AHK rock!  The below video demonstrates how easy it is to use the utilize the includes in AutoHotkey to leverage functions & libraries that are not in your main file.

Without using the include command AHK will first look in your local library, then look under the myDocuments\AutoHotkey\Lib\ folder and finally under path-to-running-AutoHotkey.exe\lib\.

Includes in AutoHotkey

 

 

 

 

 

By using the #Include Directive you specifically tell AHK to “include” the file in your script.  Using Includes in AutoHotkey is an amazing way to keep your code clean and organized.

Using Includes in AutoHotkey

 

AutoHotkey Webinar: 9/20/2016 Using Functions and DLL call in AutoHotkey

AutoHotkey webinarAutoHotkey Webinar Videos and LinksBlack Bottle2

Link to AutoHotkey Webinar resources:

Additional resources mentioned in AutoHotkey Webinar

Using built-in Functions

SubStr(String, StartingPos [, Length])

Trim()

Round(Number[,N])

AutoHotkey Bottle 4Creating your own custom function

  • Why you want to create them
  • Things to pay attention to:
    • Accessing variables outside your function
    • Passing parameters
    • Setting defaults
    • Returning values

DLL call

  • What is it?
  • Why is it so valuable an Asset?
  • Why is it so ‘tricky’?
  • Message Box
 
v:= DllCall("MessageBox","Uint",0,"Str","my message","Str","my title","Uint","0x00000036L")

 

Additional DLLCall Resources

Script Highlight- Pasting plain text

#SingleInstance Force
^g:: ;Control G pastes plain text
Store:=ClipboardAll ;Store full version of clipboard
ClipBoard := ClipBoard ; Convert to plain text
Sleep, 50
SendInput, ^v ;paste plain text
Sleep, 50
Clipboard:=Store ;restore clipboard to original content
return

AutoHotkey Bottle 1

Register for upcoming AutoHotkey webinars here