diff options
author | breadcat | 2015-05-28 20:47:36 +0100 |
---|---|---|
committer | breadcat | 2015-05-28 20:47:36 +0100 |
commit | 38354ff713b873ca4adae0eb949e2345c3f20428 (patch) | |
tree | 1ebf11b4694053804a8a54da382964af505c1d16 /functions.ahk | |
parent | 067dd47a3c578684c9b5f15d71ada77aa7da82bb (diff) | |
download | ahka-38354ff713b873ca4adae0eb949e2345c3f20428.tar.gz ahka-38354ff713b873ca4adae0eb949e2345c3f20428.tar.bz2 ahka-38354ff713b873ca4adae0eb949e2345c3f20428.zip |
Small tidy up
Diffstat (limited to 'functions.ahk')
-rw-r--r-- | functions.ahk | 48 |
1 files changed, 15 insertions, 33 deletions
diff --git a/functions.ahk b/functions.ahk index 0e66990..652f1f3 100644 --- a/functions.ahk +++ b/functions.ahk @@ -156,7 +156,7 @@ cmdPaste() { ;C-v / S-insert pastes into cmd Return } -flashFullscreen() { ;double click the window +toggleFullscreen() { ;double click the window CoordMode, Mouse, Relative MouseMove, 250, 250 Send {Click 2} @@ -265,41 +265,23 @@ usePlaybackDevice(device) { } winSplit() { ;split active and previous window side by side, press again to swap positions - splitToggle := !splitToggle - If (splitToggle = "1") { - Tile("R") - Sleep, 15 - Send {AltDown}{Tab}{AltUp} - Sleep, 10 - Tile("L") - Sleep, 15 - Send {AltDown}{Tab}{AltUp} - } - Else { - Send {AltDown}{Tab}{AltUp} - Sleep, 10 - winSplit() - } - Return + Tile("R") + Sleep, 15 + Send {AltDown}{Tab}{AltUp} + Sleep, 10 + Tile("L") + Sleep, 15 + Send {AltDown}{Tab}{AltUp} } 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 + Tile("T") + Sleep, 15 + Send {AltDown}{Tab}{AltUp} + Sleep, 10 + Tile("B") + Sleep, 15 + Send {AltDown}{Tab}{AltUp} } kdeMove() { ;kde-windows (Easy Window Dragging -- KDE style (requires XP/2k/NT) -- by Jonny) |