Triggered Capture - please move to Scripting forum

Discussions on extending SharpCap using the built in Python scripting functionality
Borodog
Posts: 479
Joined: Fri Jan 01, 2021 7:25 pm

Re: Triggered Capture - please move to Scripting forum

#11

Post by Borodog »

Thanks Robin. The error on interrupt is cosmetic. I can live with it.
User avatar
admin
Site Admin
Posts: 17344
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Triggered Capture - please move to Scripting forum

#12

Post by admin »

Hi Mike,

I ended up asking Google Gemini if there was a neater way to cancel IronPython scripts and it came up with a cunning mechanism that (mis-)uses the tracing system built into the interpreter to be able to cancel the script in a cleaner way. I guess someone has posted about this somewhere online so it is in the training data, but having searched previously I never found it... AI can be handy sometimes. Anyway, I will be looking to implement this improved mechanism in the next update if I get time - it was one of those things where I had never been 100% comfortable with the way it works right now, so having both a concrete example of it not working right and a better alternative is enough to take some action.

cheers,

Robin
Borodog
Posts: 479
Joined: Fri Jan 01, 2021 7:25 pm

Re: Triggered Capture - please move to Scripting forum

#13

Post by Borodog »

That's great. Glad my pestering has been productive. ;O)
Post Reply