View Single Post
Old 09 March 2017, 20:48   #2
Akira
Registered User

Akira's Avatar
 
Join Date: May 2001
Location: New York
Posts: 19,265
Let's start from the basics: why do you need to open a new CLI to show a text file? Is it because you want it in a new window that you do "newcli" first?


If you do "run type readme.txt" that in itself will open a new CLI process, but on the same window.

[edit]
I just remembered newcli has a FROM parameter, so you can open a window from a script.

This is what I would do:
Get http://aminet.net/package/util/cli/mousewait

Then make a second script like this with the stuff you want to pop up in a new window:
Code:
type Readme.txt
mousewait
endcli
Then in your original script/sequence you do
Code:
newcli from script
Replace "script" with whatever name you used to save the script.

Keep in mind while this new CLI is open, whatever you have in the original script will keep running. So maybe this isn't exactly what you need (hard to tell without knowing what you want to do)

Last edited by Akira; 09 March 2017 at 20:59.
Akira is offline  
 
Page generated in 0.04509 seconds with 11 queries