1. Create foo.py and save to desktop:
Code: Select all
# foo.py
def foo():
print SharpCap.Cameras
SharpCap.AddCustomButton("foo", None, "foo", foo)
3. Restart SharpCap
4. Launch Scripting Console
5. Type 'print SharpCap.Cameras' in the immediate execution pane at the ">>>". Notice that it prints the camera list and then gives you ">>>" again.
6. Click "foo" on the toolbar. Now notice that you never get the ">>>" ever, ever again. You need to restart SharpCap.