I am trying to display a html site on my gui direkt , I only can do it on a another windows (figure) but not in my GUI ...
Anyone have an idea ?
hExp = actxcontrol('Shell.Explorer.2',conSize,hObject); % Create the control
Navigate(hExp,varargin{1});
you need to pass the main object hObject to the command and the windows will be added
like this one
https://de.mathworks.com/help/matlab/matlab_external/use-internet-explorer-program-in-a-matlab-figure.html
Related
I need to share an interactive plot made using the PlotlyJS package in Julia. According to the documentation of the package PlotlyJS.jl, I need to use the "savehtml" function and set "js" argument to ":embed" in order to view it offline (screenshot attached). However, I got an error "UndefVarError: savehtml not defined". Can anyone tell me what may cause this problem?
FYI, the "savefig" function can save the plot into an HTML but the HTML cannot be viewed on other machines.
It is also acceptable if there is another way to save an HTML plot that can be assessed from other machines. The interactive plot is generated by PlotlyJS.jl.
Thanks very much in advance.
This creates a standalone file that can be used on other machines.
However, those other machines need to have access to the internet:
p = PlotlyJS.Plot(sin.(1:0.1:10))
open("f.html","w") do f
PlotlyJS.PlotlyBase.to_html(f, p; include_plotlyjs="cdn", full_html=true)
end
I just checked that this is as far as you can do as of today (version v0.8.18) as there is a bug in the source code of PlotlyBase.
I would like to use JavaScript for automation (mac JXA) to make a NSWindow and show it to the user.
I tried following this example, but it crashes when I run it in the Script Editor app.
Then I tried to make my own using barebones. As a start I just want a window with a title in it.
ObjC.import("Cocoa")
var window = $.NSWindow.alloc.init
window.setContentSize($.NSMakeSize(500, 500))
window.title = "hello world"
window.makeKeyAndOrderFront(window)
When I try to run this in Script Editor the app crashes right away. It appears to be crashing when I try to initialize the NSWindow Object.
Am I doing something wrong?
I followed this guide and they say you have to save it as an application and run it as an application.
Heres a clip where they mention it in the article.
I am working with cocos2d-x 3.1 and try to use the Cocostudio UI Editor.
This helppage http://upyun.cocimg.com/CocoStudio/helpdoc/v1.0.0.0/en/index.html uses a CCUIHelper to load the json file and create a widget. This method was removed in cocos2d-x 3.0. While searching for a solution I found a directory which is called "WidgetReader" located under "editor-support". Sadly I am unable to include it, because the vs 2013 project can't find it. (and I am unsure if that's the right place where I am searching)
Does anyone know how I can use the exportes json-files from ui editor?
Thanks!
You can try this :
#include "cocostudio/Cocostudio.h"
auto widget = cocostudio::GUIReader::getInstance()->widgetFromJsonFile("abc.json");
Anyway,the include path should add "(yourCocosRoot)/cocos/editor-support".
you can use the following code
Node* node = CSLoader::createNode("SampleUIAnimation.json");
this->addChild(node);
I need to add some code to the of several html contained in a folder on my desktop. How can i do that?
I am using a prototyping tool (Axure) on Mac and I want to add some html meta tags to the generated pages. These pages can be overwritten every time I generate the prototype. What I need is a sort of script that I can launch after re-generating the prototype, to reinsert the code. There is something for windows but it doesn't work on Mac: http://joshuamorse.com/2009/01/14/axure-protonotes-an-alternative-to-protoshare/
thanks
This is a very simple problem to solve using a shell script.
If you are not familiar with scripting, then check out the Automator program built-in to OS X.
This provides a "visual" way of building automation workflows.
This is the basic steps that your workflow will need to perform.
Find the files that need updating.
For each file
Open the file using TextEdit
Tell TextEdit to Find the Head element and replace with the new Head Element that includes the script
Save the file.
Repeat
How about a simple find/replace in multiple files using something like this:
http://search-and-replace.en.softonic.com/mac
If you are able to create some sort of 'dummy' tag in Axure, you could use that as the 'find' that you could replace with your meta tags.
That seems to be a simple way to do what you want.
Using MS Access, I need to open a PDF file, move the last page of the file to the first, and save it. But the error (see below) keeps getting in my way. (I'm good with VBA, but this is my first attempt at manipulating PDF with VBA).
Note: I'm using AcroRd32.DLL
Option Compare Database
Option Explicit
Sub x()
Dim PDFdoc As New AcroPDDoc
PDFdoc.Open "C:\Reports\MRIR\mrir.pdf" 'activex comp. can't create object
PDFdoc.MovePage 0, PDFdoc.GetNumPages
PDFdoc.Save 1, "C:\reports\MRIR\Switched.pdf"
End Sub
If you just call the document with a shell method, then the following will work according to the following Adobe help file:
http://www.adobe.com/devnet/acrobat/pdfs/PDFOpenParameters.pdf
When opening a PDF document from a
command shell, you can pass the
parameters to the open command using
the /A switch using the following
syntax:
<path to Acrobat> /A "<open parameter>=OpenActions" "<path to PDF file>"
For example:
Acrobat.exe /A "page=4=OpenActions" "C:\example.pdf"
Thanks all, but since I don't have Adobe Acrobat on my local machine (just the reader), I found a 3rd party freeware program (PDFTK) that can do this kind of basic page manipulation from the command-line.
(Kudos to David Walker for giving a detailed answer, even though I couldn't use it in the end.)