Skip to content

Instantly share code, notes, and snippets.

@AHK-just-me
AHK-just-me / BLOB_sample.ahk
Last active December 11, 2015 17:19
Class_SQLiteDB{} - wrapper class for SQLite.dll function calls used to access SQLite databases.
; ======================================================================================================================
; Script Function: Sample script for Class_SQLiteDB.ahk
; AHK Version: L 1.1.00.00 (U32)
; Language: English
; Tested on: Win XPSP3, Win VistaSP2 (32 Bit)
; Author: just me
; ======================================================================================================================
; AHK Settings
; ======================================================================================================================
#NoEnv
@AHK-just-me
AHK-just-me / GuiControlAddBox.ahk
Last active December 15, 2015 21:19
GuiControlAddBox (DE)
#NoEnv
SetBatchLines, -1
Gui, New
Gui, Margin, 20, 20
; Textfeld mit den Dimensionen der "GroupBox" erstellen
Gui, Add, Text, w400 h200 vGB hwndHGB BackGroundTrans Section
; Position holen, um den Titel später zentrieren zu können
GuiControlGet, GB, Pos
; "GroupBox" Rahmen im Textfeld erstellen
@AHK-just-me
AHK-just-me / TransButtonsv1.ahk
Last active December 16, 2015 18:09
Transparent Buttons - Proof of Concept
#NoEnv
SetBatchLines, -1
Gui, Margin, 10, 10
Gui, Color, C00000
Gui, Font, s12
Gui, Add, Button, x10 y10 w300 vNormalButton gClick, Normal Button
Gui, Add, Button, vBT1 xp y+10 w300 hwndHBTN vTransButton gClick, Transparent Button
TransButton_SubClass(HBTN)
Gui, Add, Button, vBT2 xp y+10 w300 Default hwndHBTN vDefaultButton gClick, Default Button
TransButton_SubClass(HBTN)
@AHK-just-me
AHK-just-me / Class_TransparentListBox.ahk
Created October 5, 2013 09:11
Transparent ListBox control.
; ======================================================================================================================
; Namespace: TransparentListBox
; AHK version: AHK 1.1.13.00
; Function: Helper object for transparent ListBoxes
; Language: English
; Tested on: Win XP (U32) & Win7 x64 (U64)
; Version: 0.1.00.00/2013-10-03/just me - Initial release.
; ======================================================================================================================
; CLASS TransparentListBox
;
@AHK-just-me
AHK-just-me / Class_LV_Colors.ahk
Last active July 29, 2019 10:15
Class_LV_Colors{} - Set background and/or text colours for individual cells or rows in an AHK GUI ListView control.
; ======================================================================================================================
; Namespace: LV_Colors
; AHK version: AHK 1.1.09.02
; Function: Helper object and functions for ListView row and cell coloring
; Language: English
; Tested on: Win XPSP3, Win VistaSP2 (U32) / Win 7 (U64)
; Version: 0.1.00.00/2012-10-27/just me
; 0.2.00.00/2013-01-12/just me - bugfixes and minor changes
; 0.3.00.00/2013-06-15/just me - added "Critical, 100" to avoid drawing issues
; ======================================================================================================================
@AHK-just-me
AHK-just-me / CTLCOLORS_sample.ahk
Created June 28, 2013 05:00
Class CTLCOLORS - coloured background and/or text for controls which don't support colouring natively.
#NoEnv
#Include Class_CTLCOLORS.ahk
OnExit, GuiClose
; ----------------------------------------------------------------------------------------------------------------------
LB_SETCURSEL := 0x186
CB_SETCURSEL := 0x14E
Red := "FF0000"
Green := "00C000"
Blue := "0000FF"
Pink := "FF20FF"
@AHK-just-me
AHK-just-me / Class_DllStruct.ahk
Created June 6, 2013 20:04
Class_DllStruct - easily handle Win-API structures used with DllCall()
; ======================================================================================================================
; AHK_L 1.1 +
; ======================================================================================================================
; Function: Class definitions for windows structures used with DllCall
; AHK version: 1.1.05.06 (U 32) / (U64)
; Language: English
; Tested on: Win XPSP3, Win VistaSP2 (x86) / Win 7 (x64)
; Version: 0.0.01.09/2011-12-09/just me
; Remarks: To create a structure create a new instance of the class using
; MyStruct := New DllStruct(StructStr)
@AHK-just-me
AHK-just-me / Const_ListView.ahk
Created July 28, 2013 09:54
ListView control constants
; ======================================================================================================================
; Function: Constants for ListView controls
; AHK version: 1.1.05+
; Language: English
; Version: 1.0.00.00/2012-04-01/just me
; 1.0.01.00/2012-05-20/just me - fixed some typos
; ======================================================================================================================
; CCM_FIRST = 8192 (0x2000)
; LVM_FIRST = 4096 (0x1000) ; ListView messages
; LVN_FIRST = -100 ; ListView notifications
@AHK-just-me
AHK-just-me / Class_CCButton.ahk
Last active August 12, 2021 15:11
Class CCButton - Colored Captions on Buttons
; ======================================================================================================================
; Namespace: CCButton
; Function: Helper class for colored captions on themed pushbuttons.
; AHK version: 1.1.09.04 (U32)
; Language: English
; Version: 1.0.00.00/2013-04-27/just me
; ======================================================================================================================
; How to use: To register a GUI pushbutton call
; CCButton.Attach()
; passing two parameters:
@AHK-just-me
AHK-just-me / AHKRCMS.ahk
Created December 4, 2013 14:27
AHKRCMS - AutoHotkey Right-Click Menu Settings
; ======================================================================================================================
; AHKRCMS AutoHotkey Right-Click Menu Settings
; Function: Customise your AHK right-click menu.
; AHK version: AHK 1.1.13.01
; Tested on: Win XP (x86) / Win 7 (x64)
; Version: 1.0.00.00/2013-12-04/just me
; Remarks: All changes are stored in the key HKEY_CURRENT_USER\Software\Classes\AutoHotkey in the current user
; branch of the registry. Changes can be reset easily by clicking the "Restore AHK defaults" button or
; removing the entire key with RegEdit.exe manually.
; The script relies on the current AHK 1.1 default installation registry keys, folder structures and