Skip to content

Instantly share code, notes, and snippets.

View hoppfrosch's full-sized avatar

hoppfrosch hoppfrosch

  • Hesse, Germany
View GitHub Profile
@hoppfrosch
hoppfrosch / NewAutoClicker.ahk
Last active January 23, 2024 05:15
Auto Clicker - auto-clicks when the left mouse button is held down. . #ahk #script #snippet
# Source http://slanter-ahk.blogspot.de/2009/02/ahk-new-auto-clicker.html
# This is a new 5-line autoclicker made possible with the release of AHK 1.0.48. Use Insert to toggle it on and off.
LButton::
While GetKeyState("LButton","P")
Send {LButton}
Return
Insert::Hotkey, LButton, Toggle
@hoppfrosch
hoppfrosch / WMI_GetProcessInformation.ahk
Created September 26, 2013 06:45
Get information about running processes using WMI #ahk #script #function #wmi #com
; Description: Get Process properties via AHK using WMI
;
; Author: hoppfrosch - 20140206
;
; Credits
; * http://technet.microsoft.com/en-us/library/ee176712.aspx (by MSDN)
; * http://msdn.microsoft.com/en-us/library/windows/desktop/aa394372%28v=vs.85%29.aspx
; * http://http://www.autohotkey.com/board/topic/90385-drei-kleine-fragen (by Rohwedder)
; * http://www.autohotkey.com/board/topic/72817-how-to-obtain-%E2%80%9Cuser-name%E2%80%9D-from-running-processes/#entry465606 (by Lexikos)
PropertyList := "Caption,CommandLine,CreationClassName,CreationDate,CSCreationClassName,CSName,Description,ExecutablePath,"
@hoppfrosch
hoppfrosch / WakeUp.ahk
Created January 6, 2014 12:26
AHK wake-up-timer #ahk #script #function
; AHK wake-up-timer
; scheduler provides some of the functions of Window's Task Scheduler or the command line tool "schtasks" as an AHK-script.
; Unlike Windows' Scheduled Tasks this function works with accounts without passwords
;
; Author: boskoop (http://http://www.autohotkey.com/board/topic/10587-wake-up-timer-scheduler-function)
; CONFIGURATION
Year=2006
Month=8 ;1-12
Day=30 ;1-31
@hoppfrosch
hoppfrosch / GoToTilla.ahk
Last active October 21, 2022 03:36 — forked from budRich/GoToTilla.ahk
GoToTilla - jump to tokens within AHK sourcecode #ahk #script
/*
#####################
GoToTilla v0.22 by hoppfrosch - Added parsing of properties (AHK > 1.1.16.*)
http://www.autohotkey.com/board/topic/95536-gototilla-a-combination-of-goto-and-tillagoto/
GoToTilla v0.21 by budRich
http://www.autohotkey.com/board/topic/95536-gototilla-a-combination-of-goto-and-tillagoto/
A combination of: GoTo by Avi Aryan
http://www.autohotkey.com/board/topic/95009-goto-hotkeys-hotstrings-functions-and-labels-in-any-editor/
and TillaGoto by TheGood
http://www.autohotkey.com/forum/viewtopic.php?t=41575
@hoppfrosch
hoppfrosch / Singleton.ahk
Last active October 29, 2021 06:25
Recipe for Singleton class wit AutoHotkey
;~ This is a singleton class - taken from: http://www.programering.com/a/MDN4YDMwATU.html
class Singleton
{
;~ Single cases registered property
static _myInstance := 0
;~ Instantiation counts
static _instanceCount := 0
;~ test property
@hoppfrosch
hoppfrosch / JSON.ahk
Created November 18, 2013 06:22
JSON Utilities for AutoHotkey #ahk #script #function #json
/*
Title: JSON
JSON Utilities for AutoHotkey
Details:
Internally the ActiveX Control "Windows Script Control " (http://www.microsoft.com/de-de/download/details.aspx?id=1949) is used by those functions
Author:
Compilation by hoppfrosch; Original work by Wicked and tmplinshi
@hoppfrosch
hoppfrosch / URIEncode.ahk
Created January 27, 2014 10:39
URIEncode / URIDecode #ahk #function
; By Jackieku - http://www.autohotkey.com/board/topic/35660-url-encoding-function/
; JavaScript encodeURI()
URI_Encode(sURI, sExcepts = "!#$&'()*+,-./:;=?@_~")
{
Transform sUTF8, ToCodePage, 65001, %sURI%
origFmt := A_FormatInteger
SetFormat IntegerFast, hex
sResult := ""
Loop
@hoppfrosch
hoppfrosch / CornerNotify.ahk
Created March 25, 2014 11:28
CornerNotify #ahk #function
;---------------------------------------------------------------
; CornerNotify.ahk
; http://www.autohotkey.com/board/topic/94458-msgbox-replacement-monolog-non-modal-transparent-message-box-cornernotify/
;---------------------------------------------------------------
; CHANGELOG
;v1.12 2014-05-04 CHANGED BY LAGOMORPH
;Added additional "p" parameter for secs to make the popup persist until destroyed via CornerNotify_Destroy()
;Changed GUI name to CornerNotify instead of default GUI to avoid conflicts with other GUIs
@hoppfrosch
hoppfrosch / WinGetPosEx - Example.ahk
Last active November 20, 2018 12:33
With the introduction of the Desktop Window Manager (DWM) and Aero themes in Windows Vista, the size and position of windows has never been the same. The OS says that the window is one size but when displayed, the window can be another (usually larger) size. The WinGetPosEx function is an attempt to help the developer to identify the correct pos…
; Credits: jballi - https://autohotkey.com/boards/viewtopic.php?f=6&t=3392
#NoEnv
#SingleInstance Force
;;;;;ListLines Off
;-- Initialize
Caption :=True
ToolWindow :=False
Resize :=False
Theme :=True
@hoppfrosch
hoppfrosch / LV_SetSI.ahk
Created April 24, 2014 05:31
ListView: Icons in more than first column example #ahk #function
; Set Icon for row "subItem" within Listview
;
; Author: Tseug (http://www.autohotkey.com/board/topic/72072-listview-icons-in-more-than-first-column-example/)
;
LV_SetSI(hList, iItem, iSubItem, iImage){
VarSetCapacity(LVITEM, 60, 0)
LVM_SETITEM := 0x1006 , mask := 2 ; LVIF_IMAGE := 0x2
iItem-- , iSubItem-- , iImage-- ; Note first column (iSubItem) is #ZERO, hence adjustment
NumPut(mask, LVITEM, 0, "UInt")
NumPut(iItem, LVITEM, 4, "Int")