summaryrefslogtreecommitdiffstats
path: root/functions.ahk
diff options
context:
space:
mode:
Diffstat (limited to 'functions.ahk')
-rw-r--r--functions.ahk37
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