neoEdge FAQ - Forum

Forum Navigation
You need to log in to create posts and topics.

neoEdge FAQ

What's neoEdge?

neoEdge is a compiled VisualNEO Win application with an embedded Microsoft Edge Web Browser (using Microsoft WebView2 Runtime). It allows for the development of Windows Desktop GUI applications using VisualNEO Web. It works as a host application that loads the Web App and is prepared to facilitate both ways communication:

  1. Allows access to all VisualNEO Win commands from the WebApp thanks to the embedded hpwPlayAction plugin.
  2. It's possible to write and read VisualNEO Win variables from the WebApp.

What's Microsoft WebView2 Runtime?

It's the Microsoft solution to replace the old Internet Explorer WebView. An utility to embed web content (HTML, CSS, and JavaScript) in Windows native applications. It's included with the last Windows 10 version and can be downloaded and installed in previous Windows versions. It's necessary in order to neoEdge to work properly. neoEdge detects if it's not installed and points the user to the download page if it's not.

How is neoEdge integrated into VisualNEO Web?

It's integrated as a menu bar icon, just as any other web browser. To run your application using neoEdge as a host, just click the neoEdge icon and your app will have access to all VisualNEO Win commands.

How do I deploy my neoEdge application?

Just be sure you check the appropiate checkbox before compiling your app in Project > Properties > Platform Options > Web. It's exactly the same procedure as with NWjs. Both deployment options share the same package.json file, wich stores information about the application. Then download the neoEdge Redistributable Package and unzip it in your compiled application folder. Double click the executable neoEdge.exe and your app will run just as any other Windows Application. No installation is necessary, just as any other VisualNEO Win application. neoEdge will load and execute your app. It will also detect the correct window size and app name to customize itself accordingly.

How do I call VisualNEO Win commands from VisualNEO Web?

There are three possible options to use VisualNEO Win commands:

  1. Use the included neoEdge plugin using it's commands just as you do with any other plugin. Just remember to enclose all VisualNEO Win variables this way: {{myVar}} instead of [myVar]. This is to avoid confussion between Web and Win variables.
  2. Include your VisualNEO Win code directly into a VisualNEO Web variable and execute it using _Exec command:
    BeginJS
    $App.myCode=`
    
    MessageBox "Hello" "How do you feel?" "Good|Fair|Poor" "[Mood]"
    If "[Mood]" "=" "1"
      AlertBox "Hello" "That’s wonderful!"
    EndIf
    If "[Mood]" "=" "2"
      AlertBox "Hello" "I hope your mood improves."
    EndIf
    If "[Mood]" "=" "3"
      AlertBox "Hello" "That’s too bad."
    EndIf
    If "[Mood]" "=" "0"
      AlertBox "Hello" "Wow, you must really be in a bad mood!"
    EndIf
    
    `;
    EndJS
    _Exec "[myCode]"
  3. Include your commands in a .txt file and execute it by providing the whole path to the _Exec command:
    _Exec "C:\\path\\mycommands.txt"

     

Are all VisualNEO Win commands included in neoEdge?

Yes, all core commands are included.

How do I add my own VisualNEO Win Plugins to neoEdge?

You will need to compile your very own neoEdge version from VisualNEO Win. The .pub source code file will be available for free. Just add any plugin command into the source code and the whole plugin will be included once neoEdge is compiled into an executable. IMPORTANT: To compile neoEdge you will need npEdge plugin from Decsoft.

Do you have more questions?
Please ask them in this forum thread.
Thank  you!

Vadim, indrayn and roccocogliano have reacted to this post.
Vadimindraynroccocogliano

Hi @luishp,

Thank you for these clear explanations ! We are all very impatient !! Have a good day !

Best regards !

luishp has reacted to this post.
luishp

Luis, thank you so much!!! This is important information!

Hi,@luishp

where is The neoEdge plugin ?

Regards

indrayn has reacted to this post.
indrayn

where is The neoEdge plugin ?

@farhad2008 it's not ready yet. It will be included in next VisualNEO Web version. Right now I'm fixing some minor errors.
Regards.

farhad2008 has reacted to this post.
farhad2008

Thank You .

Creo que cuando empezó todo esto de NeoAppBuilder personalmente esperaba que el propio Neobook sumara características Web, así que en cierto modo esperaba este "paso" hace mucho, por lo que estar frente a eso hoy me alegra mucho. Creo que esta sinergia permite unificar y potenciar VisualNeoWeb a futuro!. Desde ya muchisimas gracias por el tiempo, esfuerzo y dedicación Luis.

I have just updated the FAQ. Please feeel free to add more questions.
I hope to release the new version with neoEdge within the next week.

Best regards.

Darbdenral and Gary Chike have reacted to this post.
DarbdenralGary Chike

I am using the executable neoEdge.exe

but I cannot find

the included neoEdge plugin

mentioned in the FAQ

@fkapnist what VisualNEO Web version are you using?
If you are using an updated version (or even one year old) , It should be already installed as an included plugin.

Regards.

Quote from luishp on August 25, 2022, 8:37 am

@fkapnist what VisualNEO Web version are you using?
If you are using an updated version (or even one year old) , It should be already installed as an included plugin.

Regards.

It is a Neo Web plugin? My mistake, I thought it was for Neo Win ...

It is a Neo Web plugin?

@fkapnist yes it's. It allows using any VisualNEO Win command from VisualNEO Web but only when you execute your apps using neoEdge web browser.

Vadim and fkapnist have reacted to this post.
Vadimfkapnist

So as not to switch edit windows, A floating listbox of myVar Win variables to point and click from would help.

Quote from fkapnist on September 13, 2023, 7:37 pm

So as not to switch edit windows, A floating listbox of myVar Win variables to point and click from would help.

I mean a list of browser commands, like there were for the Internet Explorer Web Object

BrowserExecScript
BrowserLoadFromStr
BrowserExport

 

When I ran neoEdge in a rectangle I kept getting these horrible  buttons without my HTML document.....

 

I finally found the cause. Do not put a package.json file in your build folder if you run neoEdge in a rectangle.

.

Uploaded files:
  • You need to login to have access to uploads.
Vadim has reacted to this post.
Vadim

@fkapnist I don't understand why you are running neoEdge within a VisualNEO Win rectangle. You are literally running a VisualNEO Win app that contains a VisualNEO Web app, inside another VisualNEO Win app... why?

I was under the assumption that neoEdge in a rectangle was a substitute for the old IE WebBrowser Object. My mistake.

So if I want to display HTML in a rectangle, I should use ezEdge or something like that.

Thanks for the clarification.

 

luishp has reacted to this post.
luishp