Search found 9 matches
- 26 Oct 2021, 00:01
- Forum: Ask for Help (v1)
- Topic: Count Max X & Max Y from List
- Replies: 8
- Views: 742
Re: Count Max X & Max Y from List
Does this work?: list = ( 500,600 500,700 500,800 600,800 600,600 600,700 600,800 600,900 ) cntx := [], cnty := [] for a,b in strsplit(list, "`n", "`r") { x := strsplit(b,",").1, y := strsplit(b,",").2 cntx[x] := !ObjHasKey(cntx, x) ? 1 : cntx[x] + 1 cnty[y] := !ObjHasKey(cnty, y) ? 1 : cnty[y] + 1...
- 25 Oct 2021, 23:59
- Forum: Ask for Help (v1)
- Topic: Count Max X & Max Y from List
- Replies: 8
- Views: 742
Re: Count Max X & Max Y from List
mikeyww wrote: Your initial post indicated, "I am facing an issue counting the y, it's always getting the wrong result". Has the question changed during this thread?
No it's not, it just: "maybe I didn't explain well."
- 25 Oct 2021, 17:16
- Forum: Ask for Help (v1)
- Topic: Count Max X & Max Y from List
- Replies: 8
- Views: 742
Re: Count Max X & Max Y from List
Why not using something like this: list = ( 500,600 500,700 500,800 600,800 600,600 600,700 600,800 601,900 ) maxx := 0, maxy := 0 for x,y in strsplit(list, "`n", "`r") { maxx := max(strsplit(y,",").1,maxx) maxy := max(strsplit(y,",").2,maxy) } msgbox % maxx "`n" maxy Thanks for your kind reply and...
- 25 Oct 2021, 17:11
- Forum: Ask for Help (v1)
- Topic: Count Max X & Max Y from List
- Replies: 8
- Views: 742
Re: Count Max X & Max Y from List
This function returns a single value, so it's not clear what it should be returning instead. Thanks for your kind reply, maybe I didn't explain well. I know that the return value is a single value, and as an example: the list contains x,y list = ( 500,600 500,700 500,800 600,800 600,600 600,700 600...
- 25 Oct 2021, 12:12
- Forum: Ask for Help (v1)
- Topic: Count Max X & Max Y from List
- Replies: 8
- Views: 742
Count Max X & Max Y from List
Dears, Below is the script to count the maximum x from the list as below, but I am facing an issue counting the y, it's always getting the wrong result. am think ( if am not wrong ) that the function still counting the X instead of Y. Would you please look at it and reply to me? Thank you so much fo...
- 28 Dec 2020, 00:58
- Forum: Ask for Help (v1)
- Topic: How can I un-encrypt my script? Topic is solved
- Replies: 22
- Views: 5161
Re: How can I un-encrypt my script? Topic is solved
im also really impressed with this script to hide our code. although im struggling with understanding the default key used to encode or decode. i dont want to use the default key, because others who do understand the code better than me will be able to decode with default key. I assume is (abc@123....
- 14 May 2020, 02:55
- Forum: Scripts and Functions (v1)
- Topic: [class] LayeredWindow ( WS_EX_LAYERED )
- Replies: 12
- Views: 5023
- 20 Mar 2019, 06:33
- Forum: Ask for Help (v1)
- Topic: IL and LV - Issue Topic is solved
- Replies: 2
- Views: 633
Re: IL and LV - Issue Topic is solved
Hi, my (untested) suggestions: Remove the leading numbers from the image file names. Create an array of file names. Create a complete image list at the start of the script. Replace the ComboBox control by a DDL . Add the AltSubmit option to make it return the index of the selected item. #NoEnv Imag...
- 19 Mar 2019, 04:44
- Forum: Ask for Help (v1)
- Topic: IL and LV - Issue Topic is solved
- Replies: 2
- Views: 633
IL and LV - Issue Topic is solved
HI, am facing an issue in the following code: #Persistent Gui, Add, ListView, -Readonly w225 h200 Center hwndhLV vLV, IMG|Action|Label Gui, Add, ComboBox,Center Choose1 r14 w120 gbox vfrmSAVEDPRESET , 1 True|2 Question|3 Attention|4 Star|5 Into|6 Plus|7 Kiss|8 North|9 South|10 East|11 West|12 Up|13 ...