Page 2 of 3 <123>
Topic Options
#26827 - 2002-08-10 12:26 AM Re: vbs -> Kix
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
ok, like I said, you have output which makes the console window in wkix32...
you might wonder what is the output.
it is your:
code:
CLS
color w+/n

at the start of the script.

then, I saw something which gives you some improvement in the script.
if @error <> 0
is just the same as:
if @error

also, you might not have heard, but there is ability to "$" as "nul-device"
this means, if you want to trash the output in console you do:
>nul

which means you just "kill" the output.
the same is many times done by using:
$=mycall("pff")

this way, all unneeded return codes can be throwed to "void".

what comes to not working error check in
$SQLExe = DBExecuteSQL($objConn,$sql,)

what you mean by that?
does it output error or not?
_________________________
!

download KiXnet

Top
#26828 - 2002-08-10 12:30 AM Re: vbs -> Kix
Austin Offline
Seasoned Scripter

Registered: 2002-01-24
Posts: 439
ahh... did not know the color was an output.. live and learn.

I see what you mean on the if @error.. will change.

Not working I mean that when I run the script with 4.0.2 the exec sql runs and returns no error... in 4.1 it returns with error.. so I agree there is something in there but I dont know what it could be... or why it would work in 4.0.2 but not 4.1.

Thanks again for your help.
_________________________
Austin Henderson

Top
#26829 - 2002-08-10 12:31 AM Re: vbs -> Kix
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
okey, can you post the error?
_________________________
!

download KiXnet

Top
#26830 - 2002-08-10 12:35 AM Re: vbs -> Kix
Austin Offline
Seasoned Scripter

Registered: 2002-01-24
Posts: 439
Sure... took the color and the cls out.. still see console.. have w32.kix and new kix32 in the same directory... ??

error is -2147352567

Thanks
_________________________
Austin Henderson

Top
#26831 - 2002-08-10 12:37 AM Re: vbs -> Kix
Austin Offline
Seasoned Scripter

Registered: 2002-01-24
Posts: 439
fingers ahead of brain.. wkix32.exe not w32.kix.. dont know what I am doing.. as is obvious.
_________________________
Austin Henderson

Top
#26832 - 2002-08-10 12:37 AM Re: vbs -> Kix
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
the directory does not matter as long as you call the correct interpeter.

it means you have to call wkix32.
_________________________
!

download KiXnet

Top
#26833 - 2002-08-10 12:41 AM Re: vbs -> Kix
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
ok, I'm on the windows box currently (just starting up my laptop)

you can check the error code for yourself too.

instructions can be found in:
http://81.17.37.55/board/ultimatebb.php?ubb=get_topic;f=10;t=000047
_________________________
!

download KiXnet

Top
#26834 - 2002-08-10 01:04 AM Re: vbs -> Kix
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
heh.
kix did it.
errorcode of nine with this:

$te=dectohex(-2147352567)
$te=right($te,4)
$=execute("$$te=&$te")
$te
get $
_________________________
!

download KiXnet

Top
#26835 - 2002-08-10 02:53 AM Re: vbs -> Kix
Austin Offline
Seasoned Scripter

Registered: 2002-01-24
Posts: 439
I am sorry but I do not follow and the link you posted I think is not working...

Could you offer a little more explanation on that error... also you say I have to call wkix32.exe.. is that in the script? I have never used wkix32.exe. . I am sure it is in the man.. I will check it out.

Thanks
_________________________
Austin Henderson

Top
#26836 - 2002-08-10 03:01 AM Re: vbs -> Kix
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
for me the link works well [Confused]

anyway it's error something in the faq.

made also udf out of it.

about the wkix...
if you want consoless kix you use wkix.
also you can make normal kix behave somewhat like it called with i-switch with setconsole(hide)

you get the error by typing at the command prompt:
net helpmsg 9

cheers

[ 10. August 2002, 03:40: Message edited by: Lonkero ]
_________________________
!

download KiXnet

Top
#26837 - 2002-08-10 03:40 AM Re: vbs -> Kix
Austin Offline
Seasoned Scripter

Registered: 2002-01-24
Posts: 439
hmm link works now... odd. [Smile]

ok the error is "The storage control block address is invalid."

But that gives me nothing really.. I dont understand why the script works just fine in old school but go to 4.1 and it doesnt... it should return with error = 0 just like it does in 4.0.2.

I hate to keep asking this but I still dont get hte wkix32. If I use wkixcrypt.exe to crypt it up how do I use wkix32? Are you saying that in the script I make a call to the wkix? I get a console on the script if I run it like "kix32.exe pass.kix" or if I run "wkix32.exe pass.kix" or if I use the kixcrypt or wkixcrypt... all do the same thing. I understand the set console hide I would just like it to never appear. Will it flash up even in wkix32?
_________________________
Austin Henderson

Top
#26838 - 2002-08-10 03:45 AM Re: vbs -> Kix
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
going more deep.

if you do not have any output in your script put to console your script call:
wkix32 my_script.kix

will not popup a console window in any means.
if you are lazy as I am, you can use:
wkix32 -i my_script.kix

to not show any window even if the return values or anything is shown to console.
_________________________
!

download KiXnet

Top
#26839 - 2002-08-10 03:53 AM Re: vbs -> Kix
Austin Offline
Seasoned Scripter

Registered: 2002-01-24
Posts: 439
THe -i got it.. I must have something else in there that is causing the console because it is popping a console when I ust use "wkix32.exe pass.kix"

Glad I got that solved now I just have to work on this error there... and why it happens in the new kix but not old.

Thanks so much Lonkero for your support.
_________________________
Austin Henderson

Top
#26840 - 2002-08-10 04:00 AM Re: vbs -> Kix
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
austin, I'm doing the same linus did.
I code freely in hope of getting someday fulltime job somewhere.

how this relates to your code?
I'm here to help.
I do all I can to overcome all problems.

so, all it is... I'm glad that you like my help and I am fully trying to get rid of your problem so you can rest your nights in deep sleep knowing there is "higher power" helping you...
_________________________
!

download KiXnet

Top
#26841 - 2002-08-10 04:02 AM Re: vbs -> Kix
Austin Offline
Seasoned Scripter

Registered: 2002-01-24
Posts: 439
great well I will keep looking around for solution to the error. Have a good night.
_________________________
Austin Henderson

Top
#26842 - 2002-08-10 04:05 AM Re: vbs -> Kix
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
austin, somehow I think I'll be searching for explanation...
being awake at 05:05 monitoring kixtart.org/ultimatebb.cgi? says it:
lonkero is mad but who can help him?
_________________________
!

download KiXnet

Top
#26843 - 2002-08-10 04:10 AM Re: vbs -> Kix
Austin Offline
Seasoned Scripter

Registered: 2002-01-24
Posts: 439
WOW now that is dedication....

[Eek!] [Eek!] [Eek!]
_________________________
Austin Henderson

Top
#26844 - 2002-08-10 04:21 AM Re: vbs -> Kix
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I don't really understand this.
to my knowledge (please, the one having ALL the knowledge correct me if I'm wrong):
the udf you are using, is not functioning properly with 4.10

I can't see problem in your script, so all I can think is the udf.

might look more deeply into this but would like someone like shawn or alex.h or someone with some experience with com to look at the code.
_________________________
!

download KiXnet

Top
#26845 - 2002-08-10 04:27 AM Re: vbs -> Kix
Austin Offline
Seasoned Scripter

Registered: 2002-01-24
Posts: 439
THe UDF was one that was sugguested earlier today by sealopard... it does work in 4.0.2 just not in 4.1 you are correct... in 4.1 I get the error.. in the older I dont... older returns with 0 I am wondering if it is something to do with the optional $cmdtype >>>? [Confused]

I really want to make use of the wkix32 for this script so hopefully we will find something to correct.... but ohh well such is life.. I will just keep an eye on the post.. maybe someone will chime in.. maybe the author of the udf...

Thanks so much...
_________________________
Austin Henderson

Top
#26846 - 2002-08-10 04:34 AM Re: vbs -> Kix
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
austin, one nice advice for you:
"person will get what he/she wants if he asks TOO many times"

so what I suggest you is:
write an angry or polite letter or post for the author to read.
mostlikely, if you add a reply in his udf-topic he will add a fix and reply:
"sorry, forgot that kix is developing faster than I am"
_________________________
!

download KiXnet

Top
Page 2 of 3 <123>


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

Who's Online
0 registered and 202 anonymous users online.
Newest Members
BeeEm, min_seow, Audio, Hoschi, Comet
17882 Registered Users

Generated in 0.113 seconds in which 0.063 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