torels Posted October 14, 2008 Share Posted October 14, 2008 (edited) Hi there I was Playing around with an old vb program that changed messenger's Personal Message and thout to bring it to autoit Here is the code! Func SetPSM($text) $hParentWnd = WinGetHandle("[CLASS:MSBLWindowClass]","") If $hParentWnd <> 0 Then $hChildWnd = ControlGetHandle($hParentWnd,"", "[CLASS:DirectUIHWND]") If $hChildWnd <> 0 Then SendMessage($hParentWnd, 0x111, 56606, 0) For $i = 1 To StringLen($text) SendMessage($hChildWnd, 0x102, Asc(StringMid($text, $i, 1)), 0) Next SendMessage($hChildWnd, 0x102, 0xD, 0) EndIf EndIf EndFunc Func SendMessage($hwnd,$wMsg,$wParam,$lParam) $dc = DllCall("User32.dll", "Long", "SendMessage", "Long", $hwnd, "Long", $wMsg, "Long", $wParam, "Long", $lParam) EndFunc What do you think about it ? Comments are welcome Edited October 15, 2008 by torels Some Projects:[list][*]ZIP UDF using no external files[*]iPod Music Transfer [*]iTunes UDF - fully integrate iTunes with au3[*]iTunes info (taskbar player hover)[*]Instant Run - run scripts without saving them before :)[*]Get Tube - YouTube Downloader[*]Lyric Finder 2 - Find Lyrics to any of your song[*]DeskBox - A Desktop Extension Tool[/list]indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org Link to comment Share on other sites More sharing options...
Pain Posted October 14, 2008 Share Posted October 14, 2008 (edited) Am I using a old version of AutoIt or isn't it _SendMessage and require SendMessage.au3? Edited October 14, 2008 by Pain Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted October 14, 2008 Share Posted October 14, 2008 (edited) The old one seems better to me, that one could set the icon aswell Edited October 14, 2008 by AdmiralAlkex .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
torels Posted October 15, 2008 Author Share Posted October 15, 2008 that sets the now playing Message this one sets the Personal message (the gray one) Some Projects:[list][*]ZIP UDF using no external files[*]iPod Music Transfer [*]iTunes UDF - fully integrate iTunes with au3[*]iTunes info (taskbar player hover)[*]Instant Run - run scripts without saving them before :)[*]Get Tube - YouTube Downloader[*]Lyric Finder 2 - Find Lyrics to any of your song[*]DeskBox - A Desktop Extension Tool[/list]indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org Link to comment Share on other sites More sharing options...
jvanegmond Posted October 15, 2008 Share Posted October 15, 2008 that sets the now playing Messagethis one sets the Personal message (the gray one) No it doesn't. The other one can set the personal message, including with an icon: Games, Music, Office or None. github.com/jvanegmond Link to comment Share on other sites More sharing options...
torels Posted October 15, 2008 Author Share Posted October 15, 2008 No it doesn't. The other one can set the personal message, including with an icon: Games, Music, Office or None.They are 2 different things (msn 9 Beta also treats them differently in 2 separate spaces)one is a non-interactive message... displayed by default. Wen you listen to music /play games/use office another personal message appears cantaining a link to msn music store or something else in case of games and office (I havn't got the faintest idea of where it brings in these 2 cases) Some Projects:[list][*]ZIP UDF using no external files[*]iPod Music Transfer [*]iTunes UDF - fully integrate iTunes with au3[*]iTunes info (taskbar player hover)[*]Instant Run - run scripts without saving them before :)[*]Get Tube - YouTube Downloader[*]Lyric Finder 2 - Find Lyrics to any of your song[*]DeskBox - A Desktop Extension Tool[/list]indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org Link to comment Share on other sites More sharing options...
jvanegmond Posted October 15, 2008 Share Posted October 15, 2008 A screenshot of what exactly the difference is would be helpful. This is still not making sense. Maybe it's a feature I am unaware of in MSN. github.com/jvanegmond Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted October 16, 2008 Share Posted October 16, 2008 @torels I understand now, I haven't runned it yet but it look alright @Manadar the personal message is what is showing when you don't have "show now playing music" (or whatever it's in english) on. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
jvanegmond Posted October 16, 2008 Share Posted October 16, 2008 the personal message is what is showing when you don't have "show now playing music" (or whatever it's in english) on.In that case, the code by CoePSX does the same and more. github.com/jvanegmond Link to comment Share on other sites More sharing options...
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