Skip to content

Instantly share code, notes, and snippets.

@rbika
rbika / macos-accentuation.ahk
Last active October 17, 2021 13:34
AutoHotKey script to simulate macOS accentuation system
; macOS accentuation system
; source: https://gist.github.com/rbika/111bde86fb3315eca00f841ccdedd261
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
#`::previewAccent("``")
#e::previewAccent("´")
#i::previewAccent("ˆ")
@rbika
rbika / macos-same-app-cycle.ahk
Last active July 5, 2024 04:33
AutoHotKey script to cycle between windows of the same app
; Cycle between windows of the same app like in macOS - Alt+backtick.
; Source: https://gist.github.com/rbika/014fb3570beaef195db0bd53fa681037
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
!`::
WinGet, activeProcess, ProcessName, A ; Retrieves the name of the process that owns the active window
WinGet, winList, List, ahk_exe %activeProcess% ; Retrieves a pseudo-list of windows belonging to this process
var foobar = function() {
console.log(‘A’);
console.log(‘B’);
console.log(‘C’);
}
foobar();