## Search found 1278 matches

23 Oct 2020, 15:02
Topic: Calculate number sequences of black or white Topic is solved
Replies: 6
Views: 180

### Re: Calculate number sequences of black or white Topic is solved

yes!, it solved my problem. thanks!
23 Oct 2020, 14:14
Topic: Calculate number sequences of black or white Topic is solved
Replies: 6
Views: 180

### Re: Calculate number sequences of black or white Topic is solved

Something unexpected happens. When I start using the program, with more data to process, something get wrong.. The end of the big number series looks like this .: ...(Color White) 1376 1377 1378 1379 (Last number) 1372,8,White 1380,,Black ,,White (The last two lines should not be generated) When the...
23 Oct 2020, 02:26
Topic: Calculate number sequences of black or white Topic is solved
Replies: 6
Views: 180

### Re: Calculate number sequences of black or white Topic is solved

It turned out exactly as I wanted
- thank you!
22 Oct 2020, 17:43
Topic: Calculate number sequences of black or white Topic is solved
Replies: 6
Views: 180

### Calculate number sequences of black or white Topic is solved

I have a program that analyzes an image. The result forms a number series with white pixels. nSeq = ( 765 766 767 768 769 770 771 772 773 774 791 792 793 794 795 796 797 798 799 800 801 802 820 821 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 868 882 883 884 885 886 887 888 889 89...
22 Oct 2020, 13:49
Topic: Convert many currency format to decimals
Replies: 10
Views: 157

### Re: Convert many currency format to decimals

Thank you!
I'm happy again
22 Oct 2020, 10:07
Topic: Convert many currency format to decimals
Replies: 10
Views: 157

### Re: Convert many currency format to decimals

Probably a better way to clear spaces is .: currency: = Trim(currency) at the beginning of the function.

But there is another limitation that can be more difficult to deal with. All digits with only one decimal are multiplied by 10
for example. 10.0 becomes 100.00
22 Oct 2020, 09:14
Topic: Convert many currency format to decimals
Replies: 10
Views: 157

### Re: Convert many currency format to decimals

For documentation .:
To handle currency with a space after last digit or before the first digit.

Code: Select all

``RegExMatch(Trim(currency), ".*[.,]\K\d\d\$", cents)``
eg. can also handle ' 20.00 '. Maybe can do it in another way, but it works.
22 Oct 2020, 07:32
Topic: Character filtering from unwanted characters - RegExReplace()
Replies: 9
Views: 170

### Re: Character filtering from unwanted characters - RegExReplace()

Thanks for your time! Had hoped that someone had thought about this before. (and possibly solved it) - I'm still not so good at writing regular expressions... Many characters are just typed in the expression, but then there are a number of characters that are more difficult? - is it just to type + /...
22 Oct 2020, 03:39
Topic: Character filtering from unwanted characters - RegExReplace()
Replies: 9
Views: 170

### Re: Character filtering from unwanted characters - RegExReplace()

Thank you! It works (in some way)! But! I'm still thinking about the best way to exclude all control characters (and include all other characters) or the reverse. Do not want to be "worried" that any character will be missing every time I run the program. (or check every invoices after missing chara...
21 Oct 2020, 10:12
Topic: Character filtering from unwanted characters - RegExReplace()
Replies: 9
Views: 170

### Re: Character filtering from unwanted characters - RegExReplace()

Excuse me for a bad explanation! Background .: I'm trying to read the contents of PDF files (Invoices) To access the information from the PDF file, I use the program xpdftotext.exe (which I also like more and more) To get the XY-positions in the PDF-file, the PDF-file must be converted to an Image (...
20 Oct 2020, 17:44
Topic: Character filtering from unwanted characters - RegExReplace()
Replies: 9
Views: 170

### Re: Character filtering from unwanted characters - RegExReplace()

Thank you! (it seems to work - in some way) Another problem arose - "CR/LF" must be replaced with one or two spaces. The end goal is to, also divide these rows into 6 fields, and put these in an array. (one way is to replace CR/LF with one or two spaces, before RegExReplace() ) but the filter.. wond...
20 Oct 2020, 14:57
Topic: Character filtering from unwanted characters - RegExReplace()
Replies: 9
Views: 170

### Character filtering from unwanted characters - RegExReplace()

Hi! The information in a variable has been retrieved from another program. My expectation was to get the following results (as an example) .: 4 200306-550-24AMBRA MBLD COGNAC 151.20 10.0 1,512.00 But the result is always .: 4 200306-550-24AMBRA MBLD COGNAC 151.20 10.0 1,512.00 (with one line break) ...
20 Oct 2020, 04:52
Topic: How to handle Clipboard and UTF-8?
Replies: 4
Views: 115

### Re: How to handle Clipboard and UTF-8?

...the first command you show includes -enc UTF-8 , but your ahk code does not. Why is this? Excuse me! I tested both with and without (but it did not matter - made no difference and copied the test without -enc UTF-8 ) If xPdftotext converts a PDF file to a text file (in UTF-8 format -enc UTF-8 ) ...
14 Oct 2020, 05:47
Topic: How to handle Clipboard and UTF-8?
Replies: 4
Views: 115

### Re: How to handle Clipboard and UTF-8?

If this program is written in UTF-8 format, it gives the same problem as my problem above Tst := "ÅÄÖ" ; "Ã…Ã„Ã–" MsgBox % "Tst .: " Tst And the solution for this can be a conversion like this .: Tst := "ÅÄÖ" ; Script = UTF-8 ; Tst := "Ã…Ã„Ã–" ; Script = ANSI Tst1 := ChangeCodePage(Tst, "cp1252", "U...
14 Oct 2020, 02:34
Topic: How to handle Clipboard and UTF-8?
Replies: 4
Views: 115

### How to handle Clipboard and UTF-8?

When I run a program ( xpdftotext.exe ) in a CMD window (something like this). pdftotext -f 1 -l 1 -raw -enc UTF-8 -nopgbrk -marginl 50.000000 -marginr 30.000000 -margint 426.793103 -marginb 403.879310 "C:\...\Test.pdf" "c:\temp\test.txt" Will the Swedish åäö be presented correctly in the result fil...
12 Oct 2020, 19:30
Topic: Convert many currency format to decimals
Replies: 10
Views: 157

### Re: Convert many currency format to decimals

Thank you! :bravo: The function seems to work well for many different number presentations. Made a small addition, so it became possible to choose whether the result should have a decimal point or a decimal comma . (If the result is to be handled by AHK, the decimal point ( . ) is better. If the res...
11 Oct 2020, 03:47
Topic: Convert many currency format to decimals
Replies: 10
Views: 157

### Convert many currency format to decimals

My desire is to convert visual numbers (many different formats) to decimals .: Which makes it possible to make calculations on the result with these numbers. Some examples for 1000 with two decimals.: as 1000.00 (or as 1000,00 as on my computer / language) 1.000,00 => 1000.00 1,000.00 => 1000.00 1 0...
11 Oct 2020, 02:31
Topic: Manage an array to / in / from a function() - possible? Topic is solved
Replies: 7
Views: 137

### Re: Manage an array to / in / from a function() - possible? Topic is solved

Thank you! I found the problem (it was many errors - one was RegEx / RegExReplace ;) ...) yes! I like the solution (it works) .: name := "Test" aFunc[name "X1"] := x1 MsgBox % aFunc.TestX1 But, MsgBox only works if name := "Test" My question is still .: How to config MsgBox to work with all "name" ?
10 Oct 2020, 16:06
Topic: Manage an array to / in / from a function() - possible? Topic is solved
Replies: 7
Views: 137

### Re: Manage an array to / in / from a function() - possible? Topic is solved

A problem occurred (which I have not fixed yet) TestFunc(aArray, name, x1, y1) { aArray[name "X1"] := x1 aArray[name "Y1"] := y1 } But not this .: (no values on aArray.FieldAx2 , aArray.FieldAy2) aMainArray := [] TestFunc(aMainArray, "FieldA", 50, 100, 123, 321) TestFunc(aArray, name, x1, y1, x2, y2...
10 Oct 2020, 09:08