Page 2 of 8

hpwControl Plugin

PostPosted: Mon Feb 17, 2003 2:01 pm
by HPW
Just released hpwControl 1.02:

Actions: hpwCase can read the argument-list direkt from file. (One per Line)
Actions: hpwAnd performs a logical "AND" on many conditions.
Actions: hpwOr performs a logical "OR" on many conditions.


gk51

Interesting conzept to get out of the scripting loop and get back through hpwPlayAction. Would be sure a great example for advanced scripting in neobook.

hpwControl Plugin

PostPosted: Wed Feb 19, 2003 9:49 am
by HPW
Just released hpwControl 1.03:

Actions: hpwStrJoin - Reverse StrParse, build from array a String.
Actions: hpwStrPadLeft - Pad a string on the left to the given length.
Actions: hpwStrPadRight - Pad a string on the right to the given length.
Actions: hpwStrRepeat - Repeat a string to the given length.

Based on ideas and conzept from gk51 found here:

http://www.neosoftware.com/cgi-bin/ikon ... &topic=119

A question remains on padding when a fillstring > 1 is used, padding end when the last complete fit happens. Should the fillstring be cut or what is the right rule?

hpwControl Plugin

PostPosted: Wed Feb 19, 2003 12:32 pm
by Gaev
Hans-Peter:

Thanks once again !

A question remains on padding when a fillstring > 1 is used, padding end when the last complete fit happens. Should the fillstring be cut or what is the right rule?

Considering the cases where a padding of a string is required (i.e. to make the padded string a specified length), I would say that the final padding should be a partial one.

So, if [PadSource] is "qwerty" (i.e. length of 6), [PadValue] is "abc" (i.e. length of 3), and the command issued is hpwStrPadLeft "[PadSource]" "[PadValue]" "20" "[PadResult]", then [PadResult] would end up being a 20 character variable = qwertyabcabcabcabcab

i.e. qwerty (6) + 4 of abc (12) + 1 of ab (2)

That would be my suggestion. Ditto for hpwStrPadRight.




 

hpwControl Plugin

PostPosted: Wed Feb 19, 2003 12:37 pm
by HPW
Will change it in the next release.

hpwControl Plugin

PostPosted: Sun Feb 23, 2003 1:48 pm
by HPW
Just released hpwControl 1.04:

Actions: hpwStrPad... - Now cut's the padstring when it does not fit.
Actions: hpwStrSearch - Why another SearchStr? Here now with Searchoffset and Flag for CaseSensitive.

hpwControl Plugin

PostPosted: Mon Feb 24, 2003 1:40 pm
by HPW
Just released hpwControl 1.05:

Actions: hpwStrRevSearch - Here now with Searchoffset and Flag for CaseSensitive and Search from the End.
Actions: hpwStrNthSearch - Here now with Searchoffset and Flag for CaseSensitive and Search for the n'th Hit.

hpwControl Plugin

PostPosted: Tue Feb 25, 2003 1:42 pm
by HPW
Just released hpwControl 1.06:

Actions: hpwGetPageInfo - Get a page-count and a page-array into variables.

Following a tip from neosoft found here:

http://www.neosoftware.com/cgi-bin/ikon ... &topic=144


(Edited by HPW at 9:43 pm on Feb. 25, 2003)

hpwControl Plugin

PostPosted: Wed Feb 26, 2003 2:40 pm
by HPW
Just released hpwControl 1.07:

Action hpwLine - returns a line from a string-list.
Action hpwLineCount - returns number of lines in a string-list.
Action hpwLineDelete - delete a line in a string-list.
Action hpwLineInsert - insert a line in a string-list.
Action hpwLineClear - clears a line in a string-list.
Action hpwLineReplace - replace a line in a string-list.

hpwControl Plugin

PostPosted: Thu Feb 27, 2003 2:08 pm
by HPW
Just released hpwControl 1.08:

Action hpwLineAdd - Adds a line to a string-list.
Action hpwLineNumber - Returns the linenumber where a string is first found in a string-list.
Action hpwListEqual - Test if one string-list is equal to another string-list.
Action hpwListParse - Parse a stringlist into a 2-dimensional Array.

hpwControl Plugin

PostPosted: Fri Feb 28, 2003 9:52 am
by HPW
Just released hpwControl 1.09:

Action hpwListParse - Has now additional vars for rowcount/colcount of the 2-dimensional Array.
Action hpwListJoin - Join a 2-dimensional Array into a stringlist.

hpwControl Plugin

PostPosted: Sat Mar 01, 2003 2:38 pm
by HPW
Just released hpwControl 1.10:

Action hpwLineSort - Sort a string-list.
Action hpwAssoc - Get fields from a stringlist by keystring and offset.

Assoc is influenced by my favorite command in Lisp, of cource it is much more powerfull there. Since concepts much differ between languages, this is an adaption to neoscript.


(Edited by HPW at 10:51 pm on Mar. 1, 2003)

hpwControl Plugin

PostPosted: Sun Mar 02, 2003 6:04 am
by HPW
Just released hpwControl 1.11:

Action hpwListReOrder - Reorder the columns of a 2-dimensional array to a stringlist.

hpwControl Plugin

PostPosted: Fri Dec 26, 2003 2:48 am
by HPW
Just released hpwControl 1.12:

Bugfix for all decimal arguments where either ',' or '.' (or mixed) could appear.

hpwControl Plugin

PostPosted: Mon Jan 12, 2004 3:01 pm
by HPW
Just released hpwControl 1.13:

Action hpwLine - returns a line not only from a string-list, now even from a file.
Action hpwLineCount - returns number of lines not only from a string-list, now also from or file.

The help-line of the commands has noted this from the beginning, but now I have make it to work. (Simply forgot it the first time)

hpwControl Plugin

PostPosted: Mon Jan 12, 2004 11:52 pm
by HPW
Forget to mention:

The source-parameter is handled as a filename when:

It has a extension (example *.txt)
The file exists.