#77070 - 2003-10-10 02:09 PM
Hide is hide, right?!
|
Ryan
Fresh Scripter
Registered: 2001-11-11
Posts: 42
Loc: the Netherlands
|
Hello scripters,
In the following example, I see a strange console behavior.
If I start this script, with wKiX32.exe and no -i switch, the console is invisible for 4 seconds, then appears very quick and is then invisible for another 2 seconds. After that the console is visible as aspected.
But in my opinion it should not appear after 4 seconds from start. If I take away "1" ?, the console doesn't show up, but hide is hide, right?!
code:
Sleep 2 $intRC = SetConsole("Hide") Sleep 2 "1" ?
Sleep 2 $intRC = SetConsole("Show") Sleep 2 "2" ?
Get $
Kind regards, Ryan
|
Top
|
|
|
|
#77072 - 2003-10-10 02:36 PM
Re: Hide is hide, right?!
|
Ryan
Fresh Scripter
Registered: 2001-11-11
Posts: 42
Loc: the Netherlands
|
If I start the same script with KiX32.exe, a console appears for 2 seconds, is then invisible for 4 seconds. So this is normal, it doesn't show up, after I hide the console with the function SetConsole("Hide"). And that's how it should work. Hide is hide, right?!
SetConsole("Hide") should hide the console, no mather what. SetConsole("Show") should show the console.
|
Top
|
|
|
|
#77075 - 2003-10-11 10:27 AM
Re: Hide is hide, right?!
|
Ryan
Fresh Scripter
Registered: 2001-11-11
Posts: 42
Loc: the Netherlands
|
Yes I know what the manual says. I have it hanging above my bed.
But what should SetConsole("Hide") do in your opinion?
Please, also try the code before you place your theories. Try it with both KiX32 and wKiX32, without -i.
|
Top
|
|
|
|
#77083 - 2003-10-12 11:44 PM
Re: Hide is hide, right?!
|
MightyR1
MM club member
Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
|
|
Top
|
|
|
|
#77086 - 2003-10-13 11:31 AM
Re: Hide is hide, right?!
|
Ryan
Fresh Scripter
Registered: 2001-11-11
Posts: 42
Loc: the Netherlands
|
Hi,
Thanx for your comment!
Lonkero I know it's just a stupid sample script, just playing around.
Since the -i switch came i've registered .KiX to open with wKiX32.exe and that switch. Sometimes I want a console. So I've more enteries on that registry key. But i want to control it in the script, console or consoleless.
But I've found out what creates the unwanted console in my wanted consoleless scripts. If i start writing a script, i copy all the SetConsole and SetOption options from a default script template. And it's the SetOption("WrapAtEOL", "ON"), that creates a console just there in a blink of an eye. Solution: take it out there! it's not needed in a consoleless script.
Sample: code:
$intRC = SetConsole("Hide") Sleep 1 $intRC = SetOption("WrapAtEOL", "ON") Sleep 1 Get $
Groetjes Ryan
|
Top
|
|
|
|
#77088 - 2003-10-13 04:20 PM
Re: Hide is hide, right?!
|
Ryan
Fresh Scripter
Registered: 2001-11-11
Posts: 42
Loc: the Netherlands
|
Hi Lonkero,
Both 4.22 Release Candidate 1 and 4.21. W2K Pro UK, SP4.
In the sample from this morning, the console is hidden for 1 second. And then popups and disappears very quick, at the SetOption("WrapAtEOL", "ON") function. I mean the console doesn't stay there, I can see it flashing and that's what i find strange. But it's NOT on the SetConsole("Hide") function.
Do you experience something different? Play around with the code, make the 2 Sleep's 3 seconds, or leave a line out of it.
Please don't tell me it's only me!
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 557 anonymous users online.
|
|
|