#81322 - 2002-11-13 04:18 PM
Suggestions for new KiXtart Features
|
Sealeopard
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.
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
|
|
|
|
#81327 - 2002-11-13 09:38 PM
Re: Suggestions for new KiXtart Features
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
I'd like OnError($x=1)... EndOnError
|
|
Top
|
|
|
|
#81330 - 2002-11-13 10:27 PM
Re: Suggestions for new KiXtart Features
|
Radimus
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 ]
|
|
Top
|
|
|
|
#81332 - 2002-11-14 10:17 AM
Re: Suggestions for new KiXtart Features
|
Jeroen
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
|
|
|
|
#81334 - 2002-11-14 01:21 PM
Re: Suggestions for new KiXtart Features
|
Richard H.
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
|
|
Top
|
|
|
|
#81335 - 2002-11-14 03:14 PM
Re: Suggestions for new KiXtart Features
|
Radimus
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)
|
|
Top
|
|
|
|
#81336 - 2002-11-14 05:49 PM
Re: Suggestions for new KiXtart Features
|
Lee Wilmott
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
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
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.
|
|
Top
|
|
|
|
Moderator: Lonkero, ShaneEP, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart
|
0 registered
and 2220 anonymous users online.
|
|
|