Search found 1363 matches

by Albireo
22 Jan 2021, 18:35
Forum: Ask For Help
Topic: Gui in a function() - works - almost as desired Topic is solved
Replies: 2
Views: 658

Gui in a function() - works - almost as desired Topic is solved

Why does the second example not work? (What have I missed?) This example works (a result is returned) .: #SingleInstance force Result := TestFuncGui() MsgBox ,, %A_ScriptName% - Rad %A_LineNumber%, % "Program ready! `nResult .: " Result Return TestFuncGui() { Static T1, Supplier ; Gui variables have...
by Albireo
21 Jan 2021, 08:05
Forum: Ask For Help
Topic: View few / many images in dynamic GUI
Replies: 3
Views: 83

Re: View few / many images in dynamic GUI

Your solutions is very nice (ColorPicker and the image viewer)
But I don't understand, how to use your code in my project....
by Albireo
20 Jan 2021, 18:27
Forum: Ask For Help
Topic: View few / many images in dynamic GUI
Replies: 3
Views: 83

View few / many images in dynamic GUI

Hi! My wish is to handle an unknown number of images. Usually there are a few pictures one, two or three, but there can be more than that. (I want to see all the pictures and choose one of them) If there are a few images to show, there is no problem (fits in the GUI window) But if there are too many...
by Albireo
18 Jan 2021, 08:27
Forum: Ask For Help
Topic: Convert many currency format to decimals Topic is solved
Replies: 24
Views: 404

Re: Convert many currency format to decimals Topic is solved

Thank you! Version 4 is better, (with the addition of the ability to specify whether the input value is an integer or not decExit ) The only time the input value must be specified because the input value is an integer in version 4 is for example. 123 456 (Which I think happens quite rarely) Version ...
by Albireo
18 Jan 2021, 08:05
Forum: Ask For Help
Topic: The use of RegExReplace - to split a line
Replies: 20
Views: 409

Re: The use of RegExReplace - to split a line

Thanks! To check and select all the columns, this will works (Instead of A_Space i make a Space) #SingleInstance force invRow := "P2423SV CAPELLA SVART KLART 6 Sty 379.00 10 2 046.60" If ( invRow ~= "(\s+((\d+ )?\d+)\s+[a-zåäöA-ZÅÄÖ]+\s+((\d+ )?\d+.\d+)\s+((\d+ )?\d+)\s+((\d+ )?\d+.\d+))$" ) { lastC...
by Albireo
17 Jan 2021, 11:05
Forum: Ask For Help
Topic: Convert many currency format to decimals Topic is solved
Replies: 24
Views: 404

Re: Convert many currency format to decimals Topic is solved

Thank you! :clap: (I like this function) Your solution works in most cases, No problems - now (as far as I understand) arise if the input value has decimals. but I add the possibility to define if the number has decimals or not. :) like this .: currencyToDecimal(currency, decsign := ".", dec := 2, d...
by Albireo
17 Jan 2021, 09:50
Forum: Ask For Help
Topic: The use of RegExReplace - to split a line
Replies: 20
Views: 409

Re: The use of RegExReplace - to split a line

As I mentioned earlier. The program I use to analyze PDF files ( XpdfReader - pdftotext reads only the characters that create the PDF file(no conversions). I have no idea how different PDF programs create PDF files. What characters I may encounter. I intend to try to analyze invoices from about 40 s...
by Albireo
17 Jan 2021, 07:14
Forum: Ask For Help
Topic: Convert many currency format to decimals Topic is solved
Replies: 24
Views: 404

Re: Convert many currency format to decimals Topic is solved

Yes it works!
But, is 3.141 or 3,141 (PI) or an integer (three thousand one hundred forty one)?
by Albireo
17 Jan 2021, 04:37
Forum: Ask For Help
Topic: Convert many currency format to decimals Topic is solved
Replies: 24
Views: 404

Re: Convert many currency format to decimals Topic is solved

Your solution is much nicer than mine :) However, there is a "problem" that I can not solve in any other way, with this function() , than to be able to specify whether the number to be treated is an integer or a decimal number. An example 100/33 = 33.333333, the currencyToDecimal() gives the answer ...
by Albireo
16 Jan 2021, 07:42
Forum: Ask For Help
Topic: Convert many currency format to decimals Topic is solved
Replies: 24
Views: 404

Re: Convert many currency format to decimals Topic is solved

No matter how hard I tried, I could not solve my desire, without to mark if the input value has decimals ( decExist ) or not. This function() seems to be working (right now :D ) #SingleInstance force ; strings := ["123.1292", "1.000,62", "1,000.64", "1 000,45", "1000", "1,000", "200,45", "200,00", "...
by Albireo
16 Jan 2021, 06:13
Forum: Ask For Help
Topic: if - compare - why does not work (as desired) Topic is solved
Replies: 11
Views: 195

Re: if - compare - why does not work (as desired) Topic is solved

Thank you! You can force an alphabetic comparison by using code like this: if ("" 64 = 0064) MsgBox true Else MsgBox false ... This is better than comparing lengths ... :) (but it works) the whole comparison becomes always a comparison with strings? (It's not needed "" on both sides of the equals si...
by Albireo
15 Jan 2021, 13:21
Forum: Ask For Help
Topic: if - compare - why does not work (as desired) Topic is solved
Replies: 11
Views: 195

Re: if - compare - why does not work (as desired) Topic is solved

But my test program says "integer" in both cases?
by Albireo
15 Jan 2021, 11:19
Forum: Ask For Help
Topic: if - compare - why does not work (as desired) Topic is solved
Replies: 11
Views: 195

Re: if - compare - why does not work (as desired) Topic is solved

Added a few lines in the program that check if the variables are of the same type if FieldBest_%ProdNo%_1 is float MsgBox 64, Rad %A_LineNumber% -> %A_ScriptName%, % FieldBest_%ProdNo%_1 " is float" if FieldBest_%ProdNo%_1 is alpha MsgBox 64, Rad %A_LineNumber% -> %A_ScriptName%, % FieldBest_%ProdNo...
by Albireo
15 Jan 2021, 10:03
Forum: Ask For Help
Topic: if - compare - why does not work (as desired) Topic is solved
Replies: 11
Views: 195

if - compare - why does not work (as desired) Topic is solved

(I know it's difficult because I don't have a test program.) I'm looking for a value in a CSV file But my AHK program thinks that 00064 is equal to 64 This program seems to work as desired A1 := "64" A2 := "00064" If A1 = A2 MsgBox % "Equal `n" A1 "`n" A2 else MsgBox % "NOT Equal `n" A1 "`n" A2 A3 =...
by Albireo
14 Jan 2021, 12:56
Forum: Ask For Help
Topic: Convert many currency format to decimals Topic is solved
Replies: 24
Views: 404

Re: Convert many currency format to decimals Topic is solved

No... :o The function() - currencyToDecimal does not work if the call is as follows .: (From decimal point to decimal comma ) eg. strings := ["1.000,12", "1,000.50", "1 000,65", "1000", "1,000", "200,45", "200,00", "10.0"] For index, currency in strings text .= currency " => " currencyToDecimal(curr...
by Albireo
13 Jan 2021, 13:58
Forum: Ask For Help
Topic: Add values to an array Topic is solved
Replies: 5
Views: 81

Re: Add values to an array Topic is solved

This work outside the Loop

Code: Select all

invTotal.Crt := 0
invTotal.Crt += 3
This does not work inside the loop

Code: Select all

Loop 3
{    Col := "10"
     invTotal.Crt += Col
     ...
by Albireo
13 Jan 2021, 12:31
Forum: Ask For Help
Topic: Add values to an array Topic is solved
Replies: 5
Views: 81

Re: Add values to an array Topic is solved

yes (you have right but...) invTotal := [] invTotal.Crt := 0 invTotal.Crt += 3 MsgBox ,, %A_ScriptName% - Row %A_LineNumber%, % "1) " invTotal.Crt Col := "5" invTotal.Crt += Col MsgBox ,, %A_ScriptName% - Row %A_LineNumber%, % "1) " invTotal.Crt Loop 4 { invTotal.Crt += A_Index invTotal += % A_Index...

Go to advanced search