AutoHotkey Webinar- Intro to Neural Networks

Video Hour 1:  High Level: Intro to Neural Networks

Our guest presenter, Giordanno (Gio) Sperotto did an amazing job covering an intro to Neural Networks.

  1. Present some current uses for neural networks (examples to light up curiosity in the subject)
  2. Introduction to the algorithms (Using a simple excel sheet and Paint.NET file, the aim is to provide an overview of a very (VERY) simplified step-by-step process)
  3. Discuss the example in the tutorial (going through the problem and the .ahk code)
  4. Discuss AutoHotkey as a possible tool and also some other possible tools (Python, TensorFlow, etc)
  5. Brief Talk about some existing online courses and content (Udacity, Udemy, Youtube Channels, etc)
  6. Brief Talk about Jobs and entrepreneurial opportunities
  7. Discuss other advanced concepts (Bias, Activation Functions, Learning Rate, Cost-Function, Multiple Layers, BackPropagation, Convolutional NN, Recursive NN, Supervised and Unsupervised Learning, etc)

Video Hour 2: Coding and Q&A

Script Highlight: EntryForm() by Coco

 

Easy / quick way to create GUIs to capture user input with AutoHotkey.  Data captured is dumped into an AHK object.

Here is a link to EntryForm Example and scriptdemonstrated during the webinar.

 

 

 

 

Resources for Neural Networks

AutoHotkey Forum post-

Articles

YouTube

Personalizing SciTE Intellisense / Autocorrect

In this post I leverage two different scripts where I demonstrate how to personalize SciTE Intellisense / Autocorrect.   Both are great ways SciTE Intellisense / Autocorrectto increase your productivity while coding!

Adding Functions/Labels from files/folders to your SciTE Intellisense / Autocorrect

This script can be used to point to specific files/folders and grab labels, functions, etc. and pull them into your Intellisense for you.   This script will generate a “user.ahk.api” file in your default SciTE library and only needs to be run periodically (when you have new functions/labels you want to include).

  • Save BuildUserAhkApi.ahk to a location on your computer (if you save it in your local \lib\folder you will not need to #include it!)
  • From a separate file, call the function and tell it what file(s) /directory you want it to review and what you want it to include (functions and/or labels).  You can also decide to be recursive or not.   I had it import all of my functions from my standard AutoHotkey\lib\ folder but did not include my labels (as they’re really only relevant for an active script).
  • Here is the function and parameters (the last one should not be used):  BuildUserAhkApi(AhkScriptPath, [OverwriteAhkApi, RecurseIncludes, Labels, WrapWidth, AhkApiPath, RecursionCall])
  • Here is how I called mine (note you’ll need to dupate the destination path:
BuildUserAhkApi("B:\Progs\AutoHotkey_L\Lib\", 0, 0, 0, 265, "C:\Scite_Install\SciTE_Custom\user.ahk.api")

Video demonstrating how it works:

Adding Functions, Labels, Variables from your current file to your SciTE Intellisense / Autocorrect

In this second example I demonstrate how you can have variables, labels, functions in your current script populate the SciTE Intellisense / Autocorrect.  If you’re like me, you’ll LOVE this functionality because it will help prompt you of the variables, functions, labels you have in the current saved script.  This can drastically increase your productivity!

  • Save AutoComplete.lua to SciTE default directory  ;(See attached or download here)
  • Save UserLuaScript.lua to SciTE default directory (append if you have something there already –I had this file but it does not show up under Option)
  • I’m beta testing this but right now it looks like it works fine-  I added one line @ row 282 to my version . This tells SciTE to update all the time (not waiting for the document to be saved).  So far it seems to work fine but I’m going to give it a bit before recommending…
local events = {
    OnChar          = handleChar,
    OnKey           = handleKey,
    OnSave          = buildNames,
    OnUpdateUI      = buildNames, --I added this line @ line 282 
    OnSwitchFile    = function()

 

Automate Unicode character encoding for HTML

Unicode character encoding

Our CMS does not support Unicode text thus when we need to search-replace for characters like the and © symbols. This takes a fair amount of time and is easy to miss so I wrote a script in AutoHotKey to automatically handle the Unicode character encoding.

Now I can highlight the word and click a button and  Whamo!  Instant replacement with HTML equivalents!  No more trying to scan text and find illegal characters.

Unicode character encoding

Here is the AutoHotKey code I use.  My code first grabs the highlighted text and copies it to the clipboard, where it manipulates it, then sends it back to the active program I was working in. No more need for Unicode character encoding!

 
gosub Store_Clipboard_Copy_Selected_Text
;http://ahkscript.org/docs/commands/Transform.htm  http://www.w3schools.com/charsets/ref_html_8859.asp
Transform,Clipboard,html,%Clipboard%,3  ;3=numbered expressions used where named expression not available
Clipboard:= RegExReplace(Clipboard, "mUs)&bull;\s(.*).<br>", "    <li>$1</li>") ;convert bullet & br to ul
Clipboard:= RegExReplace(Clipboard, "    <li>(.*)</li>", "  <ul>`r`n    <li>$1</li>`r`n  </ul>") ;convert bullet & br to ul
Clipboard:= RegExReplace(Clipboard, "mUs).<br>", "<br>") ;convert bullet & br to ul