Page 1 of 1

Webcam property page

Posted: Thu Apr 28, 2016 1:37 pm
by tektoog
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?

This property page
This property page
Webcam-property-page.gif (45.37 KiB) Viewed 24153 times

Re: Webcam property page

Posted: Sat Apr 30, 2016 6:48 pm
by tektoog
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 ???

Re: Webcam property page

Posted: Mon May 02, 2016 3:15 pm
by tektoog
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?

Re: Webcam property page

Posted: Tue May 03, 2016 11:19 am
by Walter Sommerfeld
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!

Re: Webcam property page

Posted: Tue May 03, 2016 2:52 pm
by tektoog
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!! ;)

Re: Webcam property page

Posted: Thu May 05, 2016 6:03 pm
by tektoog
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 ;)

Re: Webcam property page

Posted: Fri May 06, 2016 4:50 am
by tektoog
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