Skype for Business snippet
Posted: 30 Oct 2017, 05:13
Simple but incredibly useful snippet to ignore Skype for Business's clumsy interface when trying to contact someone. Select an email adress and hit #s - alternatively, hit #s and type in the name of the person you wanna contact. Note that you should customise this script to include your default organization name.
By the way, if you use Skype alot, you could add a "sip:youremail@yourorganisation.com" URL in your e-mail signature. Should work, and is quite cool.
Requires GST() by Learning One
By the way, if you use Skype alot, you could add a "sip:youremail@yourorganisation.com" URL in your e-mail signature. Should work, and is quite cool.
Code: Select all
#s:: ; Open Skype for Business
If InStr(toOpen := GST(), "@")
Run, sip:%toOpen%
else if InStr(toOpen := Clipboard, "@")
Run, sip:%toOpen%
else
{
InputBox, toOpen, Skype Me!, Name Surname,, 155, 125,,,,, % Clipboard
If ErrorLevel
return
else
{
StringReplace, toOpen, toOpen, %A_Space%,., All ; Replaces spaces to create email adress
StringReplace, toOpen, toOpen, å,a, All ; Some crude string replacement
StringReplace, toOpen, toOpen, ö,o, All
StringReplace, toOpen, toOpen, ä,a, All
Run, sip:%toOpen%@yourorganisation.com ; Insert your organisation name here
}
}
return
Code: Select all
gst() { ; GetSelectedText or FilePath in Windows Explorer by Learning one
IsClipEmpty := (Clipboard = "") ? 1 : 0
if !IsClipEmpty {
ClipboardBackup := ClipboardAll
While !(Clipboard = "") {
Clipboard =
Sleep, 10
}
}
Send, ^c
ClipWait, 0.1
ToReturn := Clipboard, Clipboard := ClipboardBackup
if !IsClipEmpty
ClipWait, 0.5, 1
Return ToReturn
}