Skip to content

Instantly share code, notes, and snippets.

@burque505
burque505 / word_tables.go
Created February 12, 2022 18:20
Go-ole - word tables
package main
import (
"fmt"
"reflect"
"time"
ole "github.com/go-ole/go-ole"
"github.com/go-ole/go-ole/oleutil"
)
;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; This code is just an adaption of code by
;; @Code4FunVienna as listed
;; at https://forum.robin-language.org/t/howto-use-scripts-in-scripts/365
;; PLEASE VIST THIS THREAD FOR USE INSTRUCTIONS!
;;
;; Here we use AutoHotkey and its CLR.ahk library to compile the code
;; listed in the variable 'csharp'.
;;
;; For more on AutoHotkey and CLR, please visit this thread:
addon core version 4.100.19170.929
addon language version 4.100.19170.929
♥macrodlls = System.dll,System.Drawing.dll,System.Windows.Forms.dll,AutoHotkey.Interop.dll
♥macronamespaces = System,AutoHotkey.Interop,System.Windows.Forms
♥hellogiant = "Hello "
var ahk = AutoHotkeyEngine.Instance;
ahk.ExecRaw("MsgBox, Hello World!");
ahk.SetVar("x", ♥hellogiant);
ahk.SetVar("y", "World, from AHK and G1ANT!");
@burque505
burque505 / automating_PyQT5.gif
Last active July 8, 2019 19:28
G1ANT script automating PyQT5 widget examples
automating_PyQT5.gif
@burque505
burque505 / PersistentSaveFolder.ahk
Created June 14, 2019 18:38
Keep a save/open folder consistent across several apps
/*
PersistentSaveFolder.ahk
Version 1.0.10ex
March 28, 2018
burque505
*/
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Persistent
SetTitleMatchMode, 2
@burque505
burque505 / ahk-com4.red
Last active March 16, 2019 18:37
Automate Word with AutoHotkey module and red-lang
; You will need AutoHotkey.dll for this to work.
; It can be downloaded from https://github.com/HotKeyIt/ahkdll (source)
; or http://hotkeyit.github.io/v2/ for binaries (v1 on same page)
; Only tested with v1 - you will of course need MS Word on your machine.
; Use 32-bit AutoHotkey dll only!
; If red can't find it in your script directory, please put
; the dll in SysWOW64. (By all means try including it in your script
; directory first, if you like.)