QQ Magic Expression Realization Principle

xiaoxiao2021-03-06  71

Recently. QQ has just launched 2004II Beta II, the new function is quite good, the most attractive thing is the magic expression, called Winks in the MSN, but the QQ implementation is different MSN, QQ is used as a rash material, while MSN's Winks It is the GFI picture and sound file synthesis. Everyone knows that when the QQ Magic Expression starts, the memory will multi MagicFlash.exe, he is a simple Flash player, in fact, what is also a player, the principle is a web page. In the QQ installation directory, you can find this magicflash.exe file, you can try to drag a Flash file (swf) to the magicflash.exe icon, see this is the so-called magic expression, huh, huh. Is it very simple? . Speaking of the principle of realization, it is also very simple, I have studied carefully, in fact, MagicFlash.exe is a web view program (MFC written, I don't know what controls, anyway, I can see the web page, such as the webbrowser control) . When running magicflash.exe, the program intercepted the fixed area of ​​the current screen, do this web background, then insert an ActiveX small plugin (of course, it is Flash), used to play the Flash, while putting the Flash background In transparency, this will not know that the ghost does not show transparent Flash play in your screen. In fact, it is not transparent, but cut down the current fixed screen area as a background of the web page, huh, huh. . Is it very simple? You can also write a program like MagicFlash.exe in any language. The following is posted to play the Flash code: