
Quote from luishp on December 13, 2020, 8:50 pmAs you know, currently VisualNEO Web can compile for NWjs where you can use NodeJS.
I have just discovered phpDeskTop project: https://github.com/cztomczak/phpdesktopIt works very similarly as it embeds a Chromium web browser (or Internet Explorer) but using PHP instead of NodeJS.
This means we can use any neoPhp command in our VisualNEO Web desktop applications! (file read/write and databases).How to use (very similar to NWjs):
- Compile your app as a Web App.
- Download phpDeskTop for Windows.
- Unzip and delete the sample content inside the www folder.
- Copy your compiled app inside www folder.
- Edit the settings.json file located at phpDeskTop root folder to customize window size, hide the console, etc.
- Run your app by doucle-clicking phpdesktop-chrome.exe
If you want to use local SQLite or remote MySQL databases, you should copy php.ini file from neoPhp Server into phpDeskTop root folder.
I have succesfully tested SQLite VisualNEO Web sample apps :)
I will probably add this option on next release.Let me know if you have any doubts and what you think about this possibility.
As you know, currently VisualNEO Web can compile for NWjs where you can use NodeJS.
I have just discovered phpDeskTop project: https://github.com/cztomczak/phpdesktop
It works very similarly as it embeds a Chromium web browser (or Internet Explorer) but using PHP instead of NodeJS.
This means we can use any neoPhp command in our VisualNEO Web desktop applications! (file read/write and databases).
How to use (very similar to NWjs):
If you want to use local SQLite or remote MySQL databases, you should copy php.ini file from neoPhp Server into phpDeskTop root folder.
I have succesfully tested SQLite VisualNEO Web sample apps :)
I will probably add this option on next release.
Let me know if you have any doubts and what you think about this possibility.

Quote from fkapnist on December 13, 2020, 10:03 pmI just tried it out and it seems very good.
In fact it seems better than nw.exe because it will RunInRectangle in Visual NEO Win. It displays index.php. But you must first disable the console window, by editing the settings.json file.
I just tried it out and it seems very good.
In fact it seems better than nw.exe because it will RunInRectangle in Visual NEO Win. It displays index.php. But you must first disable the console window, by editing the settings.json file.



Quote from luishp on December 14, 2020, 6:47 pmI have tweaked the software to include PHP 7.4 instead of 7.1 and to load all neoPhp Plugin required libraries. I have also renamed the executable to neoAppDesktop.exe, changed the default icon and signed it with SinLios Code Signing Certificate. It should now support SQLite, ODBC, MySQL and SQL Server databases.
The download is available only for registered users from the downloads page (71 Mb):
https://visualneo.com/downloadsIt is posible to strip-down it so it's much more lighter. Take a look here for more information.
Regards.
I have tweaked the software to include PHP 7.4 instead of 7.1 and to load all neoPhp Plugin required libraries. I have also renamed the executable to neoAppDesktop.exe, changed the default icon and signed it with SinLios Code Signing Certificate. It should now support SQLite, ODBC, MySQL and SQL Server databases.
The download is available only for registered users from the downloads page (71 Mb):
https://visualneo.com/downloads
It is posible to strip-down it so it's much more lighter. Take a look here for more information.
Regards.

Quote from luishp on December 14, 2020, 8:10 pmIn fact it seems better than nw.exe because it will RunInRectangle in Visual NEO Win.
@fkapnist yes! and it's possible to use SendKeys VisualNEO Win command to the VisualNEO Web embedded application while using OnKeyDown VisualNEO Web command to execute any subroutine when a key is sent from VisualNEO Win.
It would be almost perfect if we find any two-way communication system.
In fact it seems better than nw.exe because it will RunInRectangle in Visual NEO Win.
@fkapnist yes! and it's possible to use SendKeys VisualNEO Win command to the VisualNEO Web embedded application while using OnKeyDown VisualNEO Web command to execute any subroutine when a key is sent from VisualNEO Win.
It would be almost perfect if we find any two-way communication system.

Quote from farhad2008 on December 14, 2020, 11:46 pmThank you Luis .
Thank you Luis .

Quote from Darbdenral on January 8, 2021, 7:16 amtwo-way communication system.
What would you consider two-way communication in this situation?
Example please..
two-way communication system.
What would you consider two-way communication in this situation?
Example please..

Quote from luishp on January 8, 2021, 2:43 pmWhat would you consider two-way communication in this situation?
I mean a way to call VisualNEO Win subroutines from VisualNEO Web and viceversa.
What would you consider two-way communication in this situation?
I mean a way to call VisualNEO Win subroutines from VisualNEO Web and viceversa.

Quote from Darbdenral on January 9, 2021, 3:37 amI mean a way to call VisualNEO Win subroutines from VisualNEO Web and viceversa.
I see. I'll have to think about that one.. I know I can do quite a bit with Chrome in a rectangle, send keys and such to chrome and responding to those events in chrome.. but the other way is the problem I guess..
Maybe making changes with javascript to a local folder of the VisualNeoWin program would work.. Like with json, write data to a file from VisualNeoWeb or any web page. Then monitoring for those file changes in real-time with a timer in VisualNeoWin desktop program, any changes read in the json and fire events.
It's possible?
I mean a way to call VisualNEO Win subroutines from VisualNEO Web and viceversa.
I see. I'll have to think about that one.. I know I can do quite a bit with Chrome in a rectangle, send keys and such to chrome and responding to those events in chrome.. but the other way is the problem I guess..
Maybe making changes with javascript to a local folder of the VisualNeoWin program would work.. Like with json, write data to a file from VisualNeoWeb or any web page. Then monitoring for those file changes in real-time with a timer in VisualNeoWin desktop program, any changes read in the json and fire events.
It's possible?

Quote from luishp on January 9, 2021, 8:46 amIt's possible?
@darbdenral yes, it's. But probably too complicated for most projects. I'm sure WebView2 Edge Chromium based solutions will arise soon and all this will be unnecesary.
Regards.
It's possible?
@darbdenral yes, it's. But probably too complicated for most projects. I'm sure WebView2 Edge Chromium based solutions will arise soon and all this will be unnecesary.
Regards.