Source language: Translate to:

hpwControl Plugin - Early Preview for Feedback

Questions about NeoBook PlugIns

Moderator: Neosoft Support

hpwControl Plugin

Postby HPW » Mon Feb 17, 2003 2:01 pm

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.
HPW
 

hpwControl Plugin

Postby HPW » Wed Feb 19, 2003 9:49 am

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?
HPW
 

hpwControl Plugin

Postby Gaev » Wed Feb 19, 2003 12:32 pm

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.




 
User avatar
Gaev
 
Posts: 3718
Joined: Fri Apr 01, 2005 7:48 am
Location: Toronto, Canada

hpwControl Plugin

Postby HPW » Wed Feb 19, 2003 12:37 pm

Will change it in the next release.
HPW
 

hpwControl Plugin

Postby HPW » Sun Feb 23, 2003 1:48 pm

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.
HPW
 

hpwControl Plugin

Postby HPW » Mon Feb 24, 2003 1:40 pm

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.
HPW
 

hpwControl Plugin

Postby HPW » Tue Feb 25, 2003 1:42 pm

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)
HPW
 

hpwControl Plugin

Postby HPW » Wed Feb 26, 2003 2:40 pm

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.
HPW
 

hpwControl Plugin

Postby HPW » Thu Feb 27, 2003 2:08 pm

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.
HPW
 

hpwControl Plugin

Postby HPW » Fri Feb 28, 2003 9:52 am

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.
HPW
 

hpwControl Plugin

Postby HPW » Sat Mar 01, 2003 2:38 pm

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)
HPW
 

hpwControl Plugin

Postby HPW » Sun Mar 02, 2003 6:04 am

Just released hpwControl 1.11:

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

hpwControl Plugin

Postby HPW » Fri Dec 26, 2003 2:48 am

Just released hpwControl 1.12:

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

hpwControl Plugin

Postby HPW » Mon Jan 12, 2004 3:01 pm

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)
HPW
 

hpwControl Plugin

Postby HPW » Mon Jan 12, 2004 11:52 pm

Forget to mention:

The source-parameter is handled as a filename when:

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

PreviousNext

Return to PlugIn Discussions

Who is online

Users browsing this forum: Bing [Bot] and 2 guests