Streamline your code by Utilizing the Include command in AutoHotkey

Include command in AutoHotkeyAs I previously reviewed, functions in AHK rock!  The below video demonstrates how easy it is to use the utilize the include command 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\.

By using the include command you can specifically tell AHK to look in a given file.

Include command in AutoHotkey

Demo video showing how to use the include command

AutoHotkey Webinar: 9/20/2016

AutoHotkey webinarAutoHotkey Webinar Videos and Links

Link to AutoHotkey Webinar resources:

Additional resources mentioned in AutoHotkey Webinar

Using built-in Functions

SubStr(String, StartingPos [, Length])

Trim()

Round(Number[,N])

Creating 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

 

Additional DLLCall Resources

Script Highlight- Pasting plain text

 

Register for upcoming AutoHotkey webinars here