From 7d83e751a5072b90a2d47b61bb85909344d966d5 Mon Sep 17 00:00:00 2001 From: breadcat Date: Thu, 4 Jun 2015 21:44:19 +0100 Subject: Replace secret.ahk and improve hotstrings secret.ahk replaced with a variables file for easier maintenance and readability. Hostrings set to 'autofire', but are prefixed with underscore. --- functions.ahk | 113 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 112 insertions(+), 1 deletion(-) (limited to 'functions.ahk') diff --git a/functions.ahk b/functions.ahk index 69966d1..9e7ae09 100644 --- a/functions.ahk +++ b/functions.ahk @@ -115,7 +115,7 @@ typeDocuments() { Return } -typeVault() { +typeSync() { If A_OSVersion in WIN_XP { Send %A_MyDocuments%\Vault\ @@ -247,6 +247,117 @@ borderlessFullscreen() { ;borderless fullscreen script from PCGW (http://pcgamin Return } +mstscSpecific() { + If A_OSVersion in WIN_XP + { + global serverLocalIPAddress + Run mstsc /v:%serverLocalIPAddress% + } + Else + { + global serverRemoteIPAddress + Run mstsc /v:%serverRemoteIPAddress% + } + Return + } + + +insertRegards() { + global firstName + Send,`n`nRegards,`n%firstName%. + Return + } + +insertKindRegards() { + global firstName + Send,`n`nKind regards,`n%firstName%. + Return + } + +insertEmailAddress() { + If A_OSVersion in WIN_XP + { + global workEmailAddress + Send, %workEmailAddress% + } + Else + { + global homeEmailAddress + Send, %homeEmailAddress% + } + Return + } + +insertWorkIP() { + global workIPAddress + Send, %workIPAddress% + Return + } + +insertSIPIP() { + global workSIPAddress + Send, %workSIPAddress% + Return + } + +insertTelephoneNumber() { + If A_OSVersion in WIN_XP + { + global workPhoneNumber + Send, %workPhoneNumber% + } + Else + { + global homePhoneNumber + Send, %homePhoneNumber% + } + Return + } + +insertMobileNumber() { + global mobilePhoneNumber + Send, %mobilePhoneNumber% + Return + } + +insertAddress() { + If A_OSVersion in WIN_XP + { + global workAddress + Send, %workAddress% + } + Else + { + global homeAddress + Send, %homeAddress% + } + Return + } + +insertPostCode() { + If A_OSVersion in WIN_XP + { + global workPostCode + Send, %workPostCode% + } + Else + { + global homePostCode + Send, %homePostCode% + } + Return + } + +searchCustomer() { + global crmSearch + ClipSaved := ClipboardAll + Send, ^c + Run, %crmSearch%%clipboard% + Clipboard := ClipSaved + ClipSaved = + Return + } + toggleAudioDevice() { ;toggle between default audio output (http://ml.pe/optimizing/2013/changing-the-default-sound-device-using-autohotkey/) switch := !switch If (switch) -- cgit v1.2.3