Page 2 of 2 <12
Topic Options
#77090 - 2003-10-13 05:36 PM Re: Hide is hide, right?!
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Does that mean I have to apologize to Patty? [Embarrassed]

...tonight's menu is crow a la king
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#77091 - 2003-10-13 06:57 PM Re: Hide is hide, right?!
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22343
Loc: OK
no, it does not mean as patty was still wrong.
he just quessed what was going instead of investingating it.

[ 13. October 2003, 18:57: Message edited by: Lonkero ]
_________________________
!

download KiXnet

Top
#77092 - 2003-10-13 10:51 PM Re: Hide is hide, right?!
MightyR1 Offline
MM club member
*****

Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
So I was wrong heh???

try this:
Beep
;J's test code --> flashes
Sleep 2
$=SetConsole("hide")
"some output to verify the console is really hidden"
Sleep 2
Play "1g2d600f600f600f6d400f"


then this:
Beep
;Patty's 1st test code --> hidden
Sleep 2
$=SetConsole("hide")
;"some output to verify the console is really hidden"
Sleep 2
Play "1g2d600f600f600f6d400f"



and finally this:
Beep
;Patty's 2nd test code --> flashes
Sleep 2
SetConsole("hide")
;"some output to verify the console is really hidden"
Sleep 2
Play "1g2d600f600f600f6d400f"


My results:
  • $=setconsole with a "bla" --> flash
  • $=setconsole without "bla" --> no flash
  • setconsole without "bla" --> flash
Hmmm,
why do I doubt my brain... [Razz]
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
#77093 - 2003-10-13 10:54 PM Re: Hide is hide, right?!
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22343
Loc: OK
patty, there is no console output in your test code.
so, it does not fit.
you add output after the hide, it surely does flash.
_________________________
!

download KiXnet

Top
#77094 - 2003-10-13 10:57 PM Re: Hide is hide, right?!
MightyR1 Offline
MM club member
*****

Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
In my second test code there is console output!!!

Investigate and see that the setconsole can be the only command generating the output...Therefore flashing screen.
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
#77095 - 2003-10-13 11:01 PM Re: Hide is hide, right?!
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22343
Loc: OK
you still don't listen to me.
your code:
Beep
;Patty's 1st test code --> hidden
Sleep 2
$=SetConsole("hide")
"some output to verify the console is really hidden"
Sleep 2
Play "1g2d600f600f600f6d400f"



does flash.
you just commented out that output line after setconsole-hide to prove something...
dunno what.
_________________________
!

download KiXnet

Top
#77096 - 2003-10-13 11:17 PM Re: Hide is hide, right?!
MightyR1 Offline
MM club member
*****

Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
In my first test code the "" text is commented, not uncommented... (your last code = your own)

What I'm trying to prove is that setconsole generates a dos box if the return value is not 'catched' in a variable, just like the manual said it would.
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
#77097 - 2003-10-13 11:21 PM Re: Hide is hide, right?!
macIntoz Administrator Offline
Administrator
*****

Registered: 2002-11-12
Posts: 22
k, and I was just stating that it needs to have visible console to hide it.
like, you will end up with flashing window if you trust to setconsole in wkix32.

that's why simple:
$=redirectoutput("%temp%\mytrash.dat")

does the job the best.

Top
#77098 - 2003-10-13 11:25 PM Re: Hide is hide, right?!
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11162
Loc: Boston, MA, USA
quote:
setconsole in wkix32
is an oxymoron as the reason you're using WKIX32 is to NOT have the console in the first place. Secondly, if you do use WKIX32, then why do you want to generate cosole output. These things are all mutually exclusive and more indicative of sloppy coding practices.
_________________________
There are two types of vessels, submarines and targets.

Top
#77099 - 2003-10-13 11:27 PM Re: Hide is hide, right?!
MightyR1 Offline
MM club member
*****

Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
Agreed, but the topic started saw a "strange" setconsole behaviour.

I tried to show it's not strange, but by design [Wink]
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
#77100 - 2003-10-13 11:27 PM Re: Hide is hide, right?!
macIntoz Administrator Offline
Administrator
*****

Registered: 2002-11-12
Posts: 22
not exclusively.
I do have some tasks where I want to see also console stuff as kix has no pipe.

Top
#77101 - 2003-10-13 11:33 PM Re: Hide is hide, right?!
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11162
Loc: Boston, MA, USA
REDIRECTOUTPUT is the piping equivalent in KiXtart.
_________________________
There are two types of vessels, submarines and targets.

Top
#77102 - 2003-10-13 11:39 PM Re: Hide is hide, right?!
macIntoz Administrator Offline
Administrator
*****

Registered: 2002-11-12
Posts: 22
so how do you pipe with it stuff from as example telnet window?
Top
#77103 - 2003-10-13 11:46 PM Re: Hide is hide, right?!
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11162
Loc: Boston, MA, USA
You're now hijacking the thread with an unrelated issue. You can send information via Telnet as outlined e.g. in Sendmail() - send mail with telnet . Or use a telnet-COM-component. Or, even better, start a new threat in which you outline your exact requirements with regards to interfacing with Telnet.
_________________________
There are two types of vessels, submarines and targets.

Top
#77104 - 2003-10-14 11:25 AM Re: Hide is hide, right?!
Ryan Offline
Fresh Scripter

Registered: 2001-11-11
Posts: 42
Loc: the Netherlands
I see that many give facts as comments. I'd love to see opinons. That's totaly different! To improve is let the old idea's go, and find new one's. (sorry Bill G. [Big Grin] )

I find the flash irritating. I hope we can suggest an improvement here.

Here's another small sample, where it doesn't flash on the comment, but on the SetOption. Wouldn't it be nice if it didn't flash at all? From the moment you state "Hide" till the moment you state "Show", it should be hidden. For those who like the flash, maybe SetConsole("Flash") is a nice suggestion. [Razz]

code:
$ = SetConsole("Hide")
$ = SetOption("WrapAtEOL", "ON")
Sleep 2

;Let my program do some stuff...

$ = SetConsole("Show")
Sleep 2
;At this point i want some interaction with the program...

"This is a very very looonnnnnggggggg line, just to see if it wraps at the end of the line."
Sleep 2

Jens, we all have our own purposes.

Top
#77105 - 2003-10-14 11:37 AM Re: Hide is hide, right?!
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22343
Loc: OK
full control over the console indeed would be nice.
maybe even setconsole("destroy") and setconsole("create")
this way we don't need to reserve space for console-memory.
also the redirectoutput should not require console at all.

and jens, sure it was not unrelated.
console output in some scripts are really needed but one does not want the console to show for ever.
your comment about telnet is irrelevant as telnet was stated just as an example.
_________________________
!

download KiXnet

Top
Page 2 of 2 <12


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 104 anonymous users online.
Newest Members
vertage, dimi575, Drecksnacken, Nlill, webtools321
17735 Registered Users

Generated in 0.042 seconds in which 0.014 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org