Skip to content

Instantly share code, notes, and snippets.

View hasteagag's full-sized avatar

haste hasteagag

View GitHub Profile
@hasteagag
hasteagag / draftWordHopper.ahk
Last active May 27, 2024 05:08
AHK v2 snippet for returning to previous selection in MS Word using COM (added bookmarks)
#Requires AutoHotkey v2
main := Gui('AlwaysOnTop')
lv := main.AddListView('w600 r10', ['Before', 'Selection', 'After', 'hwnd'])
lv.OnEvent('DoubleClick', ActivateWindow)
rangeStack := []
currentIndex := 0
contextLength := 20 ; context or tolerance in characters
wordApp := "" ;global placeholder for word application object
@hasteagag
hasteagag / main.cpp
Created March 9, 2023 02:44
quick tweak on events Example from Corsair SDK to make G1 G3 and so on (column shift)
/******************************************************************************
**
** File main.cpp
** Author Denys Romanenko
** Copyright (c) 2021, Corsair Memory, Inc. All Rights Reserved.
**
** This file is part of Corsair SDK Lighting Effects.
**
******************************************************************************/