Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
38 user(s) are online (23 user(s) are browsing Forums)

Members: 1
Guests: 37

musashi5150, more...

Support us!

Headlines

 
  Register To Post  

newshell con-handler (solved)
Quite a regular
Quite a regular


See User information
hello again,

is someone able to open a shell on the frontmost public screen with FKey or AllKeys?

from the Documentation: (SYS:Documentation/Kickstart/con-handler.doc)

Quote:
SYNOPSIS
NewShell WINDOW "CON:x/y/width/height/title/options"

Open("CON:x/y/width/height/title/options",...);
Open("RAW:x/y/width/height/title/options",...);
...
WINDOW SPECIFICATION
You select the initial dimensions, location, title and other
properties of the console window through a window specification
like this:

CON:x/y/width/height/title/options
...
Use slashes to separate the parameters and options.

The allowable options are:
...
SCREEN

The window opens on a public screen. The screen must already
exist. You must specify the name of the screen after the
SCREEN keyword. If the window is to open on the frontmost
public screen, use an * (asterisk) in place of the screen
name.


None of this seem to work:
newshell window "CON:187/80/800/460/Shell/NODRAG/SCREEN */CLOSE"
newshell window "CON:187/80/800/460/Shell/NODRAG/SCREEN=*/CLOSE"
newshell window "CON:187/80/800/460/Shell/NODRAG/SCREEN= */CLOSE" (space after "=")

newshell window "CON:187/80/800/460/Shell/NODRAG/CLOSE" SCREEN *"
newshell window "CON:187/80/800/460/Shell/NODRAG/CLOSE" SCREEN=*" (error because o the asterisc being not separated from the double quotes"
newshell window "CON:187/80/800/460/Shell/NODRAG/CLOSE" SCREEN= *" (error because o the asterisc being not separated from the double quotes"
newshell window "CON:187/80/800/460/Shell/NODRAG/CLOSE" SCREEN= * "

newshell window "CON:187/80/800/460/Shell/NODRAG/CLOSE" SCREEN *
newshell window "CON:187/80/800/460/Shell/NODRAG/CLOSE" SCREEN=*
newshell window "CON:187/80/800/460/Shell/NODRAG/CLOSE" SCREEN= *

newshell window "CON:187/80/800/460/Shell/NODRAG/SCREEN testscreen/CLOSE"
newshell window "CON:187/80/800/460/Shell/NODRAG/SCREEN=testscreen/CLOSE"
newshell window "CON:187/80/800/460/Shell/NODRAG/SCREEN="testscreen"/CLOSE"


Only option is to put "testscreen" as the last option:

newshell window "CON:187/80/800/460/Shell/NODRAG/CLOSE/SCREEN testscreen"


which opens a shell on a new public screen even if that screen is already been opened and is open by "screens personalize GUI option"

but as I said,

newshell window "CON:187/80/800/460/Shell/NODRAG/CLOSE/SCREEN * "

Does not work.
Both publicscreens (I tried with "testscreen" and "OWB") were set in "Screens".

I tryed all this without the "NODRAG" option too, fearing it would conflict with the "SCREEN" option.


Edited by Amigo1 on 2010/3/30 15:20:35
Go to top
Re: newshell con-handler
Home away from home
Home away from home


See User information
@Amigo1

I just set FKey to run

newshell window "CON:187/80/800/460/Shell/NODRAG/CLOSE/SCREEN * "


when I press F4 and the shell open ed on the fromtmost screen whether it be workbench or MUI

so works here.

Go to top
Re: newshell con-handler
Not too shy to talk
Not too shy to talk


See User information
@Amigo1

* is an escape character when used in double quotes. To get an asterisc you need to enter **.

Your already opened testscreen probably is not public, therefore it opens a new one which is public when you request it.

Go to top
Re: newshell con-handler
Quite a regular
Quite a regular


See User information
@thomas

That did it! Thanks a lot!

Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project