Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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!
🙂
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more