Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

Webcam property page

Post any examples or modules that you want to share here

Webcam property page

Postby tektoog » Thu Apr 28, 2016 1:37 pm

Hey all,

I'm trying to build a webcam software and I stumble over how to call the webcam property page from FlowStone.

It seems to be possible to get it as it's a feature available in any webcam software outthere...

From what I understood it looks like a windows librairy has to be invoked: the WIA librairy...

It sounds like a bit complicated to me...

Sure as Win Movie Maker is basically installed on any windows machine, there's still this way to go thru to set the

webcam configuration, but, sure it's not that convenient...

Any one has any idea on how to do that? Or should I just give up?

Webcam-property-page.gif
This property page
Webcam-property-page.gif (45.37 KiB) Viewed 21487 times
"Essential random order for chaotic repetitive sequences"
User avatar
tektoog
 
Posts: 141
Joined: Sat Oct 30, 2010 11:49 pm
Location: Geneva - Switzerland

Re: Webcam property page

Postby tektoog » Sat Apr 30, 2016 6:48 pm

OK, after deep investigations,this look like a real nightmare to me...
Been thru hundreds of pages on the internet, and couldn't find something... :?
But I found out that when using 2 webcam components at the same time, The WIA source tab comes up to select a new device not already in use...
So I guess the webcam component is somewhat linked to the MS WIA librairy...
So my question is, would it be possible to add to the FS webcam component, the page properties( which are filter pin and format pin if I understood correctly) of the selected device used by the webcam component ???
"Essential random order for chaotic repetitive sequences"
User avatar
tektoog
 
Posts: 141
Joined: Sat Oct 30, 2010 11:49 pm
Location: Geneva - Switzerland

Re: Webcam property page

Postby tektoog » Mon May 02, 2016 3:15 pm

I investigated a bit more....
That's the one! I think... :?

HKLM\SYSTEM\ControlSet001\Control\DeviceClasses\{65E8773D-8F56-11D0-A3B9-00A0C9223196}\##?#USB#VID_041E&PID_401D#6&22991E56&0&3#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\#GLOBAL\Device Parameters

How Can I open/run this in FS?
Should be doable no?
"Essential random order for chaotic repetitive sequences"
User avatar
tektoog
 
Posts: 141
Joined: Sat Oct 30, 2010 11:49 pm
Location: Geneva - Switzerland

Re: Webcam property page

Postby Walter Sommerfeld » Tue May 03, 2016 11:19 am

Hi,

don't have a quick solution 4u now - but...

I use a tool called Autohotkey for something like that...

It can be used to automate and remotely call nearly any Window elements!

Then Compile your script and call it from FS - works like a charm in my Apps!
User avatar
Walter Sommerfeld
 
Posts: 249
Joined: Wed Jul 14, 2010 6:00 pm
Location: HH - Made in Germany

Re: Webcam property page

Postby tektoog » Tue May 03, 2016 2:52 pm

Hey Walter, Thanks a lot for taking time to answer.
Yeah, this looks like a solution, thanks a lot! 8-)
I tried the RegRead command with shell but had no luck with it... :(
So then, do you had an "Is key pressed" into the FS schematic to call the script?
Well, I'm gonna look deeper in this direction,
but I still wish for a device properties button on the webcam component!! ;)
"Essential random order for chaotic repetitive sequences"
User avatar
tektoog
 
Posts: 141
Joined: Sat Oct 30, 2010 11:49 pm
Location: Geneva - Switzerland

Re: Webcam property page

Postby tektoog » Thu May 05, 2016 6:03 pm

Does anyone know what is the correct syntax to input this expression as a correct argument in the FS Shell component?

it should be something like:

RUN ::{HKLM\SYSTEM\ControlSet001\Control\DeviceClasses\{65E8773D-8F56-11D0-A3B9-00A0C9223196}\\\?\USB\VID_041E&PID_401D\{65e8773d-8f56-11d0-a3b9-00a0c9223196}\\GLOBAL\Device Parameters}

I wonder
- does the shell primitive read # characters?
- do I have to replace empty spaces with % symbols?
- Should the path be HKLM\SYSTEM\ControlSet001\Control\DeviceClasses\{CLSID}\GLOBAL\Device Parameters
or HKLM\SYSTEM\ControlSet001\Control\DeviceClasses\GLOBAL\Device Parameters\{CLSID}

- Also is the RUN command able to load this kind of keys? otherwise which one should I use?
- Another thing, is this argument calling associated DLLs at the same time? Then that would be another story... :(

I've spent almost a week looking for infos and didn't get anywhere...
Google is not what it used to be... :(

So any help is welcome...

Thanks again Walter, still investigating this direction... slowly ;)
"Essential random order for chaotic repetitive sequences"
User avatar
tektoog
 
Posts: 141
Joined: Sat Oct 30, 2010 11:49 pm
Location: Geneva - Switzerland

Re: Webcam property page

Postby tektoog » Fri May 06, 2016 4:50 am

Ok, I give up!!! :(
It's like writing a software inside a software... Using scripts and so on... pointless using FS at the first start... :?
Java, VBS, C++ etc...do that very well
After all these researches, I just found out that the webcam component, whatever the settings that have been saved by any other software( like with Win MovieMaker), starts always the webcam with its default video format: 320x240 (for mine)
So even if the settings stored in the global paremeter registry key, or the items control panel could be called back to set parameters, the feedback data would have to be inputed into the webcam component in order to change its resolution...and then stored later on inside the schematic!
Not doable with the webcam component current state... :(
So I really wish for an upgrade of this component in a next FS update...
Too bad... I was really enjoying working on this project :(
Well, THat's all Folks,
CYA
"Essential random order for chaotic repetitive sequences"
User avatar
tektoog
 
Posts: 141
Joined: Sat Oct 30, 2010 11:49 pm
Location: Geneva - Switzerland


Return to User Examples

Who is online

Users browsing this forum: No registered users and 10 guests