User Tools

Site Tools


my-autohotkey-script

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:

keys.ahk
#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 4 ist öffnendes, AltGr 5 ist schließendes Anführungszeichen
<^>!4::Send<^>!5::Send<^>!2::Send<^>!3::Send<^>!+6::Send<^>!+7::Send<^>!+8::Send<^>!+9::Send ’
 
; AltGr - ist Halbgeviertstrich
<^>!-::Send –
 
<^>!.::Send …
 
<^>!SPACE:: 
 
<^>!a::Send ä
<^>!o::Send ö
<^>!u::Send ü
<^>!s::Send ß
<^>!+a::Send A
<^>!+o::Send Ö
<^>!+u::Send Ü
 
;für Pollen
<^>!l::Send ◊
 
;CapsLock fungiert als weitere Ctrl-Taste
Capslock::Ctrl
 
<^>!t::Winset, Alwaysontop, TOGGLE, A
 
<^>!+Q::ExitApp
 
:co:ZEIT::
FormatTime, zeit, , HH:mm
zeit := zeit . " Uhr "
Send %zeit%
return
 
:co:DATUM::
FormatTime, datum, , yyyy-MM-dd
Send %datum% `
return
 
; Unicode-Zeichen
<^>!ü::
InputBox,u,Unicode-Zeichen,Codepunkt (Hex),Bitte geben Sie den Codepunkt ein.,,,,,,,
if not ErrorLevel
{
u := "U+" . u
  Send {%u%}
}
return
my-autohotkey-script.txt · Last modified: 2018-08-13 18:42 by Thomas Hühn