/BadCpu

play BadApple in Windows Task Manager

Primary LanguageC++

#BadCpu

Demo

Play BadApple

1

How to Play:

Download PlayMe.zip, unzip it and follow the readme.txt inside
下载PlayMe.zip,解压缩然后根据readme.txt的指示操作

How To Play?(Only tested in Win7)

  1. Put the frames folder to somewhere you like
  2. Edit cfg.ini and change the SCREENSHOT_ADDRESS IMAGE_PATH to where your frames folder located
  3. Open Windows Task Manager
  4. Open cpu_play.exe
  5. Make sure all loadings are good, press any key to play

怎么玩?(目前只在Win7下测试过)

  1. 把frames文件夹随便放到一个合适的位置
  2. 编辑cfg.ini,把SCREENSHOT_ADDRESS和IMAGE_PATH改到frames所在的位置
  3. 编辑cfg.ini,把WINDOW_NAME改成任务管理器的窗口名(中文Windows系统一般叫“Windows 任务管理器”)
  4. 打开任务管理器
  5. 打开cpu_play.exe
  6. 确保所有的loading都成功,然后按任意键播放

Sin Wave

1

Line

1

Reference:

Draw in Windows:
  1. Learning to Draw Basic Graphics in C++
    http://www.informit.com/articles/article.aspx?p=328647&seqNum=3
  2. Transparent Bitmaps
    http://www.winprog.org/tutorial/transparency.html
  3. Bitmaps, Device Contexts and BitBlt
    http://www.modula2.org/win32tutor/bitmaps.php
  4. Timer
    http://www.modula2.org/win32tutor/animation.php
  5. Capture a window and save it
    http://www.codeproject.com/Articles/19192/How-to-capture-a-Window-as-an-Image-and-save-it
    http://stackoverflow.com/questions/7292757/how-to-get-screenshot-of-a-window-as-bitmap-object-in-c
  6. Take Screen shot
    http://planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=10754&lngWId=3
    http://stackoverflow.com/questions/9524393/how-to-capture-part-of-the-screen-and-save-it-to-a-bmp
  7. Edit Pixel
    http://stackoverflow.com/questions/2750988/c-reading-and-editing-pixels-of-a-bitmap-image
  8. Make pixels transparent
    https://social.msdn.microsoft.com/Forums/en-US/88c7d2fc-32fe-44ce-b367-48d4fd114c09/how-to-replace-two-colors-in-hbitmap-in-wince-?forum=vssmartdevicesnative
DavesFrameClass(the window class that drew the CPU meter):
  1. http://blogs.msdn.com/b/oldnewthing/archive/2007/07/25/4036123.aspx
  2. http://bbs.2ccc.com/topic.asp?topicid=161955
  3. Graphical Monitor
    https://www.autoitscript.com/forum/topic/118540-graphical-monitor-of-whatever/
Matlab:
  1. Get audio from video
    http://uk.mathworks.com/matlabcentral/newsreader/view_thread/291514
    http://stackoverflow.com/questions/27670714/video-read-in-matlab-audio-output-port-is-not-relavant
  2. Draw frequency(spectral analysis)
    http://uk.mathworks.com/matlabcentral/fileexchange/38837-sound-analysis-with-matlab-implementation/content/Sound_Analysis.m
Laser Badapple:
  1. https://marcan.st/projects/openlase/