Macross系列的传统
作者:kmzs 日期:2009-01-13
以歌声为武器,以会变形的小飞机、大飞船为装备,以外星怪人、怪物为主要对象,一面开现场演唱会,一面发展三角关系,一面作战的一组故事。
十大不可或缺的传统人设及剧情
1、喜欢天空的男主人公
(超时空要塞Macross,Macross Frontier,Macross Plus等)
2、喜欢唱歌的女主人公
(超时空要塞Macross,Macross 7及其OVA, Macross Frontier,Macross Plus等)
3、男主人公突遇急情不得不驾驶来路不明的战机,且首次驾驶时救了女主人公一命
(超时空要塞Macross,Macross Frontier)
4、男主人公与女主人公被困密室,一边YY,一边等待救援
(超时空要塞Macross,Macross 7, Macross Frontier)
5、Miss Macross评选
(超时空要塞Macross,Macross 7, Macross Frontier)
6、主人公开音乐会
(超时空要塞Macross,Macross 7, Macross Frontier)
7、一打仗就唱歌
(几乎全部)
8、女主人公在娘娘中餐馆帮忙或打工
(超时空要塞Macross,Macross Frontier)
娘娘主题歌歌词由中文、英文、Zentraedi文和日文(共计地球语三种,外星语一种)拼成,最完整的全文如下:好吃来来~美姑娘!娘娘~娘娘~你好娘! Gorgeous~Delicious~Deculture啊~~~おいしいニャー!
9、至少一名男主人公在骷髅中队担任飞行员
(超时空要塞Macross,Macross Frontier,Macross Zero)
10、由复杂的三角关系来推动剧情
1)超时空要塞Macross:林明美+一条辉vs.明美表哥(一女+二男)是为三角一组;一条辉+早濑未沙vs.明美(一男+二女)则为三角二组;最终结果(漫画or小说版):一条辉、早濑2012年在首次大规模移民船图上成婚,明美亦上此船(准备第三者插足?),明美表哥行踪不明。
2)Macross 7:米雷尼·吉那斯+热气·巴撒拉vs.贾姆林(一女+二男)三角组合,结果:至少到205X年为止结果不明。
3)Macross Frontier:早乙女アルト+雪莉露·诺姆vs兰华·李(一男+二女)三角组合,结果:尚在发展中,2060年之前看来不会有结果。
4)Macross Plus:谬芳容+勇·戴森vs.卡尔德·果阿·波曼(一女+二男)三角组合,结果:不明。
5)Macross Zero:工藤信+莎拉·诺姆vs.玛奥·诺姆(一男+二女)三角组合,结果:无果。
Yack Deculture!
Is a specific app running?
作者:kmzs 日期:2009-01-10
How to know whether an app is running in REALbasic? The common idea is looping through all processes and testing with the name of the app which you want to know if it's opened.
Windows
On Windows, we can do it via declares, the Win32 APIs we need to use are EnumProcesses, EnumProcessModules, GetModuleFileNameEx, etc. I wrote a function a few days ago. You can find the source code of it in Window1 of the RB project attached. I didn't implemented it in a very smart way. It gets the names of all processes, then tests to see if a specific app name can be found. It because I wanted to demonstrate how to list the paths of all processes. You may make some changes on it to exit the For loop when the app is found.
Mac OS X
On Mac, calling AppleScript functions seems the best way. You can loop through all process objects provided by the System Events application in a tell block. However, since AppleScript supports using keyword each or plural of class name to access all objects in the direct parameter of tell statement (in this case, it's the System Events application), so that the script can be simply written like this:
OR:
原载本人英文Blog。
Some compression arithmetics implemented in RB.
作者:kmzs 日期:2009-01-08
I implemented some common compression arithmetics (LZ77, RLE and Huffman) in RB above a half year ago. I've referred to several open-source C/C++ projects/libraries. None of them has any limit of using, modification and issuance, so they can be used in any project for free.
Download them here.
原载本人英文Blog。
How to hide taskbar button of a window?
作者:kmzs 日期:2009-01-03

Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Int32, ByVal nIndex As Int32, ByVal dwNewLong As Int32) As Int32
Const GWL_EXSTYLE = -20
Const WS_EX_TOOLWINDOW = &H80
Call SetWindowLong(Self.Handle,GWL_EXSTYLE,WS_EX_TOOLWINDOW)
#endif
原载本人英文Blog。
Setting the position of the mouse and so on...
作者:kmzs 日期:2009-01-03
From time to time, I see some people ask how to set the mouse position, how to simulate mouse click, and something like these. I have written a sample for Windows and Linux (by calling Win32 and XLib APIs) about two years ago, and it still works fine with the last REALbasic release as I just tested. Click here to download it.
原载本人英文Blog。