Page 1 of 2 12>
Topic Options
#177739 - 2007-07-11 01:15 PM New kixtarter
c4nm7 Offline
Fresh Scripter

Registered: 2007-07-11
Posts: 10
Loc: Northern Hemisphere
Hello everybody, im new to kiXtart (not in scripting) and i really want to learn some. i already know pretty good Autoit (take a look at my programs in my site) and a bit of liberty basic and ruby (very few).

Can anyone assist me in my first steps in KiXtart?
Is there any KiXtart editor? (like scite?)
i ave notepad ++ which has kixtart highlighting but is there any other with autocomplete too?
Can KiXtart create a standalone EXE?

thanks in advance


Edited by c4nm7 (2007-07-11 01:24 PM)
_________________________
My Site - with my programs (made in autoit)

Top
#177742 - 2007-07-11 01:57 PM Re: New kixtarter [Re: c4nm7]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Hi and welcome to the board.

There are several editors that are kix aware so they will do stuff like highlighting and auto complete (suggest stuff). Some experience users on this board prefer to use stuff like notepad, editpad, editplus, etc... but I'm a big fan of ASE and have been using it for some time now.

Here are some editors you could use.
Kixtarter - KiXtart Script Editor
Admin Script Editor (ASE)


Kix cannot compile the script to an executable by default. You need some help from external apps. ASE (see link above) can create executables but there is also some stuff on the board. Do a search on kix2exe and you'll get loads of hits.

The manual that comes with every download holds all info about the commands and function build into kixtart. If you want to read more you could take a look at Start To Finish Guide To Scripting With Kixtart @ Amazon.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#177744 - 2007-07-11 02:14 PM Re: New kixtarter [Re: Mart]
c4nm7 Offline
Fresh Scripter

Registered: 2007-07-11
Posts: 10
Loc: Northern Hemisphere
thanks, and a very noobish question, if i use for instance notepad for my scripts, how do i run it instantly?

Edited by c4nm7 (2007-07-11 02:14 PM)
_________________________
My Site - with my programs (made in autoit)

Top
#177746 - 2007-07-11 02:19 PM Re: New kixtarter [Re: c4nm7]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Save it, start a command line console and type the line below. Change the stuff in between the square brackets but I guess that’s obvious.

 Quote:

[pathtokix]\kix32.exe [pathtoscript]\script.kix
or
[pathtokix]\wkix32.exe [pathtoscript]\script.kix
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#177748 - 2007-07-11 02:27 PM Re: New kixtarter [Re: c4nm7]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4401
Loc: New Jersey
In addition to a good editor, you should take a look at the KixDev package on my web site. It's written in Kix, and does a couple of cool things, like:
  • Recursive external UDF resolution - locate and include external function files into a finished script, resolving all dependencies.
  • Sanity check - check the finished script for variable declaration issues (undeclared, duplicate declarations, declared but unused), mismatched quotes and parens, and other basic syntax errors.
  • Generates a list of variable usage, by function/line, so you can know the first place a variable is referenced (besides a Dim/Global declaration)
  • Can automatically strip comments or tokenize the code, and copy the finished script to one or more locations.
  • Supports multiple kix udf library folders
  • Allows breaking of large projects into smaller, managable files. I've got one project at about 9,000 lines, broken into about 15 files.


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

Top
#177750 - 2007-07-11 02:44 PM Re: New kixtarter [Re: Mart]
c4nm7 Offline
Fresh Scripter

Registered: 2007-07-11
Posts: 10
Loc: Northern Hemisphere
ok thanks, i found Kixtarter script editor and its awsome (like scite) , im gonna try a few things.
_________________________
My Site - with my programs (made in autoit)

Top
#177759 - 2007-07-11 03:15 PM Re: New kixtarter [Re: c4nm7]
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
 Originally Posted By: c4nm7
if i use for instance notepad for my scripts, how do i run it instantly?

"Kixtarter" and "Admin Script Editor" allow you to run the script as you are writing it (Function Key F5).
 Originally Posted By: c4nm7
but is there any other with autocomplete too?

"Admin Script Editor" is rather good in these things

Top
#177763 - 2007-07-11 03:40 PM Re: New kixtarter [Re: c4nm7]
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
 Originally Posted By: c4nm7
Can KiXtart create a standalone EXE?
No, but Admin Script Editor can *package* a script and additional files into a self-extracting exe.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#177764 - 2007-07-11 03:45 PM Re: New kixtarter [Re: Witto]
c4nm7 Offline
Fresh Scripter

Registered: 2007-07-11
Posts: 10
Loc: Northern Hemisphere
yeah i found that with kixtarter,
i took a look at the helpfile (which lacks of commands)and i haven't found how to disable the main window and create GUI with GUI controls, can you assist me?
_________________________
My Site - with my programs (made in autoit)

Top
#177765 - 2007-07-11 04:01 PM Re: New kixtarter [Re: c4nm7]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
GUI's in kix can be create with kixforms.
Have a look at the kixforms website with it's forum and other useful stuff
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#177766 - 2007-07-11 04:12 PM Re: New kixtarter [Re: c4nm7]
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
 Originally Posted By: c4nm7
...how to ... create GUI with GUI controls, can you assist me?
Search for KFD KiXforms Designer.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#177767 - 2007-07-11 04:24 PM Re: New kixtarter [Re: Les]
c4nm7 Offline
Fresh Scripter

Registered: 2007-07-11
Posts: 10
Loc: Northern Hemisphere
ok thanks both of you
_________________________
My Site - with my programs (made in autoit)

Top
#177772 - 2007-07-11 05:06 PM Re: New kixtarter [Re: Mart]
c4nm7 Offline
Fresh Scripter

Registered: 2007-07-11
Posts: 10
Loc: Northern Hemisphere
how do i disable the default console window?

Edited by c4nm7 (2007-07-11 05:06 PM)
_________________________
My Site - with my programs (made in autoit)

Top
#177773 - 2007-07-11 05:13 PM Re: New kixtarter [Re: c4nm7]
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
use wkix32.exe
or
use something like
 Code:
Dim $RC
$RC = SetConsole("Hide")

Kix2Exe also allows you to build executables.

Top
#177779 - 2007-07-11 05:52 PM Re: New kixtarter [Re: Witto]
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
 Originally Posted By: Witto
use wkix32.exe
or
use something like
 Code:
Dim $RC
$RC = SetConsole("Hide")

Kix2Exe also allows you to build executables.
but don't do both! It's sooo noobish. :p
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#177784 - 2007-07-11 06:14 PM Re: New kixtarter [Re: Les]
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
Les, maybe explain me something
 Code:
If Not @LOGONMODE
	Break On
Else
	Break Off
EndIf
Dim $RC
$RC = SetOption("Explicit", "On")
$RC = SetOption("NoMacrosInStrings", "On")
$RC = SetOption("NoVarsInStrings", "On")
$RC = SetOption("WrapAtEOL", "On")
;$RC = SetConsole("Hide")

$RC = MessageBox("Message", "Title", 0, 5)

I open a Windows Explorer and I drag & drop this script onto wkix32.exe.
It opens me a console window for about five seconds (while the script is running)

Top
#177789 - 2007-07-11 06:42 PM Re: New kixtarter [Re: Witto]
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
If you don't want a console, just don't create one in the first place. The SetOption("WrapAtEOL", "On") function will create the console since it is a console directive.
That flash of the black DOS box is so unprofessional looking. Yes, you could force a suppression with the -i switch but IMHO that is taking the lazy way out. Better to just not create the console in the first place.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#177790 - 2007-07-11 06:53 PM Re: New kixtarter [Re: Les]
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
OK, I see.
I just thought to keep it and use kix32.exe during debugging.

Top
#177794 - 2007-07-11 07:21 PM Re: New kixtarter [Re: Witto]
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
You could always wrap console directives in IF conditionals so they only invoke in debug mode.
There are two ways to invoke debug, the commandline and with the debug command inline. Using the GetCommandLine() function, you can test for it... well... on the commandline. For inline debugging, some ppl make use of a $debug var to control various aspects of their script such as verbosity to the console and/or logfiles and/or single-stepping through certain sections.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#177795 - 2007-07-11 07:36 PM Re: New kixtarter [Re: Les]
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
Or just use the @SCRIPTEXE macro
Top
Page 1 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.138 seconds in which 0.102 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