Iuli Posted July 29, 2009 Posted July 29, 2009 Hi,I was experimenting with Yahoo! Messenger and AutoIT today, so i came up with this. I think it may be useful for status changer programs, like Y!Amp, for example. Also, post any suggestions/improvement ideas. ; Name...........: _SetYahooMessengerStatus ; Description ...: Sets a status message to an opened Y!M Window ; Syntax.........: _SendMessage($sStaus) ; Parameters ....: $sStatus - Status text/message ; Return values .: Success - 1 and sets @error to 0 ; Failure - 0 and sets @erro to : ; - 1, if Y!M execuatble is not found ; - 2, if Y!M Window or Process is not found running ; Author ........: Iuli ; Example .......; YesExample#include <SetYahooMessengerStatus.au3> $STR="Hello world!" _SetYahooMessengerStatus($STR) Switch @error Case 1 ConsoleWrite("- Y!M Executable was not found." & @CRLF) Case 2 ConsoleWrite("- Y!M Window or Process is not running." & @CRLF) Case False ConsoleWrite('+> Status modified to: "' & $STR & '"' & @CRLF) EndSwitchDownloadSetYahooMessengerStatus.au3Have fun ! [size="2"]SFXMaker[/size] - The most complete switchless installer creator software[indent][/indent]
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now