Autostart Basic Program with optional Desktop
Illia B (10243) 5 posts |
Hello! I find very useful info in the following post: But using the instructions given there I stumble upon a problem: There is also was suggested to just END the program on some key pressed. But I cannot figure out how to:
Also tried to: But only got some errors when run. I suspect a problem is with the directory name or the incorrect current directory. Please, help. |
Dave Higton (1515) 3497 posts |
It is not normal to have a directory named !Boot anywhere. A runnable application would consist of a directory whose name begins with !, and would usually contain Obey files named !Boot and !Run. The !Run file would invoke the runnable code, which in your case would be a Basic file. The most common name for that file is RunImage, but it can be anything you like. To have an application start on boot-up, look at the configuration app under Boot. |
Illia B (10243) 5 posts |
Sorry for any confusion. I’m very new to RISC OS. What I meant by saying “ When I was replacing this default I also tried to replace When replacing I also should mention that I use a distribution of Risc OS Direct |
Paolo Fabio Zaino (28) 1853 posts |
I personally do not recomment to avoid the !Boot process if you need to run the desktop after you’ve executed your program. What Dave suggested is to autorun you app with the regular desktop boot, it doesn’t matter if your program is multi-tasking or not, the desktop Boot sequence can autorun it for you.
My question is why do you need either your program OR the desktop? Is it to make it start you program immeditately? |
Illia B (10243) 5 posts |
I wondering how could i edit I will try to find this in documentation |
Paolo Fabio Zaino (28) 1853 posts |
I see, what I’d do then is: 1) Write a script that detect if the ALT key is presse and if it is then run your program This should do what you’re asking for and without complexity. HTH 1 If you are really new to RISC OS “!configure” is run by double clicking on your !Boot directory |
Illia B (10243) 5 posts |
I tried that, it worked but not exactly the way I wanted. I have already tried to set up RISC OS as the “pico” variant mentioned here: https://www.riscosopen.org/forum/forums/5/topics/15793 |
Illia B (10243) 5 posts |
I did what I wanted by editing And in the script, there is a check for the Thanks, everyone, for the advice and your time. I also discovered how to open the application contents in file explorer (Shift + Double left click) |
David J. Ruck (33) 1629 posts |
Are you trying to run a BASIC program immediately after boot, without entering the RISC OS desktop, like you could on the BBC Micro? This is possible, but it would be better on modern machines which might need to load essential drivers from disk, to allow the RISC OS desktop to start, and use the Configure tool (from the menu on the switched icon on the right of the iconbar) to set the program to run when the desktop starts. Go to Boot→Run and then drag the program from a filer window to the list. As long as the program has a MODE command at the beginning it will run full screen until it is quitted and then return to the desktop. |