#106378 - 2003-10-31 08:24 PM
Re: Kixtarter - Kixtart Script Editor
|
Kdyer
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
|
Top
|
|
|
|
#106379 - 2003-10-31 08:31 PM
Re: Kixtarter - Kixtart Script Editor
|
ADynes
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.
|
Top
|
|
|
|
#106380 - 2003-10-31 08:59 PM
Re: Kixtarter - Kixtart Script Editor
|
Radimus
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...
|
Top
|
|
|
|
#106381 - 2003-11-01 01:05 AM
Re: Kixtarter - Kixtart Script Editor
|
ADynes
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.
|
Top
|
|
|
|
#106383 - 2003-11-01 01:36 AM
Re: Kixtarter - Kixtart Script Editor
|
ADynes
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
|
Top
|
|
|
|
#106384 - 2003-11-03 07:40 AM
Re: Kixtarter - Kixtart Script Editor
|
MCA
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.
|
Top
|
|
|
|
#106386 - 2003-11-04 12:12 AM
Re: Kixtarter - Kixtart Script Editor
|
Radimus
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
|
Top
|
|
|
|
#106388 - 2003-11-03 04:48 PM
Re: Kixtarter - Kixtart Script Editor
|
ADynes
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.
|
Top
|
|
|
|
#106389 - 2003-11-03 04:50 PM
Re: Kixtarter - Kixtart Script Editor
|
Kdyer
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
|
Top
|
|
|
|
#106390 - 2003-11-03 04:57 PM
Re: Kixtarter - Kixtart Script Editor
|
ADynes
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.
|
Top
|
|
|
|
#106391 - 2003-11-03 09:42 PM
Re: Kixtarter - Kixtart Script Editor
|
ADynes
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.
|
Top
|
|
|
|
#106393 - 2003-11-03 10:33 PM
Re: Kixtarter - Kixtart Script Editor
|
MCA
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).
|
Top
|
|
|
|
#106396 - 2003-11-03 10:50 PM
Re: Kixtarter - Kixtart Script Editor
|
ADynes
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.
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 581 anonymous users online.
|
|
|