Created
December 30, 2013 13:53
-
-
Save adrian7/8182334 to your computer and use it in GitHub Desktop.
AutoIt Script to record the screen using CamStudio during a Putty session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Constants.au3> | |
; | |
; AutoIt Script to record the screen using CamStudio during a Putty session | |
; @author Adrian7 (http://adrian.silimon.eu) | |
; @Tested on Windows7 only | |
; | |
; Links: Putty - http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html | |
; CamStudio - http://camstudio.org/ | |
; | |
; Addittional comments: | |
; - CamStudio is configured to start recording on CTRL+ALT+SHIFT+5, | |
; respectively stop recording on CTRL+ALT+SHIFT+7 using Keyboard Shortcuts | |
; | |
;Just wait | |
Sleep(500); | |
;Run CamStudio (recording program) | |
Run('C:\Program Files (x86)\CamStudio\Recorder.exe') | |
;Locate the program window | |
Local $CamRecWnd = WinWait("[CLASS:CamStudio]", "", 10) | |
;Activate the program window | |
WinActivate($CamRecWnd) | |
;Wait half a second | |
Sleep(500) | |
;Send a n ESC press, just in case the program's shwoing the "Update" message | |
Send("{ESCAPE}") | |
;Wait for another second | |
Sleep(1000) | |
;Start recording (using key combination) | |
Send("^+!5") | |
;Start Putty | |
RunWait('C:\Program Files (x86)\Putty\putty.exe') | |
;Stop recording (using key combination) | |
Send("^+!7") | |
;Notify the user that the recorded program has been stopped | |
MsgBox(0, "Info", "Recording session ended... .") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment