Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
AutoIt Script to record the screen using CamStudio during a Putty session
#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
You can’t perform that action at this time.