Jalkhov
Member in Training
██████████████████▓░ 99%
Posts: 41
|
Post by Jalkhov on Feb 19, 2021 2:12:26 GMT
I wanted to know if there is the possibility to manage a TKN file without the need to deploy the Just Basic interface, that is to say the editor, a matter of just passing as a parameter the destination folder, file name and that's it.
This is the code I currently use
jbasic.exe -T -A MYFILE.bas Or if there is an external way to generate these files, it is also useful for me.
|
|
|
Post by xxgeek on Feb 19, 2021 4:11:12 GMT
This I know. I've been experimenting. From a command prompt in the Just Basic install Dir the below commands work as stated. As long as test.bas is in the same dir.
start jbasic.exe -T test.bas - Opens File in Editor, Creates TKN File, After saving TKN, Leaves editor Open start jbasic.exe -A test.bas - Opens the File in editor start jbasic.exe -R test.bas - Opens File in Editor, and Runs the File, Leaves editor Open even after closing the Running File start jbasic.exe - D test.bas - Opens the File in Editor, and Debugger
This last one is as close as I've got to Automation.
start jbasic.exe -T -A test.bas - Opens the File in editor, Creates TKN, After saving TKN Editor Closes.
Haven't found a way as yet to have jbasic.exe to save the file without opening the "save" dialog window. If i find a way, I'll let you knw. But be forewarned it's been attempted for years without success, other than bring in 3rd party software to "click" that "save" button.
I'm still experimenting with this. I've tried many variations possibly over 100. Not looking promising, but when a new idea pops up, I try again.
|
|
Jalkhov
Member in Training
██████████████████▓░ 99%
Posts: 41
|
Post by Jalkhov on Feb 19, 2021 11:57:07 GMT
Ok, I'll have to wait. I would like one of the experts to tell me if a "BASIC tokenizer" is programmable, that is, because I imagine that there must be some kind of "encryption" to generate such files, now the question is whether this information is open source.
|
|
|
Post by tsh73 on Feb 19, 2021 13:36:07 GMT
No. This information ('kind of "encryption" to generate such files') is not open source and discussing it likely way to get banned here.
So please don't.
|
|
Jalkhov
Member in Training
██████████████████▓░ 99%
Posts: 41
|
Post by Jalkhov on Feb 19, 2021 13:39:01 GMT
No. This information ('kind of "encryption" to generate such files') is not open source and discussing it likely way to get banned here. So please don't. Oh, ok, annotated My doubt is because I wanted to venture to make a plugin for Sublime Text (for personal convenience, but I can publish it too) that would compile those files and show the code output, but I guess I will have to work with the binaries that come in the Just Basic folder. My idea was to generate the tkn file internally without the need to show the "Save" window, but well, I guess I can work with that, thanks
|
|
Jalkhov
Member in Training
██████████████████▓░ 99%
Posts: 41
|
Post by Jalkhov on Feb 19, 2021 16:12:52 GMT
No. This information ('kind of "encryption" to generate such files') is not open source and discussing it likely way to get banned here. So please don't. So there is no way to generate such files directly without the save dialog box?
|
|