AutoHotkey Community

It is currently May 27th, 2012, 8:52 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: October 29th, 2004, 8:06 pm 
Offline

Joined: August 17th, 2004, 7:05 pm
Posts: 38
Hi, simple script:
Code:
OnlineOffline=0

#o::
   ; Microsoft Messenger
   Run, "C:\Program Files\Messenger\msmsgs.exe"
   WinWaitActive, Windows Messenger,,5
   If ErrorLevel <> 0
   {
      MsgBox, 48, set online/offline, cannot open Windows Messenger!, 2
      Return
   }
   Send, {Alt}F
   if OnlineOffline = 0
   {
      OnlineOffline = 1
      Send, mb
   }
   else
   {
      OnlineOffline = 0
      Send, mo
   }
   WinWaitActive, Windows Messenger,,5   
   Send, {ALT}f
   Send, c
   ; Skype
   Run, "C:\Program Files\Skype\Phone\Skype.exe"
   WinWaitActive, Skype,,5
   If ErrorLevel <> 0
   {
      MsgBox, 48, set online/offline, cannot open Skype!, 2
      Return
   }
   Send, {Alt}F
   if OnlineOffline = 1
   {
      Send, cd
   }
   else
   {
      Send, cn
   }
   WinWaitActive, Skype,,5
   Send, {ALT}f
   Send, s   
Return


Cheers,
Thorsten


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: tomoe_uehara, Xx7 and 10 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group