From 38354ff713b873ca4adae0eb949e2345c3f20428 Mon Sep 17 00:00:00 2001 From: breadcat Date: Thu, 28 May 2015 20:47:36 +0100 Subject: Small tidy up --- functions.ahk | 48 +++++++++++++++--------------------------------- 1 file changed, 15 insertions(+), 33 deletions(-) (limited to 'functions.ahk') 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) -- cgit v1.2.3