|
Post by paladiex on Nov 22, 2016 5:21:12 GMT
|
|
|
Post by angelexo808 on Nov 22, 2016 16:48:48 GMT
"cannot find correct compare dimensions" then another screen that pops up with a blank
Nevermind i figured it out.
|
|
|
Post by paladiex on Nov 22, 2016 18:10:12 GMT
You can buy pro now and add it by your self , thats the way i did , its not that big of a deal just an extra option on start dialog and then a click when you loose, now i do dragon b10 runs for hours Care to share? It's a little too much for me to try to learn at the moment. Tried to slap something together last night. Tried taking a picture of "NO" but the script is just skipping past that part. So I tried to add in click(location(1250,750)) because this is the location of the no button. This also gets skipped. Any ideas on what's going on? All I did was change the "lose" printout and tried to change it to click a location. Below is what I changed. " if (choice == 1) then getLastMatch():highlight(1) if (exists(Pattern("defeatedDiamond.png"):similar(0.9), 0.9)) then click(location(1250,750)) wait(1) "
|
|
|
Post by godemperor on Nov 22, 2016 19:09:42 GMT
Care to share? It's a little too much for me to try to learn at the moment. Tried to slap something together last night. Tried taking a picture of "NO" but the script is just skipping past that part. So I tried to add in click(location(1250,750)) because this is the location of the no button. This also gets skipped. Any ideas on what's going on? All I did was change the "lose" printout and tried to change it to click a location. Below is what I changed. " if (choice == 1) then getLastMatch():highlight(1) if (exists(Pattern("defeatedDiamond.png"):similar(0.9), 0.9)) then click(location(1250,750)) wait(1) " AS im not the author of the script i cant share it , but you are on the right direction you only need to click on "NO" button ,i did it by "click(noWordDefeated)" where noWordDefeated is an image of the word no when you loose . Take into account that resolution of your screenshot may differ from the resolution of image that the script uses (i did a rezise accordingly of my screenshots before using them) so maybe the image you try to click doesnt match with the screenshot that the script take and thats also will cause that a click on a fixed location to fail if you use coordinates from your screenshots .
|
|
|
Post by angelexo808 on Nov 22, 2016 19:49:34 GMT
If i get a text from someone when using the script, does the script keep going or has an error and just derps
|
|
|
Post by paladiex on Nov 22, 2016 21:48:46 GMT
Tried to slap something together last night. Tried taking a picture of "NO" but the script is just skipping past that part. So I tried to add in click(location(1250,750)) because this is the location of the no button. This also gets skipped. Any ideas on what's going on? All I did was change the "lose" printout and tried to change it to click a location. Below is what I changed. " if (choice == 1) then getLastMatch():highlight(1) if (exists(Pattern("defeatedDiamond.png"):similar(0.9), 0.9)) then click(location(1250,750)) wait(1) " AS im not the author of the script i cant share it , but you are on the right direction you only need to click on "NO" button ,i did it by "click(noWordDefeated)" where noWordDefeated is an image of the word no when you loose . Take into account that resolution of your screenshot may differ from the resolution of image that the script uses (i did a rezise accordingly of my screenshots before using them) so maybe the image you try to click doesnt match with the screenshot that the script take and thats also will cause that a click on a fixed location to fail if you use coordinates from your screenshots . How did you resize the picture, and what should I resize it to? I tried to use a picture but it never clicked it. Just saidbit couldnt find the image.
|
|
|
Post by AnkuLua on Nov 22, 2016 23:35:26 GMT
|
|
|
Post by paladiex on Nov 23, 2016 5:19:01 GMT
I am trying to use it, can't get it to run. I am getting an error about a permission being denied for it. Why can't I just use screen shots from the device itself? Edit: If I can get this to work, I'll study a bit more on the commands and try to maybe incorporate some sort of rune evaluation. I'd imagine 6* runes share identical pictures whether they be white, green, blue, pink, and orange. After that It may be possible to look for specific stats. Hope you guys can help me with the pictures. I added this picture to the image directory and named it NoRevive.png I changed the code to read " if (exists(Pattern("defeatedDiamond.png"):similar(0.9), 0.9)) then click("NoRevive.png") wait(1) " It finds the diamond then displays the error code " Same area compareDimenstion = 1196 Runtime error: come.appautomatic.ankulua.f: Can't find NoRevive.png stack traceback [C]: in function 'click' ?: in function 'click' " then the line and directory info
|
|
|
Post by godemperor on Nov 23, 2016 11:02:52 GMT
I am trying to use it, can't get it to run. I am getting an error about a permission being denied for it. Why can't I just use screen shots from the device itself? Edit: If I can get this to work, I'll study a bit more on the commands and try to maybe incorporate some sort of rune evaluation. I'd imagine 6* runes share identical pictures whether they be white, green, blue, pink, and orange. After that It may be possible to look for specific stats. Hope you guys can help me with the pictures. I added this picture to the image directory and named it NoRevive.png I changed the code to read " if (exists(Pattern("defeatedDiamond.png"):similar(0.9), 0.9)) then click("NoRevive.png") wait(1) " It finds the diamond then displays the error code " Same area compareDimenstion = 1196 Runtime error: come.appautomatic.ankulua.f: Can't find NoRevive.png stack traceback [C]: in function 'click' ?: in function 'click' " then the line and directory info From what i tested its mean couldnt find a Match on the actual screen , surely by the dimensions , the i way i resize the screenshot was to use an image (be carefull to use image _path unless uset half resolución option) as reference and resize the screenshot until the imag r matches the corresding área on the screenshot then you can rizese all screenshot to that size and then crop any part and use it
|
|
|
Post by paladiex on Nov 23, 2016 15:58:45 GMT
I am trying to use it, can't get it to run. I am getting an error about a permission being denied for it. Why can't I just use screen shots from the device itself? Edit: If I can get this to work, I'll study a bit more on the commands and try to maybe incorporate some sort of rune evaluation. I'd imagine 6* runes share identical pictures whether they be white, green, blue, pink, and orange. After that It may be possible to look for specific stats. Hope you guys can help me with the pictures. I added this picture to the image directory and named it NoRevive.png I changed the code to read " if (exists(Pattern("defeatedDiamond.png"):similar(0.9), 0.9)) then click("NoRevive.png") wait(1) " It finds the diamond then displays the error code " Same area compareDimenstion = 1196 Runtime error: come.appautomatic.ankulua.f: Can't find NoRevive.png stack traceback [C]: in function 'click' ?: in function 'click' " then the line and directory info From what i tested its mean couldnt find a Match on the actual screen , surely by the dimensions , the i way i resize the screenshot was to use an image (be carefull to use image _path unless uset half resolución option) as reference and resize the screenshot until the imag r matches the corresding área on the screenshot then you can rizese all screenshot to that size and then crop any part and use it. After reading your response I thought you wanted me to match to size to one of the previous screenshots. That didn't work. But I reread it and thought you mean't resizing the screenshot to match the resolution on the other pictures. The script is set to run in 1196 for the width, so I just changed the screenshot to match that resolution in paint then cut the required part again. That worked, still no luck with remoteAKL though. I at least know how to get working pictures in now though. Thanks guys. Edit: I've got it working now. I changed " if (choice == 1) then getLastMatch():highlight(1) if (exists(Pattern("defeatedDiamond.png"):similar(0.9), 0.9)) then simpleDialog("Warning", "Lose") return end end " to " if (choice == 1) then getLastMatch():highlight(1) if (exists(Pattern("defeatedDiamond.png"):similar(0.9), 0.9)) then click(Pattern("NoRevive.png"):similar(0.7)) click(listMatch) end end " and I added this picture named "NoRevive.png" to the summoners war image directory in the script Edit: I changed the original code I had posted to something way shorter. This was quite simple and I learned a lot. I will attempt to add in rune evaluation in my spare time; at a minimum an option to sell runes less than 6 stars, or less than 5 stars. That should be simple enough to add.
|
|
|
Post by Abomination on Nov 26, 2016 5:00:48 GMT
From what i tested its mean couldnt find a Match on the actual screen , surely by the dimensions , the i way i resize the screenshot was to use an image (be carefull to use image _path unless uset half resolución option) as reference and resize the screenshot until the imag r matches the corresding área on the screenshot then you can rizese all screenshot to that size and then crop any part and use it. After reading your response I thought you wanted me to match to size to one of the previous screenshots. That didn't work. But I reread it and thought you mean't resizing the screenshot to match the resolution on the other pictures. The script is set to run in 1196 for the width, so I just changed the screenshot to match that resolution in paint then cut the required part again. That worked, still no luck with remoteAKL though. I at least know how to get working pictures in now though. Thanks guys. Edit: I've got it working now. I changed " if (choice == 1) then getLastMatch():highlight(1) if (exists(Pattern("defeatedDiamond.png"):similar(0.9), 0.9)) then simpleDialog("Warning", "Lose") return end end " to " if (choice == 1) then getLastMatch():highlight(1) if (exists(Pattern("defeatedDiamond.png"):similar(0.9), 0.9)) then click(Pattern("NoRevive.png"):similar(0.7)) click(listMatch) end end " and I added this picture named "NoRevive.png" to the summoners war image directory in the script Edit: I changed the original code I had posted to something way shorter. This was quite simple and I learned a lot. I will attempt to add in rune evaluation in my spare time; at a minimum an option to sell runes less than 6 stars, or less than 5 stars. That should be simple enough to add. are you willing to share the changed file? I would love the script to have a way to continue after losses.
|
|
|
Post by angelexo808 on Nov 27, 2016 12:52:20 GMT
when are you switching to C++ programming?
|
|
|
Post by wssn on Nov 29, 2016 19:17:13 GMT
can i have the password for the last ver ? the 1.2 ver didt not work with me ....
|
|
|
Post by AnkuLua on Nov 30, 2016 0:19:40 GMT
can i have the password for the last ver ? the 1.2 ver didt not work with me .... Thanks for sharing. Password sent.
|
|
|
Post by mahnster on Nov 30, 2016 1:47:07 GMT
Would also love an updated version of this with continue if lose option! Could drop reviver for dragons to get faster runs!
|
|