You could download the source code of Free Screen Recorder Pro here.
Features:
-Take ScreenShots
-Capture ScreenCasts (Avi/Gif/Mp4)
-Capture with/without Mouse Cursor
-Capture Specific Regions, Screens or Windows
-Capture Mouse Clicks or Keystrokes
-Mix Audio recorded from Microphone and Speaker Output
-Capture from WebCam.
-Can be used from Command-line (BETA).
-Available in multiple languages
-Configurable Hotkeys