Search found 8 matches
- 04 Apr 2018, 04:22
- Forum: Ask for Help (v1)
- Topic: Confusing associative arrays Topic is solved
- Replies: 7
- Views: 1546
Re: Confusing associative arrays Topic is solved
Thank you, I think i got it now. I went even further and created this: class images { __new() { num = 1 Loop, Files, files\*.bmp { imageName := A_LoopFileName stringtrimRight, imageName, imageName, 4 ;removes ".bmp" from filename StringRight, rightMostChar, imageName, 1 if rightMostChar not in 1,2,3...
- 04 Apr 2018, 02:08
- Forum: Ask for Help (v1)
- Topic: Confusing associative arrays Topic is solved
- Replies: 7
- Views: 1546
Re: Confusing associative arrays Topic is solved
Thank you both for replies! I combined both answers and came up with this: class ButtonPictures { __new() { IniRead, sectionNames, files\buttons.ini Loop, parse, sectionNames, `n { secName := A_LoopField this.pictureArray[secName]:={} Loop, Files, files\%secName%??.bmp { this.pictureArray[secName][a...
- 03 Apr 2018, 16:02
- Forum: Ask for Help (v1)
- Topic: Confusing associative arrays Topic is solved
- Replies: 7
- Views: 1546
Confusing associative arrays Topic is solved
Hello, for the sake of this question, lets assume that I have images with these names in a certain folder: buttonA.bmp, buttonA2.bmp, buttonA3.bmp, buttonB.bmp, buttonB2.bmp. I am trying to create an associative array at the beginning of my script, which will read the names of pictures and create an...
- 26 Mar 2018, 05:41
- Forum: Scripts and Functions (v1)
- Topic: Vis2 - Image to Text OCR()
- Replies: 329
- Views: 163453
Re: Vis2 - OCR() - Update: Additional Language Support
Great update! Previously if I wanted my script to use both Gdip and Vis2, I had to comment out these 2 lines in Vis2: Startup(){ ;return Vis2.Graphics.pToken := (Vis2.Graphics.Gdip++ > 0) ? Vis2.Graphics.pToken : Gdip_Startup() } Shutdown(){ ;return Vis2.Graphics.pToken := (--Vis2.Graphics.Gdip == 0...
- 28 Jul 2016, 12:10
- Forum: Ask for Help (v1)
- Topic: array name as a variable Topic is solved
- Replies: 8
- Views: 2208
Re: array name as a variable Topic is solved
oh, hmm, i tried again with the quotation marks within array and it works now, all it needed was to put imagefile.bmp and imagefile2.bmp in quotes (:
thank you thank you much appreciated,
solved.
thank you thank you much appreciated,
solved.
- 28 Jul 2016, 11:31
- Forum: Ask for Help (v1)
- Topic: array name as a variable Topic is solved
- Replies: 8
- Views: 2208
Re: array name as a variable Topic is solved
i thought maybe the problem lies in that array values have dots (imagefile.bmp and imagefile2.bmp) and tried to put them in quotes, but still nothing
- 28 Jul 2016, 11:27
- Forum: Ask for Help (v1)
- Topic: array name as a variable Topic is solved
- Replies: 8
- Views: 2208
Re: array name as a variable Topic is solved
i only put it in quotes after trying it without quotes, it still doesn't work. same thing - errorlevel2, i checked with a tooltip, it doesn't assign anything to variable "image".
thats why came here for help :/
p.s. thanks for trying to help, even if not resolved i still appretiate (:
thats why came here for help :/
p.s. thanks for trying to help, even if not resolved i still appretiate (:
- 28 Jul 2016, 10:21
- Forum: Ask for Help (v1)
- Topic: array name as a variable Topic is solved
- Replies: 8
- Views: 2208
Re: array name as a variable Topic is solved
im calling the function like this: myImage := [imagefile.bmp, imagefile2.bmp] imageswait(2, "myImage", 1x, 1y, 0, 0, 514, 709, 2, 135) if (errorlevel = 0) { mousemove, %1x%, %1y% msgbox, found! } else if (errorlevel = 1) msgbox, not found else msgbox, cant search its giving errorlevel2 always :/ P.S...