Added a JS command that will run javascript outside of Dosbox#8
Added a JS command that will run javascript outside of Dosbox#8thijsk wants to merge 3 commits intodreamlayers:em-dosbox-svn-sdl2from
Conversation
658c4f7 to
723be4a
Compare
|
This is interesting and it works, but is it actually useful? |
|
I was experimenting with .bat files that can influence the look of the page that the dosbox.js is running on. So it's kind of usefull in that way. |
|
I think it makes more sense to give JavaScript access to DOSBox than to give DOSBox access to JavaScript. Settings might be more convenient via JavaScript than via a dosbox.conf file. Maybe it would be useful if JavaScript could perform actions like simulating key presses, running commands, and waiting for events. |
I created a new "dos" command that will execute the javascript in the file specified as the argument to the command.
Example:
c:>JS myscript.js
will execute the script in the browser
Usefull for building a batch file that can execute javascript commands
Any thoughts/ideas/tips?