Reza M.
Reza M.

Reputation: 1223

Script possibly in C# for controlling a program

This is pretty much new to me and the web didn't help much. Goal: To make a script which would control screen video capture then send it to server.

How to make the script ? is it possible to make it in C#? any guides that you guys can recommend ?

Edit: More Details:

Need a Script-> When launched it would run a screen capture program(camtasia probably)->Then it would automatically send the saved file to a server. My problem is I do not know where to start or what to look at ... hope this helps

Upvotes: 1

Views: 264

Answers (3)

Jacob
Jacob

Reputation: 78840

Since you're wanting to automate interaction with Camtasia, you should first look to see if that application has an API. If it doesn't, one option you have available is to write a script to automate UI interactions with the application. Wikipedia has a pretty good list of the types of toolkits that can help you with that. I've heard good things about AutoIt, for example.

Upvotes: 0

Nate
Nate

Reputation: 30636

You would need to write a batch file or a powershell script; the main issue you're going to have is finding a video capture program which allows itself to be controlled from the command line.

Assuming you find one, something like this would work:

C:\Program Files\Capture\Capture.exe /length: 5 /output: C:\Videos\Video1.avi

Then you'd need to FTP the output file over to a server.

As for doing this in C#, that would work just as well as batch file or powershell; but either way, the program you are using to do the video capture would need to provide a mechanism for controlling it through an API or command-line arguments.

Upvotes: 0

ChevCast
ChevCast

Reputation: 59213

This is a very vague question. You are asking how to interact with a program that (I assume) you didn't develop. You could use C# to launch the application, but unless the application has built in some sort of API for you to programatically control it with, then your out of luck.

Your first step would be to find a program that has an external API or excepts external arguments via a command line program that you can use to control it. I am not sure I've ever heard of screen capture software with such an API. Your need sounds very unique and I'm just guessing that you aren't likely going to find anything.

Upvotes: 1

Related Questions