Skip to content

Instantly share code, notes, and snippets.

@anonymous1184
anonymous1184 / README.md
Last active August 8, 2023 00:35
AutoHotkey v1.1.x / v2.0.x (un)installer.

AutoHotkey v1.1.x / v2.0.x (un)installer

Usage and information: https://redd.it/15l2b6l

The source code is for informative purposes, the file needed is the executable.

  • [Download] (1.83 MB).
    • SHA256: e30f09fe36238b1a8fbed3250c637888811a10443029ccc20da20a5830a318a7
    • Alternatively: [zip file] (890 KB).
  • [VirusTotal] (no detections, 71 engines).
@anonymous1184
anonymous1184 / README.md
Created July 24, 2023 19:13
ReloadEx()

Pending...

@anonymous1184
anonymous1184 / Elevate.ahk
Last active December 24, 2023 04:40
Elevate() / ElevateWait()
#Requires AutoHotkey v2.0
; Version: 2023.06.09.2
; https://gist.github.com/d92498381a74a4535662306152b34ab
; Usage and examples: https://redd.it/1450upb
Elevate(Target, WorkingDir := "", Options := "", &OutputVarPID := 0) {
return Elevate_(false, Target, WorkingDir, Options, &OutputVarPID)
}

First and most important my friend: don't get frustrated, RegEx is an entity on its own and complex enough to justify head scratching.

Let's split your issue into pieces:

  • The HTML.
  • The expression.
  • The replacement.
  • How to loop.

The HTML

@anonymous1184
anonymous1184 / Crypt.ahk
Created January 6, 2023 18:33
MasterPassword.ahk
; ===============================================================================================================================
; AutoHotkey wrapper for Cryptography API: Next Generation
;
; Author ....: jNizM
; Released ..: 2016-09-15
; Modified ..: 2021-01-04
; Github ....: https://github.com/jNizM/AHK_CNG
; Forum .....: https://www.autohotkey.com/boards/viewtopic.php?f=6&t=23413
; ===============================================================================================================================
@anonymous1184
anonymous1184 / Ping.ahk
Last active December 29, 2023 20:09
Ping.ahk
; Version: 2022.11.17.1
; https://gist.github.com/75a33c3aab9be7c343a1916c43c64339
Ping(Address, ByRef Result := "", Timeout := 1000) {
static lastAddr := "", ip := "", pAddr := 0, hIcmp := 0
if (Address != lastAddr) {
pAddr := Ping_IPAddress(Address, ip)
lastAddr := Address
}
@anonymous1184
anonymous1184 / UI Access.md
Last active May 30, 2024 05:38
Run scripts with UI Access (UIA)

UI Access (UIA)

What's UI Access?

UIA is the way around UIPI ([User Interface Privilege Isolation][1]) which in simple terms is a way of bypassing the security built into Windows to avoid applications interacting with other applications that have a higher integrity level (security).

In other words, when you run a script it cannot communicate with the system or elevated (running as Administrator) processes; this is to avoid insecure and non-sanctioned interactions.

Why would I want UIA?

@anonymous1184
anonymous1184 / Ini.ahk
Last active October 31, 2024 14:35
Automatic configuration file handling.

; Version: 2023.04.20.1
; Usages and examples: https://redd.it/s1it4j
Ini(Path, Sync := true) {
return new Ini_File(Path, Sync)
}
class Ini_File {
@anonymous1184
anonymous1184 / Browser Selector.ahk
Last active August 12, 2024 00:15
AutoHotkey Browser(/profile) Selector based on active application.
; Version: 2021.12.15.2
; Infomation: https://redd.it/rg5f17
#NoTrayIcon
#Persistent
#SingleInstance off
#Include <Message>
;@Ahk2Exe-IgnoreBegin
@anonymous1184
anonymous1184 / example.ahk
Last active August 12, 2024 00:15
YouTube Download Helper

;
; REQUIRED
;
ytdl.Path := "D:\CLI\youtube"
; Path of yt-dlp.exe
;