Page 1 of 1 1
Topic Options
#81322 - 2002-11-13 04:18 PM Suggestions for new KiXtart Features
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Now that we've got KiXtart 4.12 started, I'd like to take the time to generate a quick list of new features that might he helpful in the next KiXtart version.

I am only listing features that should be relatively easy to implement form a programming point of view and which would be beneficial for KiXtart as a login and administrative script processor.

  • The following functions should support multi-dimensional arrays: ABS, CDBL, CINT, CSTR, FIX, INT, LCASE, LTRIM, RTRIM, TRIM, UCASE, VAL
  • Support for the Windows CryptoAPI (not available through COM)
_________________________
There are two types of vessels, submarines and targets.

Top
#81323 - 2002-11-13 09:18 PM Re: Suggestions for new KiXtart Features
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
I'd like to see a With/EndWith statement added. With the advent of COM scripting it would improve executing a series of statements on a single object.

Example:
code:
With $form
.Height = 400
.Width = 600
.Caption = "This is MyLabel"
EndWith



[ 13. November 2002, 21:20: Message edited by: Chris S. ]

Top
#81324 - 2002-11-13 09:24 PM Re: Suggestions for new KiXtart Features
krabourn Offline
Hey THIS is FUN
*****

Registered: 2000-12-11
Posts: 244
Loc: San Antonio, Texas, USA
Don't forget Exit statements for Loops.
_________________________
Kelly

Top
#81325 - 2002-11-13 09:32 PM Re: Suggestions for new KiXtart Features
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
I would just LOVE to get the old "uncaught object handle into the bit-bucket" feature back. Ruud - I could swear that you already implemented this in the past, but it got lost somewhere along the way ... example no more of this:

$= $Object.MethodThatReturnsAnObject(...)

just be able to say this:

$Object.MethodThatReturnsAnObject(...)

without having Kixtart throw an exception.

-Shawn

[ 13. November 2002, 21:34: Message edited by: Shawn ]

Top
#81326 - 2002-11-13 09:36 PM Re: Suggestions for new KiXtart Features
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Since Krabourn's comment was a little short (see also Better questions & happy posting, here's the expanded version of what I believe he means:

Implementation of
  • EXIT DO to enhance DO...LOOP
  • EXIT FOR to enhance FOR [EACH]...NEXT
  • EXIT WHILE to enhance WHILE...LOOP
_________________________
There are two types of vessels, submarines and targets.

Top
#81327 - 2002-11-13 09:38 PM Re: Suggestions for new KiXtart Features
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
I'd like OnError($x=1)... EndOnError
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#81328 - 2002-11-13 10:18 PM Re: Suggestions for new KiXtart Features
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
I would like a full feature subroutine call with generalized multiple inputs & outputs. Like a supercharged UDF. I also like that OnError idea of Radimus.

[ 13. November 2002, 22:19: Message edited by: Jack Lothian ]
_________________________
Jack

Top
#81329 - 2002-11-13 10:22 PM Re: Suggestions for new KiXtart Features
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Question about Rad's OnError...
Would that be to direct program flow based on @Error value or to attempt recovery from a catastrophic error?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#81330 - 2002-11-13 10:27 PM Re: Suggestions for new KiXtart Features
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
either would be nice...

but basically as a wrapper to replace a bunch of:

example:

$=writevalue()
if @error $x=1 exit 1 endif
$=writevalue()
if @error $x=1 exit 1 endif
$=writevalue()
if @error $x=1 exit 1 endif
$=writevalue()
if @error $x=1 exit 1 endif

statements with:
OnError("$x=1 exit 1")
$=writevalue()
$=writevalue()
$=writevalue()
$=writevalue()
$=writevalue()
EndOnError

[ 13. November 2002, 22:29: Message edited by: Radimus ]
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#81331 - 2002-11-14 12:14 AM Re: Suggestions for new KiXtart Features
kholm Offline
Korg Regular
*****

Registered: 2000-06-19
Posts: 714
Loc: Randers, Denmark
Could this be easier to implement, or even usefull ?

Making a new function OnError() that will return output from @Error to an assigned Function (Calling that function each time the output differs from 0 and discarding 0)

OnError('FunctionName') ; Pipe @Error to assigned function

OnError(0) ; Pipe @Error back to standard: display or assigned variable.

The last example from Radimus could then look like this:
OnError("WriteValueError")
; Errors piped to UDF, No $= needed
writevalue()
writevalue()
writevalue()
writevalue()
writevalue()
OnError(0) ; @Error back to standardoutput

; Example 1
Function WriteValueError() ; On Error Quit
$x=@Error ; @Error = Implicit input for this function
exit 1
EndFunction

; Example 2
Function WriteValueError() ; On Error Continue (Resume next)
; Do nothing
EndFunction

; Example 3
Function WriteValueError() ; On Error do something
$x=@Error
; Write $x to errorlog or whatever you want
EndFunction

-Erik

[ 14. November 2002, 00:36: Message edited by: kholm ]

Top
#81332 - 2002-11-14 10:17 AM Re: Suggestions for new KiXtart Features
Jeroen Offline
Starting to like KiXtart

Registered: 2001-08-16
Posts: 180
Loc: Netherlands
My suggestion;

I'd like a function to block user input while performing certain actions, with the possibility to re-enable the input using a key combination or key for emergencies. Kinda like:

code:
; Install Program
Break off
$ = BlockInput ("E")
Shell "%comspec% /c setup.exe /s"
$ = BlockInput ()
Break on

In case of an emergency, pressing Shift-E would then enable the keyboard and mouse again. (in case of an error during setup or something, which isn't handled by the unattended setup).
But this may be hard to program ? Anyway, I think a lot of Kix users would really appreciate a function like this !
_________________________
Regards, Jeroen. There are two ways to write error-free programs. Only the third one works.

Top
#81333 - 2002-11-14 10:45 AM Re: Suggestions for new KiXtart Features
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Chris,

With / EndWith , I like that !

J.
_________________________



Top
#81334 - 2002-11-14 01:21 PM Re: Suggestions for new KiXtart Features
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
A few old ones that I'd still like to see
  • Compile to bytecode (tokenize)
  • Accept piped input (data)
  • Accept piped input (script code)
  • Static variable declaration for function and file scopes
  • Native calendar functions (date and time)
  • Support for binary i/o
  • Support for binary data types
  • Assign and pass variables by reference
  • Set/return console attributes (esp. height and width)
  • Peek/Poke console attributes (character, colours)
  • "Color" to accept alternative parameters, e.g. numeric and/or variables
  • @COLOR to return current colour settings
Ok, so some of those are not old ones [Wink]

Top
#81335 - 2002-11-14 03:14 PM Re: Suggestions for new KiXtart Features
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
enhance sendkeys and setfocus... a bit more like Autoit (another prog MIS will not let me deploy)
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#81336 - 2002-11-14 05:49 PM Re: Suggestions for new KiXtart Features
Lee Wilmott Offline
Starting to like KiXtart

Registered: 2002-09-17
Posts: 106
Loc: Bristol, UK
WOW, what a topic!

OK...some of these are repeated from previous forum articles - but I guess that just shows how useful they can be!!!

Here's my suggestions...

  • The ability to return a base raised to a specified power - Exp() Function (please see http://www.scriptlogic.com/kixtart/FunctionDiscussion.asp?mid=2700&fn=Exp).
  • The ability to replace a substring within a given string - ReplaceStr function (please see http://www.scriptlogic.com/Kixtart/ViewFunction.asp?FN=ReplaceStr#).
  • The ability to repeat a string a given number of times - RepeatStr function (please see http://www.scriptlogic.com/Kixtart/ViewFunction.asp?FN=RepeatStr).
  • The ability to search a single dimensional array for a given value - Ascan function (please see http://www.scriptlogic.com/Kixtart/ViewFunction.asp?FN=Ascan).
  • The ability to declare constants.
  • Allow ReadProfileString() and WriteProfileString() to write to sections with no names...ie. To allow the ability to update CONFIG.SYS; which doesn't have a section name. We also use a program whose INI files do not stick to convention and therefore doesn't have a section name.
  • Enhance EXIST() function to determine if LPT1: (LPT2: ..etc..) is mapped.
  • Enhanced date functions...
    • Determine the number of days between two dates
    • Return the day of a given date...ie. Monday
    • Return the date of a given date...ie. 14
    • Return the month of a given date...ie. 11
    • Return the year of a given date...ie. 2002
    • Given a date return the number of days since 1/1/1900
  • The ability to convert a number from one base to another (ie. from base 10 to base 16).
  • The ability to concatenate two single dimensioned arrays. (also allow the ability to simply add elements to a single dimensional array). (please see http://www.scriptlogic.com/Kixtart/ViewFunction.asp?FN=JoinArray).
  • Assign and pass variables by reference (A repeat from Richard's suggestions I know - but I would really find this useful!).
Lee

[ 02. December 2002, 11:05: Message edited by: Lee Wilmott ]

Top
#81337 - 2002-11-18 08:44 PM Re: Suggestions for new KiXtart Features
Andy T Offline
Lurker

Registered: 2002-11-18
Posts: 3
Loc: Guildford, Surrey, England
Yes let's have the

ExitFor
ExitDo
ExitWhile

statements to complement the all powerful EXIT that we currently have.

Top
#81338 - 2002-11-30 06:52 PM Re: Suggestions for new KiXtart Features
MCA Offline
KiX Supporter
*****

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

Possible that Ruud can return some feedback about his actual to-do list.
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
Page 1 of 1 1


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

Who's Online
0 registered and 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.074 seconds in which 0.029 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