I'm using Draw, Bar and Box to draw to a screen. The browser output is not always updating when I adjust parameters. I think the browser is not refreshing properly. Is there a way to force a refresh?
To see this working, head to your live site.
Search
I've just set Chrome to 'Open the new tab page'. I think that has fixed the problem.
No, still not refreshing!
I have none of these problems. Have you used a Wait vbl in the loop?
Yes, I've even tried putting a Wait Key between the Draw instructions. The browser refreshes when it feels like it!
To clarify. The problem is, when I change the code and run the prog, the output in the browser often does not show my changes straight away. Once it's set, the out put always does what it's supposed to do.
This lag between changing the code and seeing it reflected in the output is very frustrating! I'm having to load a web page into Chrome each time to force it to show my latest work.
Roll on a dedicated editor for AOZ!
L
I don't use Chrome (I use a Chromium based browser, like Chrome, called Vivaldi), so pressing F2/F1 doesn't work, and pressing the Play button doesn't, either. It tries to launch Chrome.exe instead of just using the default browser to open a HTML file, so I have to press 'Play', then the first time I manually double click the index.html file to see it, but then I just need to refresh the browser with F5 each time I press Play in AOZ.
I'd expect you can just press F5 in your browser each time you re-compile with the Play button. Just don't close your tab in-between.
If that makes sense.
I really hope they choos to use "Atom" as their editor... But thats just me I guess ;)
I always use F2 after making any changes, then F1 to run program. That solved same problem for me.
Paul, F1 launches a script called 'runchrome.bat' in the directory where the binaries of AOZ lays. You can change this batch file manually and make it open Vivaldi instead of Chrome... Just open "C:\users\<YOUR USER NAME>\appdata\roaming\runchrome.bat" in Vscode and modify it. You will see it is very simple. About the refresh not happening immediately, are you sure you press F1 after the compilation marks 'All tasks done'? As before, not every file is saved, and it might explain why. Other that that, I see no reason other than the cache of Chrome not being updated and using the old files without noticing the changes in the time of the files. This is usually resolved by clearing you browser's cache... There is a cool Chrome extension that I use call "Clear Cache" that puts a buttoon in Chrome, just click, and it is done.