Page 2 of 2 <12
Topic Options
#171397 - 2006-12-12 11:02 PM Re: Help with outlook script [Re: Les]
NuclearKitten Offline
Fresh Scripter

Registered: 2002-11-14
Posts: 47
Originally Posted By: Les
No, the script hits exit before that and goes bye-bye.


hrm...this is what i have now, but it still doesn't seem to execute the outlook function.
Code:
 
break on

call @scriptdir + '\outlook.udf'

outlook()


i've had enough for today. i'll try again in the morning when i can get a fresh start...

Top
#171407 - 2006-12-13 01:42 AM Re: Help with outlook script [Re: NuclearKitten]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4401
Loc: New Jersey
You could use KGen, which makes using UDFs transparent to the development process.

With KGen, you would write a TEST.TXT file in a project folder somewhere, like this:
Code:
break on

$RC = Outlook()

"The Outlook udf returned " $RC ?


Next, in the folder where your TEST.TXT file is, run KGEN TEST

(This assumes you placed KGEN.bat in the \Windows folder, or some folder in your PATH, and edited it to point to the location of the KiX32.exe and KGen.kix files, and defined the KixLibPath environment variable to point to a folder with all your common UDF files in it)

After a few seconds (and a warning that Variable $RC was not declared), you will find a TEST.KIX file in the directory, with the Outlook UDF included in it. Simply execute your TEST.KIX and verify it works!

KGen works like a Link-Editor for KiXtart. It enumerates every .UDF file in each directory specified by the KixLibPath variable. It creates an index of which UDF is in which file. It then parses your script TXT file (along with any .UDF files in the same folder) and assembles the .TXT file, all .UDF files from the current folder, and any .UDF file in your lib folder(s) needed by your script. It does so reiteratively, so that any dependencies of one UDF on another are resolved. By including all the .UDF files from the current folder, you can break larger projects into smaller, more managable parts, and still keep them all in one place.

Some other benefits of KGEN:
  • Automatically performs a Sanity check of your code, looking for mismatched quotes or parens
  • Identifies undeclared vars, duplicate var declarations, vars declared both local and global, and vars declared but not used
  • Writes a log of all the UDF files it used to complete your project
  • Creates a report (and INI file) of every var used, what line it was declared on, and what function it was declared in

KGen can be downloaded from my web site - it is the KiXDev package.

Glenn

PS - the next release of KGen (due in late Jan 07) will also create a .HTM file when the script is generated. This colorized image will help you quickly spot problems, and can be posted directly to the KORG BBS.
_________________________
Actually I am a Rocket Scientist! \:D

Top
#171408 - 2006-12-13 03:23 AM Re: Help with outlook script [Re: Glenn Barnas]
NuclearKitten Offline
Fresh Scripter

Registered: 2002-11-14
Posts: 47
hey glen! thanks a ton! this looks super cool! i'll take a look as soon as i make it to the office in the morning.
that is so cool that your company develops those tools, then offers them to fellow admins. wow - things like that, and this site are such a huge help to people. i've always found it kinda cool how IT guys are so willing to share knowledge and help each other out. keep up the good work!


Edited by NuclearKitten (2006-12-13 03:28 AM)

Top
#171444 - 2006-12-13 06:23 PM Re: Help with outlook script [Re: Glenn Barnas]
NuclearKitten Offline
Fresh Scripter

Registered: 2002-11-14
Posts: 47
glenn - i gotta hand it to you man, that is a neat little utility! the script works perfectly now.
Top
#171445 - 2006-12-13 06:28 PM Re: Help with outlook script [Re: NuclearKitten]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
and what was the issue?
_________________________
!

download KiXnet

Top
#171448 - 2006-12-13 07:34 PM Re: Help with outlook script [Re: Lonkero]
NuclearKitten Offline
Fresh Scripter

Registered: 2002-11-14
Posts: 47
Originally Posted By: Jooel
and what was the issue?


i don't know how to properly use a udf, lol.

Top
#171449 - 2006-12-13 07:35 PM Re: Help with outlook script [Re: NuclearKitten]
NuclearKitten Offline
Fresh Scripter

Registered: 2002-11-14
Posts: 47
i also found a couple of misspellings in the prf...that may have been the problem all along.
Top
#171450 - 2006-12-13 07:36 PM Re: Help with outlook script [Re: NuclearKitten]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4401
Loc: New Jersey
Cool!

I'd appreciate any feedback on the tool, docs, etc, either via email or a PM here on KORG.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
Page 2 of 2 <12


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

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

Generated in 0.077 seconds in which 0.04 seconds were spent on a total of 14 queries. Zlib compression enabled.

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