From a62b6fa6954ed61c199315756bac847e458aa3d9 Mon Sep 17 00:00:00 2001 From: breadcat Date: Fri, 10 Apr 2015 02:52:05 +0100 Subject: Larger than the average commit Fixed volume hotkeys Added horizontal split tile function Remove some surplus exe extensions Add foreign language character input Expand borderless script Reduce some verbosity --- functions.ahk | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'functions.ahk') diff --git a/functions.ahk b/functions.ahk index 254e7d7..1221c7d 100644 --- a/functions.ahk +++ b/functions.ahk @@ -129,6 +129,16 @@ typeCygwin() { Return } +typeAcuteE() { + ; {AltDown}130{AltUp} doesn't work for some reason, don't judge me + ClipSaved := ClipboardAll + Clipboard = é + Send ^v + Clipboard := ClipSaved + ClipSaved = + Return + } + cmdPaste() { ;C-v / S-insert pastes into cmd CoordMode, Mouse, Relative MouseMove, 100, 100 @@ -256,6 +266,25 @@ winSplit() { ;split active and previous window side by side, press again to swap Return } +winSplitH() { ;split active and previous window on top of each other, press again to swap positions + splitToggleH := !splitToggleH + If (splitToggleH = "1") { + Tile("T") + Sleep, 15 + Send {AltDown}{Tab}{AltUp} + Sleep, 10 + Tile("B") + Sleep, 15 + Send {AltDown}{Tab}{AltUp} + } + Else { + Send {AltDown}{Tab}{AltUp} + Sleep, 10 + winSplitH() + } + Return + } + kdeMove() { ;kde-windows (Easy Window Dragging -- KDE style (requires XP/2k/NT) -- by Jonny) MouseGetPos,KDE_X1,KDE_Y1,KDE_id WinGet,KDE_Win,MinMax,ahk_id %KDE_id% -- cgit v1.2.3