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
}