Question (newb) about some api - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4) +---- Forum: Scripting (/forumdisplay.php?fid=39) +----- Thread: Question (newb) about some api (/showthread.php?tid=68459) Question (newb) about some api by AITEE on 11-15-2006 at 01:40 AM
I have some code, from looking at other peoples code just to get the idea, and this is what I have so far, but it says somethings wrong and I don't know what. can anyone help me?? code:So I want to beable to use this code to hide (completely) the Windows Messenger window. I have the Class which is MSBLWindowClass and I'm just not sure what I am doing wrong. probably some error in not understanding a part of someone elses code. Any help appreciated, Thanks AITEE yeah, but is there a way to do exactaly that through code? or not even API just acessing that through code. btw thanks for repying so fast. ^^ RE: Question (newb) about some api by matty on 11-15-2006 at 01:57 AM
code:I just read your post, you want to hide the window, well your code was to try set the Transparency level. To hide and show a window you can use this: code: RE: Question (newb) about some api by AITEE on 11-15-2006 at 03:58 AM
Thank you so much, I figured I was going about it wrong somehow. Thanks again, fast replies. RE: Question (newb) about some api by CookieRevised on 11-15-2006 at 04:34 AM
Sorry if I'm mistaken, but if you want to hide the contactlist, why don't you simply close it (because as you know, when you close the contactlist, it will actually be hidden from sight, but still accessable)? RE: Question (newb) about some api by Plan-1130 on 11-15-2006 at 11:24 PM
code: actually SendMessageW will force the close command to be executed immidiately, for the mainwindow that might work, but using PostMessageW just puts the close command at the end of the line... Use instead: code:if you want to play it safe. RE: Question (newb) about some api by CookieRevised on 11-16-2006 at 12:53 AM
quote:Nothing is forced in either of them. The only difference is that SendMessage will wait until the message is processed. Which is in almost all code, prefereable. PostMessage returns immediatly and this can lead to many bugs in your code as it is not sure if the message is processes in time and thus things after this code line will be executed immediatly which in many cases should wait until the window has been closed (eg: clearing up handles, closing files, etc). Also, this is part of the reason that I ask for far more details of him as everything depends on what he exactly wants and what it will be used for. (PS: FYI, messenger itself does also a sendmessage when sending WM_CLOSE) RE: Question (newb) about some api by Plan-1130 on 11-16-2006 at 06:32 AM
Hmm, interesting, there was a thread in which i found PostMessageW to be working, while SendMessageW crashed wlm... |