Page 2 of 4 <1234>
Topic Options
#106378 - 2003-10-31 08:24 PM Re: Kixtarter - Kixtart Script Editor
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Allan,

The script is as follows:

code:
 IF INGROUP("Domain Admins")
USE G: /delete
USE G: "\\ids-file\groups"
; USE U: @HOMESHR
IF ADDPRINTERCONNECTION ("\\IDS-Print\IT1013") =0 ;add <= 0> if you want to see statis
"Added printer connection to IT1013 on IDS-Print"
IF SetDefaultPrinter ("\\IDS-Print\IT1013") = 0
? "Setting Default Printer...."
ENDIF
ENDIF
ENDIF

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#106379 - 2003-10-31 08:31 PM Re: Kixtarter - Kixtart Script Editor
ADynes Offline
Starting to like KiXtart
*****

Registered: 2003-10-31
Posts: 184
Loc: Ohio
Radimus - I think I know where to change that in the exe. Can you give me the exact verbage?

Kent - I'll have to look up the XP API call for redirect, that script works fine on my PC (Win2K)

Allan.
_________________________
Kixtarter - KiXtart Script Editor
http://www.AllanDynes.com/

Top
#106380 - 2003-10-31 08:59 PM Re: Kixtarter - Kixtart Script Editor
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
kixtarter is a text editor used for syntax highlighting of the kixtart scripting language. this program is distributed as postcard Ware so if you would like to support me send a postcard to the address in the...
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#106381 - 2003-11-01 01:05 AM Re: Kixtarter - Kixtart Script Editor
ADynes Offline
Starting to like KiXtart
*****

Registered: 2003-10-31
Posts: 184
Loc: Ohio
Lonkero - Got rid of the "." as a delimmiter. Now $myvariable.object will correctly highlight.

Radimus - Found that part of the description and changed it to "Kixtarter Script", which should come up as the description.

Kent - I can't find a way to fix the output window in XP. Since its already buggy (wount allow user interaction..i.e. you cant respond to a messagebox) I'm putting in the option of shelling out to the command prompt instead of the output window. This allows full interaction, just like if you ran "Kix32.exe scriptname" from the console and will be the default setting.

If anyone can think of anything else please let me know. I'll send out a new install on Monday so if anyone finds anything over the weekend post here and I'll try to fix it.

Allan.
_________________________
Kixtarter - KiXtart Script Editor
http://www.AllanDynes.com/

Top
#106382 - 2003-11-01 01:20 AM Re: Kixtarter - Kixtart Script Editor
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
the dot fix is good.
as it can also be part of number but never a delimiter in kix.

also, what comes to pipes, I bet they don't work in wkix32, or?
_________________________
!

download KiXnet

Top
#106383 - 2003-11-01 01:36 AM Re: Kixtarter - Kixtart Script Editor
ADynes Offline
Starting to like KiXtart
*****

Registered: 2003-10-31
Posts: 184
Loc: Ohio
Well, I create a pipe, then create a process using kix32 sending it the script your currently in. The output is brought back in and forwarded to a text box, which gets added to the output window. Problem is I can't figure out how to get the message box to respond back down to Kix32. I'm sure it can be done, its just a little over my head. Having a option of just passing the command and script to a console window however works a little better because then you see exactly what you would see during a login, messageboxes, colored text, etc. Plus its easy programming wise.

Allan
_________________________
Kixtarter - KiXtart Script Editor
http://www.AllanDynes.com/

Top
#106384 - 2003-11-03 07:40 AM Re: Kixtarter - Kixtart Script Editor
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear Allen,

Very good ideas
- make it possible to write scripts for 3.61 and 4.21
- convert TABs in SPACEs (automatically)

Four suggestions:
- "word wrap" not default on
- we must specify the exact KIX32.EXE location. also when kix32.exe is callable under normal circumstances (Kixtart location)
- in the "About kixtarter" box you can show for which kixtart releases it was developped.
- Indents and tabs should be selectable. Only 5 or 10 spaces isn't much to select.

We have put your Kixtarter script editor also on our site. You can find it on the Home and
Summary of Site page.

 -

greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#106385 - 2003-11-04 12:03 AM Re: Kixtarter - Kixtart Script Editor
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
conversion of character to another should indeed NOT be automatic.
it needs to be a selection user makes.

this is also why I like notepad more than any editor or wordpad:
they mess with YOUR code!
_________________________
!

download KiXnet

Top
#106386 - 2003-11-04 12:12 AM Re: Kixtarter - Kixtart Script Editor
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
if yo look in the screen shot above, you can see som errors in colorizing.

look for CHR(13)+CHR(10)
and len("@error")

I prefer tabs to be tabs and not converted to spaces... it throws off my columns for output
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#106387 - 2003-11-04 12:38 AM Re: Kixtarter - Kixtart Script Editor
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
it seems to have problem with multi-brackets.
_________________________
!

download KiXnet

Top
#106388 - 2003-11-03 04:48 PM Re: Kixtarter - Kixtart Script Editor
ADynes Offline
Starting to like KiXtart
*****

Registered: 2003-10-31
Posts: 184
Loc: Ohio
MCA -

1. I thought I defaulted word wrap to off, but your right, its not. I made this change.
2. (we must specify the exact KIX32.EXE location. also when kix32.exe is callable under normal circumstances (Kixtart location)) - what exactly do you mean?
3. Changed this to say program should support up to 4.21.
4. Changed indents and tabs to a user selectable number between 0 and 30.

Lonkero
1. Conversion of tabs isn't automatic, but the settings page did default to being checked making it look like it was automatic. So on the first start it dosnt convert but if you go into the settings and hit save without noticing that it will convert the next file. I changed the settings page to default to unchecked to make sure this doesnt happen unless someone purposly does it.

Radimus
1. I still have a little work on the color coding. Problem is our scripts are relativly simple so not a lot of bugs came out.

2. Use the change font and select a fixed width. font. I think I default to Lucidia Console, although thats probably not on every machine. I should probably default to arial console, maybe I'll check with MS and see what the standard suite of fonts for Windows would be and pick a fixed width from that list.

If anyone finds any other bugs or has any more suggestions please let me know. I was going to send out another install today but I'll see if anyone else has anything more over the next couple days and then I'll send it out. If you want a copy and wern't on the initial send list please let me know.

Allan.

Allan.
_________________________
Kixtarter - KiXtart Script Editor
http://www.AllanDynes.com/

Top
#106389 - 2003-11-03 04:50 PM Re: Kixtarter - Kixtart Script Editor
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Allan,

Is there any way to get some debug code to find out where this is having issue when I try to run/debug code in the editor?

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#106390 - 2003-11-03 04:57 PM Re: Kixtarter - Kixtart Script Editor
ADynes Offline
Starting to like KiXtart
*****

Registered: 2003-10-31
Posts: 184
Loc: Ohio
I've already changed the debug part so you can choose between trying to redirect the output within the editor or shell out to a regular command prompt. The command prompt is far more stable then my redirect. Also using the command prompt I think I can pass the "-d" at the end of the command so Kix32 will run in its own debug mode. I'll do this until my programming gets to a level where I can fully interact with a console window. Since I plan on witing a couple days to fix other stuff I can send you just the .exe with the changes if you want to see if this works better for you. Let me know,

Allan.
_________________________
Kixtarter - KiXtart Script Editor
http://www.AllanDynes.com/

Top
#106391 - 2003-11-03 09:42 PM Re: Kixtarter - Kixtart Script Editor
ADynes Offline
Starting to like KiXtart
*****

Registered: 2003-10-31
Posts: 184
Loc: Ohio
I'm redoing the coloring to ignroe brackets ([,]) for anything other then [GO] and while I'm at it I'm going to redo the Macro coloring. As it stands anything after a $ is a variable and anything after a @ is a macro. Of course you could accidentally mistype a macro but it would highlight anyway. Therefor I'm going to change that to have a hard coded list of macros. What do you guys/gals think of this:

The ability to put in custom macros, like have it import a list at startup.

The ability to automatically put keywords in uppercase after you type them (convert For to FOR, etc). This would be a setting of course.

Let me know what you think or if you find anything else. Thanks!

Allan.
_________________________
Kixtarter - KiXtart Script Editor
http://www.AllanDynes.com/

Top
#106392 - 2003-11-03 09:47 PM Re: Kixtarter - Kixtart Script Editor
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Macros should be via a keyword list so that email addresses don't get coloured. Case correction would add a nice touch but would not propose that all keywords go to uppercase. Maybe a customizable list would be better. I prefer mixed case as follows:
ExpandEnvironmentVars( )
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#106393 - 2003-11-03 10:33 PM Re: Kixtarter - Kixtart Script Editor
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear Allen,

When we re-install it we see the following things:
- "Debug/Run Script" unreachable.
- "Debug/Kix Location" shows "Selected Kixtart version: No version found or invalid file"
after entering "kix32.exe" it still shows "No version found or invalid file".
after entering "%windir%\kix32.exe" it still shows "No version found or invalid file".
after specifying "c:\windows\kix32.exe" it shows "4.22.0.0"

kixtarter.ini shows by initial phase
code:
[General]
Show Tips at Startup=1

After changing some settings it looks like
code:
[General]
Show Tips at Startup=1
WordWrap=False

[Font]
Name=Lucida Console
Size=10

[Debug]
OutputWindow=False
KixtartLocation=C:\WINDOWS\kix32.exe

[Paths]
LastSaved=T:
LastOpened=T:
LastOpenedEXT=kix
strMRU 0=T:\kix-code.kix
strMRU 1=
strMRU 2=
strMRU 3=

Our first suggestion is that
code:
KixtartLocation=kix32.exe

is also possible. You can search in the PATH directories to see
KIX32.EXE is reachable. It prevents also, that you need to modify
your KIXTARTER.INI file when you are using this INI in another
environment.
An alternative like %windir%\kix32.exe is also an option, but
in this release it doesn't work.

Second suggestion is that the user can see in the title which KIX32.EXE
has been recognized. So in our case "4.22.0.0 Release Candidate 1"
(= @kix setting).

greetings.

btw: when you have a new release you can mail it to use (scripting@wanadoo.nl).
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#106394 - 2003-11-03 10:44 PM Re: Kixtarter - Kixtart Script Editor
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Allan, very nice indeed. Well done. Correct me if I'm wrong but VB doesn't support resizable forms like you have ? You would have had to hand-code all that - nice.

One thing I noticed though ... I see the "tell-tale" sign of using LockWindowUpdate on the RichtextBox ... the Desktop flashes when loading a new document ... suggest using SendMessage with the WM_SETREDRAW with true/false ... might stop the flashy.

Top
#106395 - 2003-11-03 10:47 PM Re: Kixtarter - Kixtart Script Editor
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
fixed width font is not an answer.
as a matter of fact, these look awfull.
_________________________
!

download KiXnet

Top
#106396 - 2003-11-03 10:50 PM Re: Kixtarter - Kixtart Script Editor
ADynes Offline
Starting to like KiXtart
*****

Registered: 2003-10-31
Posts: 184
Loc: Ohio
MCA -
The run is unreacable until the KIX32 is assigned, to prevent the program from running a non-existant file. I understand what your saying now about displaying the version, in case your debuging on multiple version. I think I can look for it in the path on first load and auto assign. I plan on changing it to do a couple things the very first time its run just for reasons like this.

Shawn -
VB lets you resize the form but the controls will stay the same size/position. So yes when you resize the form I go through and move the boxes and resize them also so it looks like its all resizing correctly. And yes I'm using a lockwindowsupdate on the RTB. I'll look into the WM_SETREDRAW to see if it helps, but usually with something like this it wount. Worth a try though.

I'll send out an update to everyone I sent the initial ones too plus those that have requested it lately. Thanks for everyones suggestions, please keep them coming.

Allan.
_________________________
Kixtarter - KiXtart Script Editor
http://www.AllanDynes.com/

Top
#106397 - 2003-11-03 10:51 PM Re: Kixtarter - Kixtart Script Editor
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Allen:

Haven't tested it but I'm with Les on the mixed upper/lower case on kix commands like GetFileVersion instead of GETFILEVERSION or getfileversion. In my opinion only the macro's should be completely uppercase. Some sort of auto case correct option would be nice.

You say everything behind a @ is a macro. How about email addresses and people who use a line like this in the script.

code:
Hello, welcome @@ companyname. Today is @DATE.

do some stuff here....

Also not everything behind a $ is always a variable. For example when you are connecting to an admin share like: \\server\Share$$ (you should double the $ for it to work properly) or people who need to use the $ as a currency symbol?

Just my view on things. Don’t take it personal [Wink]

[ 03. November 2003, 22:53: Message edited by: R2D2 ]
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
Page 2 of 4 <1234>


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

Who's Online
0 registered and 581 anonymous users online.
Newest Members
Audio, Hoschi, Comet, rrosell, PatrickPinto
17880 Registered Users

Generated in 0.075 seconds in which 0.026 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