Page 2 of 3 <123>
Topic Options
#117708 - 2004-05-26 03:51 AM Re: My Computer Info - for Help Desk use PART 3
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
We can easily help you with items 1 & 3, but I'm not sure you can get KiX to fire off a print job.

When you change the image you have to make sure it it the correct path and that you or users have access to it.

Simple HTML code to modify and add the name to the Top. Look at the code that writes the HTML and simply add your lines where you want them.

As for mailing, it depends on what email you use. There are UDF scripts for most email, please check in the FAQ section on this board. If that is not enough information or you need further assistance please let us know.

Top
#117709 - 2004-05-26 03:58 AM Re: My Computer Info - for Help Desk use PART 3
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
DOH! As pointed out by Les. This form is HTML so you could easily add some JScript or Java to do the printing.

Search the Web for some code to do such. Should be easy to find.

Top
#117710 - 2004-05-26 02:08 PM Re: My Computer Info - for Help Desk use PART 3
casacastellano Offline
Lurker

Registered: 2004-05-26
Posts: 3
Please excuse my ignornance but I am new to Kix and I would really like to know how to setup the form to add the 3 options that another individual mentioned.

It would be a great idea for my Helpdesk to have this feature. I searched threads for the answer but my novice abilities for KIX is killing me.

1. Mail to Helpdesk
2. Print to fault printer
3. Corporate logo on top of page

Thank you in advance

Top
#117711 - 2004-05-28 08:40 AM Re: My Computer Info - for Help Desk use PART 3
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
Hello estradac and casacastellano,

I see both of you only have 3 and 4 posts on the board and don't seem to follow-up on the replies.

I'm willing to help you accomplish this task, but not if you're just going to grab some code and not reply back as to whether it works or what part doesn't work.

If you don't have time to communicate on the task, then I don't have time to waste on it either.

So, if you still want help then please reply and show some interest in working on it together.

Top
#117712 - 2004-05-28 08:54 AM Re: My Computer Info - for Help Desk use PART 3
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
jscript can't print...
and afaik, no script can't print from IE.

but with kix you can easily print almost any type of document.
http://www.kixtart.org/ubbthreads/showflat.php?Cat=&Number=83095&page=25&view=collapsed&sb=3&o=all&fpart=1
_________________________
!

download KiXnet

Top
#117713 - 2004-05-28 09:12 AM Re: My Computer Info - for Help Desk use PART 3
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
Thanks Lonk.

I'll keep that in mind if these guys still want help.

Top
#117714 - 2004-10-14 10:24 PM Re: My Computer Info - for Help Desk use PART 3
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
damn, I gave all my home users (that I could reach) an diskette with this script.
with one change, it does write to diskette the data and not show it.

well, didn't really check the results before got one back.
the model part on the system is not included!
well, for many systems that does not matter but for IBM systems it's must.

also, instead of writing for each ... writeline() next, it could be written to do a collect to array and do a single writeline()
with diskette you see the difference.
instead of writing like current script (for about an minute) the write would go in seconds.
_________________________
!

download KiXnet

Top
#117715 - 2004-10-14 10:53 PM Re: My Computer Info - for Help Desk use PART 3
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
Thanks for the feedback Jooel.

I'm not quite sure though what you mean by the writeline once idea from an array. If you have working code please email me a copy, or if you want to further discuss we can do so via MSN as well.

Thanks again.

Top
#117716 - 2004-10-14 11:31 PM Re: My Computer Info - for Help Desk use PART 3
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
ja, waited for you for hours but now you online.
we shall talk...
_________________________
!

download KiXnet

Top
#117717 - 2004-10-14 11:34 PM Re: My Computer Info - for Help Desk use PART 3
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
oh, and the OSID code can be replaced totally like you already seem to have (at least partially) done
_________________________
!

download KiXnet

Top
#117718 - 2004-10-16 03:45 PM Re: My Computer Info - for Help Desk use PART 3
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
k, doc...
did some test.
on non-cached drive (like diskette) the speed difference is huge.
using my way (only one writeline at the end of record udf):
Quote:

running Computer Inventory... Done.
Saving Info to Diskette...Success.
runtime: 13369


Invent done. press any key to quit.




and the current way:
Quote:

running Computer Inventory... Done.
Saving Info to Diskette...Success.
runtime: 169994


Invent done. press any key to quit.




for local HD where most likely the cache is enabled, it's not that bad.
_________________________
!

download KiXnet

Top
#117719 - 2004-10-16 05:12 PM Re: My Computer Info - for Help Desk use PART 3
Trackz Offline
Fresh Scripter

Registered: 2004-03-18
Posts: 37
Loc: Rotterdam, The Netherlands
Maybe you can try to write all data to HD, and put a command at the end to write data to floppy?
Top
#117720 - 2004-10-16 05:30 PM Re: My Computer Info - for Help Desk use PART 3
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
The point is that a single WRITELINE of a longer string is more efficient than multiple WRITELINEs of shorter strings. This will be true independent of medium used but will be more noticable the slower the write speed of the destination medium is.
_________________________
There are two types of vessels, submarines and targets.

Top
#117721 - 2004-10-16 05:44 PM Re: My Computer Info - for Help Desk use PART 3
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
da.
the weird thing is.
for reading kixtart reads the whole file to mem to boost the read.
why isn't this the case with write?

keep the whole file in mem until close() is issued.
_________________________
!

download KiXnet

Top
#117722 - 2004-10-16 06:34 PM Re: My Computer Info - for Help Desk use PART 3
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
In that case, WRITEs would not be committed until the close, which might have undesirable side effects.
_________________________
There are two types of vessels, submarines and targets.

Top
#117723 - 2004-10-16 10:04 PM Re: My Computer Info - for Help Desk use PART 3
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
Thanks Jooel,

Please email me your code so that I can review your changes as well as tidy up the script in some other areas.


Top
#117724 - 2004-10-16 11:57 PM Re: My Computer Info - for Help Desk use PART 3
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
well...
there is nothing so much different.
the one referenced here basically is just the same as yours but the write is different.

should still add the FSAV support though...
_________________________
!

download KiXnet

Top
#117725 - 2004-10-17 12:38 AM Re: My Computer Info - for Help Desk use PART 3
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
k, added the FSAV part...
_________________________
!

download KiXnet

Top
#117726 - 2004-11-10 08:49 PM Re: My Computer Info - for Help Desk use PART 3
JTT Offline
Fresh Scripter

Registered: 2002-10-14
Posts: 32
Loc: Utah
I've been playing with this script and I've very impressed, everyone involved has done a great job with it. I've modified the output and am actually mapping a network drive and copying the file from the temp directory to the network drive so that we can update the information in a database for inventory purposes.

The problem I have is that the script runs fine if I run it alone, but when I call it from the logon script it doesn't copy the file. When I run the debug I see that it's calling the inventory script properly, but from that point I'm lost because I'm not sure how the CALL statement works past there.

Any help would be appreciated as I try to learn Kix.

Top
#117727 - 2004-11-10 08:54 PM Re: My Computer Info - for Help Desk use PART 3
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
If it makes it past the CALL and actuall finds and runs the CALLed script, then you should consider it the same as inline code. Check for either implied paths or duplicate variables or duplicate file handles.
_________________________
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 3 <123>


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

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

Generated in 0.088 seconds in which 0.033 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