OK, thanks to some of the information in this thread and other inforfation from the web, I was abl to solve the problem. this is the VBscript:
code:
SET msn = CreateObject("Messenger.UIAutomation.1")
if msn.MyStatus=10 then
msn.MyStatus=2
else
msn.MyStatus=10
end if
and this is how it is launched from AHK:
code:
cmd=%windir%\system32\wscript.exe "%A_ScriptDir%\SwitchMSNStatus.vbs"
Run, %cmd%
now when i am sitting on my couch watching TV, and people start chatting to me, i can easily "shake them off" through one button press
thanks to everyone
regards,
rh