Skip to content

Instantly share code, notes, and snippets.

@saim-doruklu
saim-doruklu / WindowSetIterator.ahk
Last active May 21, 2019 10:43 — forked from FunkMonkey/WindowSetIterator.ahk
Window Set Iterator
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; 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.
; ATTENTION: requires Autohotkey_L
; alt+shift+a to add
; alt+shift+s to remove
; alt+shift+left to prev
; alt+shift+right to next
import java.util.HashMap;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class StringReplace {
private static final String literalLeftBrace = "\\{";
private static final String literalRightBrace = "\\}";
private static final String literalComma = "\\,";