Source language: Translate to:

hpwControl Plugin - Early Preview for Feedback

Questions about NeoBook PlugIns

Moderator: Neosoft Support

Postby Guest » Tue Mar 01, 2005 11:49 pm

>I created my own set of environmental variables

How?

>SET NAME=JOHN

Where this?

I just test it again. I go into system settings, system, extended, enviroment vars. (Dont know if this is exactly, translated from a german system)

That window show 2 area for environmental variables.
One for user defined and one for systemvariables.
There you can press a button 'add'.

When I add there a var 'Name' with a new content I could get it
inside my demo.pub with 'USER' 'Name'.

This are the windows enviroments vars permanently stored in the registry. There can also be enviroments vars per process, but thats an other kind of vars and only visible to that process.
Guest
 

Postby Guest » Wed Mar 02, 2005 1:22 pm

I created the variables on the command-line prompt...  here is an example of some of the variables :

http://members.verizon.net/~vze2rqhm/PROMPT.jpg

I just discovered that once the command-line prompt window is closed and re-opened, the variables I created were gone...

This idea works great in DOS...

I used a simple batch program to create the environmental variables...  then I viewed the variables using the ECHO command.

echo %NAME%

Windows works a little differently....   How can I create my own environmental variables and keep them until I want to change the values ?

Tommy
Guest
 

Postby Guest » Wed Mar 02, 2005 2:58 pm

As I wrote before you have created vars only for the DOS process and not for windows system-wide.

>How can I create my own environmental variables and keep them until I want to change the values ?

You can use the system setting window. But I think you mean to do it programatical. You can do it by writing into the registry.

HKEY_CURRENT_USER
Environment
Guest
 

Postby HPW » Sat Dec 10, 2005 12:18 pm

Just released hpwControl 1.21:

http://www.hpwsoft.de/anmeldung/html1/n ... ook10.html

Fix: hpwListParse - Last field in each row was not set when it was empty.

Action: hpwExecRegExpBool - Execute a regular expression and return a bool
Action: hpwExecRegExpList - Execute a regular expression and return a list
Action: hpwSplitRegExp - Split a string with a regular expression
Action: hpwReplaceRegExp - Replacing with regular expressions
Action: hpwSubstituteRegExp - Substitute in a string-template with regular expressions

Info about regular expressions:
http://regexpstudio.com/TRegExpr/TRegExpr.html
http://regexpstudio.com/TRegExpr/Help/r ... yntax.html
Hans-Peter
User avatar
HPW
 
Posts: 2521
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby HPW » Sat Feb 18, 2006 10:29 am

Just released hpwControl 1.22:

http://www.hpwsoft.de/anmeldung/html1/n ... ook10.html

Action: hpwExecRegExpPos - Execute a regular expression and return a list with Pos and Length of found-pos

Use a regex-search and get all occurance-places at once.

Regex-Tip: (?i)HPW
(?i) is a regex modifier to switch to case-insensitive mode.

Result looks like this:
15|11
31|12
48|13
Hans-Peter
User avatar
HPW
 
Posts: 2521
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby HPW » Fri Aug 18, 2006 1:31 pm

Just released hpwControl 1.23:

http://www.hpwsoft.de/anmeldung/html1/n ... ook10.html

Action: hpwIsColor Check a string if it is a Color.

(Works with all syntax used in my other plugins)

hpwIsColor "clBlue" "[IsColor]"
hpwIsColor "#0000FF" "[IsColor]"
hpwIsColor "$00FF0000" "[IsColor]"
hpwIsColor "0,0,255" "[IsColor]"
hpwIsColor "65535" "[IsColor]"
Hans-Peter
User avatar
HPW
 
Posts: 2521
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby HPW » Sat Sep 16, 2006 12:13 am

Just released hpwControl 1.24:

http://www.hpwsoft.de/anmeldung/html1/n ... ook10.html

Release of NBR-plugin option for hpwControl.
Command-wizards for all commands (16 dialogs)!

(hpwCase insert a variable length source template on first insert for case-targets.)
Hans-Peter
User avatar
HPW
 
Posts: 2521
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby HPW » Tue Sep 19, 2006 10:28 am

Just released hpwControl 1.25:

http://www.hpwsoft.de/anmeldung/html1/n ... ook10.html

hpwLineSort - A third parameter to support sort direction. (A=Ascending/D=Descending)
Hans-Peter
User avatar
HPW
 
Posts: 2521
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby HPW » Tue Sep 19, 2006 1:52 pm

Just released hpwControl 1.26:

http://www.hpwsoft.de/anmeldung/html1/n ... ook10.html

hpwLineSort - 2 new sort-flags: NA=NumericAscending/ND=NumericDescending

Sort such a list by the starting numeric value:

20Bla
400Test
50ABC
30Test
Hans-Peter
User avatar
HPW
 
Posts: 2521
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby HPW » Tue Sep 19, 2006 11:04 pm

I noticed a bug in the parsing routine so that numbers at the end of the string gets one digit to short. I will post a bugfix 1.27 in the evening.
Hans-Peter
User avatar
HPW
 
Posts: 2521
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby HPW » Wed Sep 20, 2006 4:34 am

Just released hpwControl 1.27:

http://www.hpwsoft.de/anmeldung/html1/n ... ook10.html

Bugfix for sort-flags: NA=NumericAscending/ND=NumericDescending

Sort now this correct by number:

Bla20
Test 400
ABC50
Test30
Hans-Peter
User avatar
HPW
 
Posts: 2521
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby HPW » Sun Oct 01, 2006 9:05 am

Just released hpwControl 1.28:

http://www.hpwsoft.de/anmeldung/html1/n ... ook10.html

New sort-flags: NSA+NSa=NaturalAscending/NSD+NSd=NaturalDescending

Let you sort this:

500 B
500 A
600 C
600 B
300 A
20 A
20 B
60 A
60 B
Hans-Peter
User avatar
HPW
 
Posts: 2521
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby smartmedia » Sun Oct 01, 2006 11:12 pm

Hi...

Hans as i told you in pm i send you, i want to be able to sort a string like this. I am going to use greek characters for you in order to reproduse it.

Let's say i have this source string.

500 ΠΕΤΑΛΑΣ
500 ΑΛΕΞΙΟΥ
600 ΝΙΚΟΛΑΟΥ
600 ΠΕΤΑΛΑΣ
600 ΑΛΕΞΙΟΥ

The result i want is this:

600 ΑΛΕΞΙΟΥ
600 ΝΙΚΟΛΑΟΥ
600 ΠΕΤΑΛΑΣ
500 ΑΛΕΞΙΟΥ
500 ΠΕΤΑΛΑΣ

Which is Numeric Descending with Ascending Characters
The same example with english characters.

Source string:
500 Chris
500 Alex
600 Sam
600 Chris
600 Dave

Result string:
600 Chris
600 Dave
600 Sam
500 Alex
500 Chris
I hope you understand what i want. Sorry for the trouble i cuase you...

Thanks
User avatar
smartmedia
 
Posts: 889
Joined: Fri Apr 01, 2005 6:50 am
Location: Hellas

Postby HPW » Mon Oct 02, 2006 12:37 am

Just released hpwControl 1.29:

http://www.hpwsoft.de/anmeldung/html1/n ... ook10.html

New sort-flags: AA=AlphaOnlyAscending/AD=AlphaOnlyDescending
New sort-flags: NAAA=NumericAscendingAlphaAscending/NDAA=NumericDescendingAlphaAscending

I hope you understand what i want. Sorry for the trouble i cuase you...


Unprecise specs cause mostly misunderstandings!

So try out NDAA with you greek characters.
Not sure what AnsiCompareText do with them.
Hans-Peter
User avatar
HPW
 
Posts: 2521
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby smartmedia » Mon Oct 02, 2006 12:43 am

Hi...

What can i say, you are faster than the speed of light... :D

Thanks Hans, really...

NDAA=NumericDescendingAlphaAscending
Worked fine...

:D :D :D :D :D :D :D
User avatar
smartmedia
 
Posts: 889
Joined: Fri Apr 01, 2005 6:50 am
Location: Hellas

PreviousNext

Return to PlugIn Discussions

Who is online

Users browsing this forum: No registered users and 2 guests