I'm having a problem with some code and was hoping someone could help...
Client = hs.Plugin("Message Server").GetLastConnected
if Client = hs.Plugin("Message Server").GetLastConnected then
hs.speak Client & " is connected"
else
hs.speak Client & " is not connected"
end if
The error message generated is a type mismatch. The script errors on the the line in italics. If I substitute a string with quotes for 'Client' everything works.
Any suggestions?
Thanks:
Don
Client = hs.Plugin("Message Server").GetLastConnected
if Client = hs.Plugin("Message Server").GetLastConnected then
hs.speak Client & " is connected"
else
hs.speak Client & " is not connected"
end if
The error message generated is a type mismatch. The script errors on the the line in italics. If I substitute a string with quotes for 'Client' everything works.
Any suggestions?
Thanks:
Don
Comment