User Tools

Site Tools


My AutoHotKey script

I've been using AutoHotKey for a long time. Both at work and at home (with some differences), loaded on Windows startup.

My private AutoHotKey script looks like this:

#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.
#SingleInstance force
;AltGr 3 ist öffnendes, AltGr 4 ist schließendes Anführungszeichen
<^>!1::Send<^>!2::Send<^>!3::Send<^>!4::Send<^>!5::Send<^>!6::Send<^>!+5::Send<^>!+6::Send ’
;AltGr - ist Halbgeviertstrich
<^>!-::Send –
<^>!.::Send …
<^>!a::Send ä
<^>!o::Send ö
<^>!u::Send ü
<^>!s::Send ß
<^>!+a::Send A
<^>!+o::Send Ö
<^>!+u::Send Ü
;für Plain TeX
<^>!ä::Send \"a
<^>!ö::Send \"o
<^>!ü::Send \"u
<^>!ß::Send \"ss
;für Pollen
<^>!l::Send ◊
;CapsLock fungiert als weitere Ctrl-Taste
<^>!t::Winset, Alwaysontop, TOGGLE, A
FormatTime, zeit, , HH:mm
zeit := zeit . " Uhr "
Send %zeit%
FormatTime, datum, , yyyy-MM-dd
Send %datum% `
; Unicode-Zeichen
InputBox,u,Unicode-Zeichen,Codepunkt (Hex),Bitte geben Sie den Codepunkt ein.,,,,,,,
if not ErrorLevel
u := "U+" . u
  Send {%u%}
my-autohotkey-script.txt · Last modified: 2019-11-16 07:58 by Thomas Hühn