E
E
Eugene Lerner2021-10-07 21:04:31
JavaScript
Eugene Lerner, 2021-10-07 21:04:31

How to link javascript running in browser to program running in windows?

Hello! It is necessary that javascript communicate with the program.
The simplest thing seems to be to have a file that is read (written) by both javascript and the program. How to implement it?
What else can you offer?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey Yarkov, 2021-10-07
@yarkov

Set up an http/websocket server in the program and communicate well with the script.

M
Maxim K, 2021-10-07
@mkvmaks

I don’t know how it suits your tasks - but CEFSHARP, i.e. we write the type of our browser - we go to the site, we execute JS - we get data in any form.

Y
Yury093, 2021-10-08
@Yury093

Usually, an http server is raised in the program, and from the browser they go to it via http.
It is recommended to search for "<language_of_your_program> http server example" - do this in the program.
And then AJAX is to do it in Javascript.
Here's how to tie...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question