Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import clr
- clr.AddReference("BaseWindowsProtocolLibrary")
- from InstantMessage import *
- from System.Net import *
- from System.IO import *
- IMSettings.SettingInterface = BasicXmlSettingsBinding("C:\test.xml")
- IMSettings.SettingInterface.AutoSave = False # Avoiding the problem
- ServicePointManager.Expect100Continue = False
- protocol = IMYahooProtocol()
- protocol.Username = "[username]"
- protocol.Password = "[password]"
- protocol.Status = IMStatus.AVAILABLE
- protocol.Login()
- protocol.LoginWaitHandle.WaitOne(-1) # Since Login is async, the script will end before we even connect. We need to prevent this
- for x in range(0, 5):
- protocol.SendMessage("ntw1103", "automated poke number " + str(x) + " of 5");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement