diff options
author | breadcat | 2015-06-04 21:44:19 +0100 |
---|---|---|
committer | breadcat | 2015-06-04 21:44:19 +0100 |
commit | 7d83e751a5072b90a2d47b61bb85909344d966d5 (patch) | |
tree | 117561197f858412bfdabe49e5abc7a145e5f17a /functions.ahk | |
parent | beb80faba8853c594644d7b66c23208d3b308175 (diff) | |
download | ahka-7d83e751a5072b90a2d47b61bb85909344d966d5.tar.gz ahka-7d83e751a5072b90a2d47b61bb85909344d966d5.tar.bz2 ahka-7d83e751a5072b90a2d47b61bb85909344d966d5.zip |
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.
Diffstat (limited to 'functions.ahk')
-rw-r--r-- | functions.ahk | 113 |
1 files changed, 112 insertions, 1 deletions
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) |