Trying to learn Iron Python but running into problems with the procedure creating a custom button on the lower frame.
Using the sample script provided returns a "4 arguments required" There are 4 arguments listed.
What am I doing wrong?

Hello Robin
First, may my wife from Ireland and myself offer to you and the people of England our heartfelt sorrow and sympathies for sad attack by scumbags in Manchester.

Here's what the I used copied from the help() screen:

#Do the same a slightly simpler way
tSharpCap.SelectedCamera.GetControl(CommonPropertyIDs.Exposure).Value = 0.1

#Add a custom button to the toolbar that will open the first camera when it is clicked
def selectFirstCamera():
SharpCap.SelectedCamera=SharpCap.Cameras[0]
SharpCap.AddCustomButton("Test", None, "Select the first camera", selectFirstCamera)

Responed also
Traceback (most recent call last):
File "<string>", line 2, in <module>
NameError: name 'tSharpCap' is not defined

Could it be the interpreter is corrupted? About 2 years I had a project with a Raspberry that used Python.
I had read that Python 3 had serious problems at that time.

Hi Robin,
No luck. Still getting either syntax error or unexpected tokens. Either I'm still doing something wrong or there's something corrupted in the interpreter or maybe even the compiler. Below is what I'm doing.

#List the cameras available
print SharpCap.Cameras

#Open the first camera
SharpCap.SelectedCamera = SharpCap.Cameras[0]

#List the controls on the open camera
print SharpCap.SelectedCamera.Controls

#Print the value of the first control
print SharpCap.SelectedCamera.Controls[0].Value

#Find the exposure control and set its value to 0.1
SharpCap.SelectedCamera.Controls.Find(lambda x:x.Id == CommonPropertyIDs.Exposure).Value = 0.5

Ah, I think you are typing the '.' and '>' characters at the beginning of the lines - you don't want to type those as they are the prompts that the Python interpreter puts up to show you where and what to type.

Capture.PNG (13.32 KiB) Viewed 964 times

I have highlighted in yellow the text that I actually typed in the screenshot above. Note that there is a tab typed at the beginning of the SharpCap.SelectedCamera = SharpCap.Cameras[0] line. Also that I needed to press <Enter> twice after that line - once to get the second '...' prompt and a second time to get back to the >>> prompt. If I'd have wanted to put more lines of code in my function definition, I'd have continued to press tab at the beginning of each line where prompted with ...

Sorry to be a P.I.T.A. So far it seems to work except for adding a button to the tool bar. When I run the script it does not create
the button. This what I run as the last lines:

#Add a custom button to the toolbar that will open the first camera when it is clicked
def selectFirstCamera():
SharpCap.SelectedCamera=SharpCap.Cameras[0]
SharpCap.AddCustomButton("Test", None, "Select the first camera", selectFirstCamera)

Been learning scripting. Just to say I copied the very last 3 lines of script you posted. Indented the second one ran it and it works. At first it didn't seem to then realised I hadn't made the SharpCap window wide enough to see the button tacked onto the end.