Page 2 of 9 <12345>Last »
Topic Options
#68160 - 2002-07-15 12:58 AM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I'm stuck with something I cant understand.
if I make kix to read lines from those files they come out as:
7
9
,
2
0
,
6
5
,
6
e
....

what heck is going on?
all I do is:
while @error=0
readline(1) ?
loop

does not matter which version I use.

[ 14 July 2002, 13:00: Message edited by: Lonkero ]
_________________________
!

download KiXnet

Top
#68161 - 2002-07-14 01:50 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Anonymous
Unregistered


Lonkero
Your problem is because the supplied .REG files are Unicode, and the Kix
ReadLine() function is for reading ascii files.
This topic Unicode Converter UDF discusses some unicode problems.
My input to the debate includes a UDF called ReadFile which (like PIPE)
returns an array containing the ascii text lines.
Both ascii and unicode input files can be used.

Top
#68162 - 2002-07-14 02:41 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
ajh, so, is this kinda unicode right?
when I export from regedit as "regedit4 regfile" it works just fine.

jens, does my script have to work with your files too?
_________________________
!

download KiXnet

Top
#68163 - 2002-07-14 03:31 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Anonymous
Unregistered


I think Jens need to clarify the matter.
Are the input files assumed to be:
a) Always ascii
b) always unicode
c) any combination
If Unicode is required then the Kix ReadLine function
is useless for this operation

Top
#68164 - 2002-07-14 03:53 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
was going to ask 10 minutes ago about fso but then kpnqwest's net went down. back again.

so what external (not included strickly in kix. meaning com, dos utils etc...) things maybe used?
_________________________
!

download KiXnet

Top
#68165 - 2002-07-14 04:07 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
I elected COM (a native ability of KiX) to save some strokes. I think I may need to save a lot more by the time every else chimes in.

{edit} Also, in W2K SP2 Regedit.exe always shows a (default) value even when one doesn't exist. Regedt32.exe shows exactly want is there. I lost a couple hours last night trying to delete a key that wasn't there. [Mad] [Embarrassed] trying to save the stroke for if KeyExist().

[ 14 July 2002, 16:10: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#68166 - 2002-07-14 04:08 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
hoby, yes com is native ability but what you objects you call?
are they supported by default in all required os'es?
_________________________
!

download KiXnet

Top
#68167 - 2002-07-14 04:13 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
Guys, I only tested the scripts under Windows 2000 SP2. I will go back and test the scripts under Windows 98 and reexport the .REG files again. The .REG files are supposed to be text files, not unicode-files.

I'm sorry for the lack of testing done.
_________________________
There are two types of vessels, submarines and targets.

Top
#68168 - 2002-07-14 04:17 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
I can't answer that. I only have W2K and the docs for WSH 5.5, 5.6. You have a choice of to two text based methods for FSO.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#68169 - 2002-07-14 04:20 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
that jens' post helped a lot.

makes the code almost halfsized...
_________________________
!

download KiXnet

Top
#68170 - 2002-07-14 04:20 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
The UNICODE was a nice twist. It took a couple minutes to make that determination since W2K handles it transparently on most tools.

I guess I can re-code if you change them. That probably would more fair for those OS challenged individuals. [Wink]

[ 14 July 2002, 16:21: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#68171 - 2002-07-14 04:26 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
Hmm, it seems ther are two different coding tracks right now, on using Windows scripting Host, and one without. It'll be interesting to see which one will be the more efficient one [Smile]
_________________________
There are two types of vessels, submarines and targets.

Top
#68172 - 2002-07-14 04:35 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
In my approach WSH added strokes because of FSO object creation line and the long object and methods names used in WSH. It only added one line and some chars for me.

{edit}
Now if I use more WSH functionality for things other than just reading a file, I might be able to improve the product in areas where KiX is a little shy on functionality, I might be able to make a better product.

[ 14 July 2002, 16:39: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#68173 - 2002-07-14 05:36 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
also, do we have to catch the return codes or can we let the 0's take over the window?
_________________________
!

download KiXnet

Top
#68174 - 2002-07-14 06:39 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
huh. longest part comes from multilined hex-values...
_________________________
!

download KiXnet

Top
#68175 - 2002-07-14 06:51 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
done.
without fso.
it does not handle (as without any comstuff) the unicode files. only pure text reg-files

KixGolf score = 611!!!!!!!!!!!!!!!

hoby?

[ 14 July 2002, 18:53: Message edited by: Lonkero ]
_________________________
!

download KiXnet

Top
#68176 - 2002-07-14 07:14 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Wow. (Scratching my head...)
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#68177 - 2002-07-14 07:30 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
Okay guys, I investigated the UNICODE thing. If the export is done from e.g. Windows 9x (and I believe Windows NT, though I don't have one ready right now), then the exported .REG file is a normal text file with the first line being 'REGEDIT4'.
If the export is done from Windows 2000 (and Windows xP?), then the exported file is in UNICODE. This file cannot be reimported with REGEDIT /S under Windows 9x/NT. This type of file is identified by 'Windows Registry Editor Version 5.00' and is an UNICODE file.

Allowed is only pure KiXtart, no external programs, WMI/ADSI/WSH is allowed since most have it installed anyway.

I will post an updated .ZIP file soon not containing any UNICODE files, only REGEDIT4 .REG files. But it might take me an hour or so.
_________________________
There are two types of vessels, submarines and targets.

Top
#68178 - 2002-07-14 07:35 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
yes!
I like what I'm reading!

if someone else get's under 1000 score too,
I'll start minimizing my code.
as didn't do it yet, just made it working...

[ 14 July 2002, 19:36: Message edited by: Lonkero ]
_________________________
!

download KiXnet

Top
#68179 - 2002-07-14 09:12 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Jens,
This unicode thing is a known issue. See my second post on the FAQ

Topic: Registry
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
Page 2 of 9 <12345>Last »


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

Who's Online
0 registered and 373 anonymous users online.
Newest Members
Raoul, Timothy, Jojo67, MaikSimon, kvn317
17875 Registered Users

Generated in 0.073 seconds in which 0.025 seconds were spent on a total of 13 queries. Zlib compression enabled.

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