MediaInfoLib icon indicating copy to clipboard operation
MediaInfoLib copied to clipboard

How do I change the Inform() return format to json?

Open Qriist opened this issue 1 year ago • 3 comments

Hi, I'm working on a wrapper for MediaInfo.dll in AHKv2. I have the basic Inform functionality working but I can't figure out how to call Inform_Set like the docs say: image The above is the only place that function name appears in the documents, save one reference in the VB6 examples. Since everytime I try to call Inform_Set I get a "function not found" error, I am assuming the function has changed at some point in the last 20 years. XD

Anyways, any tips toward resolving this would be very appreciated. Thank you!

Qriist avatar Aug 04 '24 07:08 Qriist

I figured it out! :D

Seems Inform_Set's functionality got rolled into Option?

At any rate, that solves my immediate issue, but would you please point me at the correct place in the code (or updated documentationšŸ¤ž) to look at the current list of options? I did a quick search of the repository, but there's over 200 results for option and I'm not quite sure what I'm looking for. Thanks!

Qriist avatar Aug 04 '24 08:08 Qriist

You can try looking at the source code for MediaInfo's GUI here: https://github.com/MediaArea/MediaInfo/blob/master/Source/GUI/VCL/GUI_Main.cpp Look for all the I->s inside the void __fastcall TMainF::Refresh(TTabSheet *Page) function and it may help you. I is a MediaInfoList there.

cjee21 avatar Sep 29 '24 18:09 cjee21

There is a file with almost all available options: https://github.com/MediaArea/MediaInfo/blob/master/Source/Common/Core.cpp

cjee21 avatar Nov 15 '24 04:11 cjee21