Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

can popup mfc dialog from plugin in PF_Cmd_DO_DIALOG?

New Here ,
Sep 09, 2013 Sep 09, 2013

how to popup mfc dialog from plugin in PF_Cmd_DO_DIALOG command?

there are too many parameter to adjust,

so what to use popup dialog to show the solo parameters.

is there any way?

TOPICS
SDK
1.7K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 11, 2013 Sep 11, 2013

hi alexeange!

welcome to the forum, where's there's plenty of bad news from everyone!

actually it's not that difficult.

you can use whatever API you like to open a window. (as long as it's modal)

you can use MFC, QT, WinApi, or... anything really. the DO_DIALOG is just a call. nothing special about it.

what's the easiest way?

use javascript along with ExecuteScript().

the script text is internal to your plug-in and the user can't see it.

the following thread shows how to do that, and how to retreive results:

http://forums.adobe.com/message/3625857#3625857#3625857

TADA!

🙂

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jan 02, 2014 Jan 02, 2014

What if I wanted to display a web page in the popup window?  What would be the best cross-OS method to implement that?  I know that ExtendScript popups / dialogs do not allow for the display of HTML, so I don't think a simple script will do the trick.  Can you recommend a library for handling this that works on both windows and osx?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 02, 2014 Jan 02, 2014

the easiest way to display a web page is not to open a window at all, but

rather ask the os to open the url in it's default browser.

windows:

http://stackoverflow.com/questions/153046/launch-web-page-from-my-application

mac:

http://stackoverflow.com/questions/4177744/c-osx-open-default-browser

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jan 03, 2014 Jan 03, 2014

Hey Shachar,

I have seen those posts, but there would be no way to get data the user enters into the HTML that appears in the browser window back into AE automatically.  I was hoping there would be a way to get data back into AE from the webpage.  I thought that embedding a Flash object that had an HTML "window" could do the trick and using an ExternalInterface call, but that seems to be broken in CC as found here. 

http://forums.adobe.com/message/5974361

So, I thought I would go the hardcore route and try to code it up in C++.  I just don't know how to accomplish it with C++ and thought maybe there are some libraries Microsoft and Apple have that I can use?

Arie

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 03, 2014 Jan 03, 2014
LATEST

sorry arie, i haven't a clue.

i did some http work a couple of years ago, but that was against some

specially made component in a custom website.

you can use libcurl on both pc and mac for http calls, but i don't know how

you can easily display a web page in a window without doing some os

specific work, or using the mentioned interface libraries.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines