Sign in to follow this  
Followers 0
Iuli

_SetYahooMessengerStatus UDF

1 post in this topic

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 .......; Yes

Example

#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)
EndSwitch

Download

SetYahooMessengerStatus.au3

Have fun !


[size="2"]SFXMaker[/size] - The most complete switchless installer creator software[indent][/indent]

Share this post


Link to post
Share on other sites



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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0