script py will not run raw_input() OR stdin()

A place to report problems and bugs in SharpCap
Forum rules


If you have a problem or question, please check the FAQ to see if it already has an answer : https://www.sharpcap.co.uk/sharpcap-faqs

Please also read about Troubleshooting USB Issues before posting.

*** Please do not post license keys - please report any problems with licensing to 'admin' by private message ***

Please include the following details in any bug report:

* Version of SharpCap
* Camera and other hardware being user
* Operating system version
* Contents of the SharpCap log after the problem has occurred.
[If SharpCap crashes, please send the bug report when prompted instead of including the log]
Post Reply
joeastro
Posts: 10
Joined: Thu Feb 13, 2020 7:09 am

script py will not run raw_input() OR stdin()

#1

Post by joeastro »

hi

can not get py scritping to allow asking for INPUT() modes
please post how to ask for input in py scripting...

input() only version 3+
raw_input() version 2.x should work but give EOF error and does not stop and wait for input
stdin() does not work either

joe
wb6dco
User avatar
admin
Site Admin
Posts: 13177
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: script py will not run raw_input() OR stdin()

#2

Post by admin »

Hi,

Yes, that would be pretty much expected because the application runs as a Windows application and will not have a console window for the standard input/standard output to connect to.

If you want to collect input from the user you will have to interact as a Windows application (show a dialogue or message box etc). You can find lots of examples of how people have done this if you search online for "ironpython show dialog".

Hope this helps, Robin
Post Reply