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

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
 
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

Register for upcoming AutoHotkey webinars here

 

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.