Skip to content

Instantly share code, notes, and snippets.

View trienow's full-sized avatar
🏗️
Building things and stuff and things

trienow trienow

🏗️
Building things and stuff and things
View GitHub Profile
@trienow
trienow / MainStory.ahk
Created April 8, 2023 13:46
AutoHotkey Scripts to solve painfully annoying puzzles in the Game DARQ - Might be useful for speedrunning too.
#Requires AutoHotkey v2.0
#Warn All ;Enable warnings to assist with detecting common errors.
SendMode "Input" ;Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir A_ScriptDir ;Ensures a consistent starting directory.
#SingleInstance force
#HotIf WinActive("ahk_exe DARQ.exe")
^1::
{
;Chapter 5 - Spinning Labyrith puzzle
@trienow
trienow / NppSelection.cs
Last active June 27, 2021 17:14
DEPRECATED: A small C# class handling selections for the "Automation Scripts"-Plugin for Notepad++
public class NppSelection
{
readonly IntPtr sci;
public NppSelection(IntPtr currentScintilla) { sci = currentScintilla; }
public int Anchor
{
get { return (int)Win32.SendMessage(sci, SciMsg.SCI_GETANCHOR, 0, 0); }
set { Win32.SendMessage(sci, SciMsg.SCI_SETANCHOR, value, 0); }
@trienow
trienow / HumanListViewSorter.cs
Last active November 29, 2018 15:32
Compares adjacent numerals as numbers and the rest as normal text. Probably not efficient, but it works fine.
using System;
using System.Collections;
using System.Text.RegularExpressions;
using System.Windows.Forms;
public class ListViewSorter : IComparer
{
const string HUMAN_COMPARE = "(?'str'[^0-9]+)|(?'num'[0-9]+)";
public int Column { get; set; } = 0;
public int Direction { get; set; } = 1;
@trienow
trienow / SecureStringScrambler.cs
Created November 8, 2018 08:18
A C# Npp Automation to scramble some text into a SecureString
using System;
using System.Windows.Forms;
using NppScripts;
using System.Collections.Generic;
public class Script : NppScript
{
public override void Run()
{
string input = Npp.GetAllText();