diff options
author | breadcat | 2015-10-30 10:43:50 +0000 |
---|---|---|
committer | breadcat | 2015-10-30 10:43:50 +0000 |
commit | 12b05bbc72643b2c3a03b287c88f45f43d177934 (patch) | |
tree | 51d6b0991c39a45a0660f2c63bbba4b019da92fc /functions.ahk | |
parent | b14500446f4533efada71f105485f76124783388 (diff) | |
download | ahka-12b05bbc72643b2c3a03b287c88f45f43d177934.tar.gz ahka-12b05bbc72643b2c3a03b287c88f45f43d177934.tar.bz2 ahka-12b05bbc72643b2c3a03b287c88f45f43d177934.zip |
Large, overdue commit
Merge Send/Sleep commands
Uniform comment style
Reorganise order to make more sense
Add more typo replacements
Add more hotkeys
Script can now send to RDP
Diffstat (limited to 'functions.ahk')
-rw-r--r-- | functions.ahk | 37 |
1 files changed, 22 insertions, 15 deletions
diff --git a/functions.ahk b/functions.ahk index 4b46f55..eeb4561 100644 --- a/functions.ahk +++ b/functions.ahk @@ -63,6 +63,15 @@ insertGateway() { Send, %gateway% } +insertCRMFooter() { + Send, {Enter} + insertDateTime() + Send, {Space} + insertSignature() + Send, {F6}javascript:document.getElementById("SAVE_FOOTER").focus(){Sleep 25}{Enter}{Sleep 50}{Space} + Return + } + insertDate() { FormatTime, CurrentDateTime,, yyyy-MM-dd Send %CurrentDateTime% @@ -70,13 +79,13 @@ insertDate() { } insertTime() { - FormatTime, CurrentDateTime,, HHmm + FormatTime, CurrentDateTime,, HH:mm Send %CurrentDateTime% Return } insertDateTime() { - FormatTime, CurrentDateTime,, yyyy-MM-dd HHmm + FormatTime, CurrentDateTime,, yyyy-MM-dd HH:mm Send %CurrentDateTime% Return } @@ -97,6 +106,12 @@ insertSignature() { Send, %A_Space%-%firstinitial%%lastinitial% } +pasteClipboard() { ; manually paste clipboard, minus formatting + StringReplace, clipboard, clipboard, %A_Tab%, `,, All ;remove tabs + SendRaw %clipboard% + Return + } + pasteTelephone() { backupClipboard = %clipboard% Send, ^c @@ -414,29 +429,21 @@ usePlaybackDevice(device) { winSplit() { ;split active and previous window side by side Tile("R") - Sleep, 15 - Send {AltDown}{Tab}{AltUp} - Sleep, 10 + Send {Sleep 15}{AltDown}{Tab}{AltUp}{Sleep 10} Tile("L") - Sleep, 15 - Send {AltDown}{Tab}{AltUp} + Send {Sleep 15}{AltDown}{Tab}{AltUp} } winSplitH() { ;split active and previous window on top of each other Tile("T") - Sleep, 15 - Send {AltDown}{Tab}{AltUp} - Sleep, 10 + Send {Sleep 15}{AltDown}{Tab}{AltUp}{Sleep 10} Tile("B") - Sleep, 15 - Send {AltDown}{Tab}{AltUp} + Send {Sleep 15}{AltDown}{Tab}{AltUp} } tabSplit() { Tile("L") ;tiles left - Sleep 25 ;waits for tile to finish - Send {Esc}{F6}+{Tab 2}{AppsKey}w ;break off current tab - Sleep 250 ;wait for firefox to catch up + Send {Sleep 50}{Esc}{F6}+{Tab 2}{AppsKey}w{Sleep 250} ;break off current tab WinMaximize, A ;fixes black borders on bottom Tile("R") ;tiles right Return ;and you're back in the room |