diff options
author | breadcat | 2015-04-10 02:52:05 +0100 |
---|---|---|
committer | breadcat | 2015-04-10 02:52:05 +0100 |
commit | a62b6fa6954ed61c199315756bac847e458aa3d9 (patch) | |
tree | 30cf2220623c6a7e4a9bed445eaae5e563412950 /functions.ahk | |
parent | 41360bb2158aaa026b8e55c9c69ce42881be2aaf (diff) | |
download | ahka-a62b6fa6954ed61c199315756bac847e458aa3d9.tar.gz ahka-a62b6fa6954ed61c199315756bac847e458aa3d9.tar.bz2 ahka-a62b6fa6954ed61c199315756bac847e458aa3d9.zip |
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
Diffstat (limited to 'functions.ahk')
-rw-r--r-- | functions.ahk | 29 |
1 files changed, 29 insertions, 0 deletions
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% |