I also program in Flutter, for mobile devices, however, there is a feature called: hot-reload, and every time I have to keep opening the terminal where the command was executed: flutter run -d chrome or flutter run -d windows, and pressing CTRL+R or just R ...
this completely takes away my focus, is there any way to do this with purebasic automatically with RunProgram or msvcrt->System?
I'm thinking of making a floating Sticky window, and with a "reload" button, and that will solve my problem xD
I'm using the code below, works fine to run debugging via Windows, but hot-reload isn't working.
Code: Select all
ImportC "msvcrt.lib"
system(str.p-ascii)
EndImport
Global close = 0
;OpenConsole()
system("cd C:\DOCS\MY_PROJECT_PATH\")
Delay(1000)
system("echo ok")
system("flutter run -d windows")
Repeat
system("R") ;- in this line I tried to inject R, but without success...
Until close = 1
;system("pause")
screenshot :
