Stelath / wordscapes-bot

A Bot that Completes Levels on the Videogame WordScapes
GNU General Public License v3.0
4 stars 1 forks source link

Basic functionality #2

Open DeathWish808 opened 1 year ago

DeathWish808 commented 1 year ago

After messing around with this for about 8 hours over the weekend I found that "i" is consistently confused for "f". On the rare occasion "Q" is confused for "O". Sometimes restarting everything fixed it for the first puzzle and nails it then it goes downhill.

Changing the speed tends to make things worse and make it take up to 6 to infinity times to finish. I say infinity because sometimes it only sees 6 letters instead of 7.

"FAILED TOO MANY TIMES. ATTEMPTING VOLATILE CHARACTER OCR." It happens a lot and once it does it twice in the terminal it brings up the "i" like it's supposed to as well as a longer and better list of words that always works. That list should be brought up first.

It would be nice if after every 16 puzzles it would auto-click on the pop-up's "X" in between "levels" to close it. Otherwise, it gets hung up.

The self-promotion ads they have do the same thing, but if you could press space or something to pause the script and same to resume then that would be great.

The only other thing would be to have the OCR look at the "crossed out 3" by the star in the bottom left corner and if it's there then have the program not enter any 3-letter words.

Stelath commented 1 year ago

Hey, thanks for the advice, currently I'm not working on this as I have a lot of other things going on right now but you're more than welcome to fork this and make a pull request with any improvements. If I remember correctly when I created this the OCR wasn't that good so I made a "Volatile OCR" feature that if it couldn't get the letter correct would randomly crop the image a bit in the hopes that the OCR engine would get the correct letter. Also there are features in place to attempt to close out of the auto popups but as I said before, I made this a couple years ago so my guess is that they no longer work as intended. Sorry for not fixing it, I just have a lot on my plate right now.

Stelath commented 1 year ago

If I do revisit this project I'll make sure to implement your suggestions though!

DeathWish808 commented 1 year ago

No worries, thanks for the update. My friend added a key to pause it so I could pause and continue it when things got weird.

It works really well for the most part but you can't just walk away from it. I'm not using it to compete as I'm pretty good on my own. It's more of a side thing to learn some coding again and making the OCR consistent. I might have time to mess with it next week with my friend that's a programmer. The game has a new bug that requires you to restart it if you click on the "buy our coins" self-promo crap. If we come up with anything then I'll post the updated code.

On Wed, Jun 28, 2023, 3:18 PM Alex @.***> wrote:

Hey, thanks for the advice, currently I'm not working on this as I have a lot of other things going on right now but you're more than welcome to fork this and make a pull request with any improvements. If I remember correctly when I created this the OCR wasn't that good so I made a "Volatile OCR" feature that if it couldn't get the letter correct would randomly crop the image a bit in the hopes that the OCR engine would get the correct letter. Also there are features in place to attempt to close out of the auto popups but as I said before, I made this a couple years ago so my guess is that they no longer work as intended. Sorry for not fixing it, I just have a lot on my plate right now.

— Reply to this email directly, view it on GitHub https://github.com/Stelath/wordscapes-bot/issues/2#issuecomment-1611961518, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQTCEBCFAK7KCT57PNVZEX3XNR7QJANCNFSM6AAAAAAZTSH2W4 . You are receiving this because you authored the thread.Message ID: @.***>

DeathWish808 commented 1 year ago

OK, so quite a few hours (many) have been put in trying to make this completely autonomous for the latest version of Wordscapes as of today (October 15, 2023). Here's a video of it doing its thing... https://youtu.be/vr4pdwGF-ws

-Unzip and overwrite files. -Run the script as per your instructions. I've been testing it with a speed of 1.6 on my PC, but you'll have to play around with the speed for your PC depending on how fast or slow your PC is.

-It will ask you to close the Piggy Bank first. Just click somewhere on the edge of the window where it's empty. I just click to the far right of the level start button at the very edge of the window.

-Next, it'll ask you to click the start level button as was the default. I recommend clicking on the far left side in the curved area to the left of the L.

-Continue as per your original instructions.

-The down arrow key will pause the script so you can do other things and pressing again will restart the script so you don't have to keep doing the first steps over again.

-It's not perfect, but it typically will not mess up, or get stuck for long periods of time. I've let it run for over 18 hours while I was away and it was still doing fine. Sometimes the timing gets off and can temporarily (sometimes permanently) get stuck in a loop fighting the piggy bank, but that's been rare. Other rare issues can happen as well, but overall it's pretty good.

-Solving a puzzle is now more efficient as it stays on the puzzle screen if it doesn't finish solving it instead of going back to the menu and returning which caused issues as well.

MASTER WORDSCAPES SCRIPT - October-15-2023 update.zip

EDIT: There's one background style that is very white and won't allow OCR to read the letters. I did a simple fix using an image editor to make a transparent image of a circle to overlay around the letter circle and that solved it.

DeathWish808 commented 1 year ago

OK, so one last update. -Click the piggy bank to open it then run the script. -Click the X to close it. -It will then ask you to click the edge of the window. Click to the far right edge of the screen of the Level start button. -Follow the usual prompts. This keeps you from getting stuck in a loop trying to close the Piggy as well as getting stuck in a dictionary loop. So far, following my previous instructions and this update, I've let it run for over a day with no issues.

The faster your computer, the faster you can run it. If you're getting Volatile often, then slow it down.

(This does not necessarily work if you use bees and they run out and get a popup or other popups that only newer players get.)

Here's the (most likely) final iteration... UPDATED WORDSCAPES SCRIPT - October-18-2023.zip

***The directory to replace files is: C:\Users\YOURNAME\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\wordscapesbot

Stelath commented 1 year ago

Sorry I've been really busy, thank you so much for this! I'll take a look at this later this week and push it to the repo and set you as an author of the changes, you can also make a pull request if you'd like as well. This is super sick tho, thank you so much for the help!

diesel202310 commented 1 year ago

Deathwish - some nice changes to the codes, I like them.

EDIT: There's one background style that is very white and won't allow OCR to read the letters. I did a simple fix using an image editor to make a transparent image of a circle to overlay around the letter circle and that solved it.

So, in the wordsearch.py I've added this code to find when a puzzle >3 letters is present.

Find the puzzles > 3 letters, and set the word length to >3

word_length = 2
if pyautogui.locateOnScreen('nothree.png', region=(60, 810, 29, 29), confidence=0.5):
   word_length = 3

(took a snip of that, then went online and cropped into a circle) but I get that before the game starts, and plug the region/confidence. (i know it takes seconds to swipe everything, but this nags at me) i think this was your initial complain too.

Since the game for me is set in a fixed place on my screen, and the wheel coordinates does not change it would be nice to set the pig x location, and the wheel if there is a need to quit the game, so resuming you dont have to keep plugging those again and again.

I also have a concise dictionary with only words that WS uses, so it eliminates all those SOWPODS words that WS ignores. Improves the game and speed to swipe ONLY the accepted words in WS.

White backgrounds and backgrounds that have tree roots that looks like letters, I dont see it in your revised codes. Was that in the other py modules (ocr / input) that you didnt post? But my game stalls miserably with that White background, and ones with background that has potential letters. Can you share that with me?

diesel202310 commented 1 year ago

Also, when the OCR finds letters >7, there should be a loop that tells it to re-scan. WS currently does not go beyond 7 letters. You can also trim the dictionary to eliminate anything below 3 letters and greater than 7 letters.

DeathWish808 commented 1 year ago

I do not have code in there for the white or weird backgrounds. I just used a transparent black circle overlay from a 3rd party program since OCR doesn't see layers, it only sees what you see on screen, which stops the confusion with the OCR reading it. I used PureRef and ShareX for that. I'm sorry if I don't understand exactly what you're saying. I'm still learning. I don't know how to fix the white background issue with the code.

Since the game for me is set in a fixed place on my screen, and the wheel coordinates do not change it would be nice to set the pig x location, and the wheel if there is a need to quit the game, so resuming you don't have to keep plugging those again and again.

You don't have to redo the initial starting clicks every time. Just use the down arrow key to pause and then you can close bluestacks and restart then start the game which will be in the same place every time then just unpause it and it will start solving. You only need to redo the initial setup if you press q to quit. Personally, I'd change the quit button to the 'End' key so you don't quit the script when typing messages, etc by accident. I hope this makes sense.

DeathWish808 commented 1 year ago

Here's a video of using it in its current state with me rambling. LOL. https://youtu.be/vP_EwTyq1Rk

diesel202310 commented 1 year ago

You: I used PureRef and ShareX for that I just took a look a PureRef, now I understand what this does. I will try this out. BUT I suspect (i'm new to Python) in the get_image.py/ocr.py you can tweak the image captured and remove more of background noises or even render the image with a black background before the OCR process starts to get characters. I just need to play around with that a little more.

Agree on the quit button need to be re-mapped.

Agree also on not redo the starting clicks, I just realized the python is completely separate, as it just does its thing on that part of the screen. Thx good tip here. Been doing this wrong.

Again - thanks for the intel. Hehe - like you YouTube rambles

DeathWish808 commented 1 year ago

Background... https://youtu.be/yaId8BSG9WE

Oh, I will say that I did a black overlay on everything except the circle and that messes everything up since it can't "see".

DeathWish808 commented 1 year ago

This simple tweak with the overlay thing makes everything work better so far. https://youtu.be/JixOSAJq02U

Stelath commented 12 months ago

Hey, once again sorry for the lack of activity on my part, I'm currently slammed with research. But would you like me to merge this with the current code in the repo? If so you can make a Pull Request if you'd like and I'll approve it or, if you send me the updated files I can do it myself. Once again thank you so much! I think its awesome that y'all have improved this project so much!

DeathWish808 commented 11 months ago

I'm testing out a new update, and so far, it's working 100%. Once I finish testing, I'll upload it, regardless, as it's the best working version so far. I'll update soon with a Pull Request if things continue to go as well as they are. Cheers!

DeathWish808 commented 11 months ago

Hey, once again sorry for the lack of activity on my part, I'm currently slammed with research. But would you like me to merge this with the current code in the repo? If so you can make a Pull Request if you'd like and I'll approve it or, if you send me the updated files I can do it myself. Once again thank you so much! I think its awesome that y'all have improved this project so much!

Here's the updated code...

I changed the quit key to the hyphen '-' so you don't accidentally quit when typing messages. The down arrow pauses. When you start you need to click on the piggy bank to open it first before you run the script. Run it and then it'll ask you to "close the pig" so it knows where the X is. Then click on the edge of the screen when it asks. I recommend the far right edge from the start level button. Then click on the far left of the Level button when asked. The rest is as usual. wordscapesbotUPDATED11-16-2023 .zip

mchlmntln commented 11 months ago

sometimes the ocr is hard to detect, specially in pebbles level which is too white background of sea sand and the word pallet is also white, it's possible to adjust or anything that would help for the bot? IMG_20231124_184654

DeathWish808 commented 11 months ago

This is not an easily solvable issue. I'll refer back to 3rd party programs that I used to solve the problem... https://github.com/Stelath/wordscapes-bot/issues/2#issuecomment-1776594797

There are far too many variables to consider due to the amount of things the devs change constantly to make it a "set it and forget" thing, so my updated script works very well and then using the black transparent circle when that ONE level you screenshotted above comes up solves it. You just need to check on it once in a while. Sometimes it'll get stuck on some really random things and other times, it'll go unassisted for 18 hours. It just depends on luck and speed of your PC. The faster, the better, and the slower you run the script the better typically.

You just have to experiment. Before my updated script, you couldn't make it through a single 16 stage level. Now it can easily go further. You're welcome!

mchlmntln commented 11 months ago

This is not an easily solvable issue. I'll refer back to 3rd party programs that I used to solve the problem... #2 (comment)

There are far too many variables to consider due to the amount of things the devs change constantly to make it a "set it and forget" thing, so my updated script works very well and then using the black transparent circle when that ONE level you screenshotted above comes up solves it. You just need to check on it once in a while. Sometimes it'll get stuck on some really random things and other times, it'll go unassisted for 18 hours. It just depends on luck and speed of your PC. The faster, the better, and the slower you run the script the better typically.

You just have to experiment. Before my updated script, you couldn't make it through a single 16 stage level. Now it can easily go further. You're welcome!

thank you for that

DeathWish808 commented 11 months ago

👍👍

mchlmntln commented 11 months ago

👍👍

what about white text and black background, sometimes its hard to recognize it, or maybe my screen size or i wrong the clicking location?

DeathWish808 commented 11 months ago

I've only ever had an issue with the pebbles background. Make sure you click top, right, bottom, left inside the letter circle. If you click outside then you'll probably have issues. I click inside within 3-5 pixels and use -s 1.6 which works well, but again, it depends on your PC. The black circle tends to choke things up randomly on other backgrounds even when it matches. No idea why. I'm working on a "shadow" version like some have by default to be able to leave it in place 100% of the time. If/when I find something that works then I'll post the new circle and how to use it.

mchlmntln commented 11 months ago

I've only ever had an issue with the pebbles background. Make sure you click top, right, bottom, left inside the letter circle. If you click outside then you'll probably have issues. I click inside within 3-5 pixels and use -s 1.6 which works well, but again, it depends on your PC. The black circle tends to choke things up randomly on other backgrounds even when it matches. No idea why. I'm working on a "shadow" version like some have by default to be able to leave it in place 100% of the time. If/when I find something that works then I'll post the new circle and how to use it.

oh so my mistake, i clicking outside, I'll try again later. btw thanks for improving the bot.

mchlmntln commented 11 months ago

i also encounter the bot can't solve when the word pallet contains 7 letters at white text in updated script, but when i use October release its work IMG_20231128_080632_1

DeathWish808 commented 11 months ago

I've only ever had an issue with the pebbles background. Make sure you click top, right, bottom, left inside the letter circle. If you click outside then you'll probably have issues. I click inside within 3-5 pixels and use -s 1.6 which works well, but again, it depends on your PC. The black circle tends to choke things up randomly on other backgrounds even when it matches. No idea why. I'm working on a "shadow" version like some have by default to be able to leave it in place 100% of the time. If/when I find something that works then I'll post the new circle and how to use it.

i also encounter the bot can't solve when the word pallet contains 7 letters at white text IMG_20231128_080632_1

I've never had an issue with that one. Not sure why it's doing that on yours.I tried it on 3 different PCs and they all have the issue with the white on white background, but that's it. Other than that I can run it faster on one PC with better results due to it having a faster CPU and an NVME SSD.

mchlmntln commented 11 months ago

I've only ever had an issue with the pebbles background. Make sure you click top, right, bottom, left inside the letter circle. If you click outside then you'll probably have issues. I click inside within 3-5 pixels and use -s 1.6 which works well, but again, it depends on your PC. The black circle tends to choke things up randomly on other backgrounds even when it matches. No idea why. I'm working on a "shadow" version like some have by default to be able to leave it in place 100% of the time. If/when I find something that works then I'll post the new circle and how to use it.

i also encounter the bot can't solve when the word pallet contains 7 letters at white text IMG_20231128_080632_1

I've never had an issue with that one. Not sure why it's doing that on yours.I tried it on 3 different PCs and they all have the issue with the white on white background, but that's it. Other than that I can run it faster on one PC with better results due to it having a faster CPU and an NVME SSD.

what is the size of your bluestacks?

mchlmntln commented 11 months ago

300MB Get Outlook for Androidhttps://aka.ms/AAb9ysg ____ From: RadeonRx @.> Sent: Monday, November 27, 2023 8:22:46 PM To: Stelath/wordscapes-bot @.> Cc: Steven M. @.>; Author @.> Subject: Re: [Stelath/wordscapes-bot] Basic functionality (Issue #2) I've only ever had an issue with the pebbles background. Make sure you click top, right, bottom, left inside the letter circle. If you click outside then you'll probably have issues. I click inside within 3-5 pixels and use -s 1.6 which works well, but again, it depends on your PC. The black circle tends to choke things up randomly on other backgrounds even when it matches. No idea why. I'm working on a "shadow" version like some have by default to be able to leave it in place 100% of the time. If/when I find something that works then I'll post the new circle and how to use it. i also encounter the bot can't solve when the word pallet contains 7 letters at white text [IMG_20231128_080632_1] https://private-user-images.githubusercontent.com/56593410/286060972-f57c2bb0-27b4-4d7e-8a74-20dee1674889.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTEiLCJleHAiOjE3MDExMzA4MjksIm5iZiI6MTcwMTEzMDUyOSwicGF0aCI6Ii81NjU5MzQxMC8yODYwNjA5NzItZjU3YzJiYjAtMjdiNC00ZDdlLThhNzQtMjBkZWUxNjc0ODg5LmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFJV05KWUFYNENTVkVINTNBJTJGMjAyMzExMjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjMxMTI4VDAwMTUyOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ0NjQwMjU0M2E2ODEzZWY4MmMwNGQ2NmRhYmMwN2M4YTYwOGM4NGIyMTgyZmM5YTBhYWQwZmQzY2JiZTQ5ZGYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.zS9sAGctcUyawb5l9fJfoyZP64YwwsM7PRphzRKnpA8 I've never had an issue with that one. Not sure why it's doing that on yours.I tried it on 3 different PCs and they all have the issue with the white on white background, but that's it. Other than that I can run it faster on one PC with better results due to it having a faster CPU and an NVME SSD. what is the size of your bluestacks? — Reply to this email directly, view it on GitHub<#2 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQTCEBHHJ37CJK3SLQOUYA3YGU4GNAVCNFSM6AAAAAAZTSH2W6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRYHEYTCNRSHA. You are receiving this because you authored the thread.Message ID: @.***>

i mean size screen or resolution of bluestacks

DeathWish808 commented 11 months ago

Oh, LOL, I'm tired. I run BlueStacks at 1600 x 900 on a 24" monitor which itself is 1920 x 1080. Once the game loads it goes from top to about 1/4" from bottom. Game screen including menu bar at top is about 565 x 1045. I've found that much larger or much smaller doesn't work very well.

mchlmntln commented 11 months ago

Oh, LOL, I'm tired. I run BlueStacks at 1600 x 900 on a 24" monitor which itself is 1920 x 1080. Once the game loads it goes from top to about 1/4" from bottom. Game screen including menu bar at top is about 565 x 1045. I've found that much larger or much smaller doesn't work very well.

okay thanks

DeathWish808 commented 11 months ago

Load this into Pureref. Adjust size as needed. -Set to Always on Top (This may not be an option, just going off memory) -Settings > Colors Tab > Glass -Right-click > Mode > Transparent to mouse ... -Profit? GRAY-CIRCLE.zip

DeathWish808 commented 11 months ago

OK, I've experimented with variations of the circle size and the attached pic shown has worked on all backgrounds so far. Your mileage may vary. When I had it the the exact size or slightly larger than the circle it would eventually fail for some random reason. Let me know if you find anything better. ring-placement

mchlmntln commented 11 months ago

thanks, I'll try also to find better

DeathWish808 commented 11 months ago

The previous screenshot showing how big my circle is compared to the letter circle has been working flawlessly so far.

mchlmntln commented 11 months ago

i already use your circle but some level not working on it, some level not required to use the circle if can detect it without using the circle. so i manage to use only the circle in white background or other backgrounds that hard to solve.

DeathWish808 commented 11 months ago

Yes, correct. The main thing it solves is the white on white pebbles background. The rest you have to figure out on your own what works best. There's no perfect solution yet. If you can figure it then let us know...

mchlmntln commented 11 months ago

sure, I'll try other methods that works fine then I'll share it here

DeathWish808 commented 11 months ago

Yeah, thanks!

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: RadeonRx @.> Sent: Wednesday, November 29, 2023 4:04:24 AM To: Stelath/wordscapes-bot @.> Cc: Steven M. @.>; Author @.> Subject: Re: [Stelath/wordscapes-bot] Basic functionality (Issue #2)

sure, I'll try other methods that works fine then I'll share it here

— Reply to this email directly, view it on GitHubhttps://github.com/Stelath/wordscapes-bot/issues/2#issuecomment-1831489680, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQTCEBFPLUD5RY6YCBAC3ALYG33BRAVCNFSM6AAAAAAZTSH2W6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZRGQ4DSNRYGA. You are receiving this because you authored the thread.Message ID: @.***>

Stelath commented 11 months ago

Hey, @DeathWish808 I added your updates to the repository and created a new release version with your updates, thanks once again for the help, you're credited for all the changes as well. If I have any time this winter I may attempt to make a better OCR system specifically for the wordscapes characters with a small pytorch model. Since you're the most up to date with this stuff, when does the OCR usually fail in the current version? Does it get a pretty good rough outline of the letters? or does it just not even detect the letter and fails to feed it into the OCR software?

DeathWish808 commented 11 months ago

It seems to just does not detect the letters, since it never returns anything and stays in that loop.

Stelath commented 11 months ago

Thanks!

mchlmntln commented 11 months ago

I think it's the ocr that needs to be fixed, because once I got stuck on a word, what I did was I shuffled a letters if the bot can't get it, so after that the bot can detect it again, also i change my bluestacks screen size if not working the first method besides, I think the word pallete size is different because ocr is difficult even if I put a circle, i use only the circle for white background

dmx-77 commented 11 months ago

Hello. I have a quick question if anyone feels like helping. If I click anywhere inside the Bluestacks app, windows powershell doesn't recognize it. So when it asks me to click on the pig it does nothing. What am I not doing right? I'm pretty new to all this. Thanks.

DeathWish808 commented 11 months ago

Hello. I have a quick question if anyone feels like helping. If I click anywhere inside the Bluestacks app, windows powershell doesn't recognize it. So when it asks me to click on the pig it does nothing. What am I not doing right? I'm pretty new to all this. Thanks.

Are you opening the piggy bank before you start the script?

dmx-77 commented 11 months ago

Yes, and after I click the close button the script doesn't move on to the next step. It's like it doesn't register my mouse clicks anywhere inside of the bluestacks app.

Sent from Samsung Galaxy smartphone. Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Steven M. @.> Sent: Friday, December 1, 2023 5:30:11 PM To: Stelath/wordscapes-bot @.> Cc: dmx-77 @.>; Comment @.> Subject: Re: [Stelath/wordscapes-bot] Basic functionality (Issue #2)

Hello. I have a quick question if anyone feels like helping. If I click anywhere inside the Bluestacks app, windows powershell doesn't recognize it. So when it asks me to click on the pig it does nothing. What am I not doing right? I'm pretty new to all this. Thanks.

Are you opening the piggy bank before you start the script?

— Reply to this email directly, view it on GitHubhttps://github.com/Stelath/wordscapes-bot/issues/2#issuecomment-1836981924, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BEMXOI7FMXTUYPLDJFADCVTYHKACHAVCNFSM6AAAAAAZTSH2W6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZWHE4DCOJSGQ. You are receiving this because you commented.Message ID: @.***>

DeathWish808 commented 11 months ago

Neither program is connected. You should be able to click on any window in any monitor and unpause the script and it'll jump to BlueStacks because it's solely going by pointer positions recorded during the start of the script.

I'm not at my computer, but check the settings in BlueStacks. There's some for the pointer. I'll look when I get a chance but I've tested on multiple PCs and default settings have always been fine. Maybe if @@.***> is around he can help.

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: dmx-77 @.> Sent: Friday, December 1, 2023 8:45:17 PM To: Stelath/wordscapes-bot @.> Cc: Steven M. @.>; Mention @.> Subject: Re: [Stelath/wordscapes-bot] Basic functionality (Issue #2)

Yes, and after I click the close button the script doesn't move on to the next step. It's like it doesn't register my mouse clicks anywhere inside of the bluestacks app.

Sent from Samsung Galaxy smartphone. Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Steven M. @.> Sent: Friday, December 1, 2023 5:30:11 PM To: Stelath/wordscapes-bot @.> Cc: dmx-77 @.>; Comment @.> Subject: Re: [Stelath/wordscapes-bot] Basic functionality (Issue #2)

Hello. I have a quick question if anyone feels like helping. If I click anywhere inside the Bluestacks app, windows powershell doesn't recognize it. So when it asks me to click on the pig it does nothing. What am I not doing right? I'm pretty new to all this. Thanks.

Are you opening the piggy bank before you start the script?

— Reply to this email directly, view it on GitHubhttps://github.com/Stelath/wordscapes-bot/issues/2#issuecomment-1836981924, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BEMXOI7FMXTUYPLDJFADCVTYHKACHAVCNFSM6AAAAAAZTSH2W6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZWHE4DCOJSGQ. You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHubhttps://github.com/Stelath/wordscapes-bot/issues/2#issuecomment-1836986611, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQTCEBHDYTPFK4Y4OCFN2ALYHKB23AVCNFSM6AAAAAAZTSH2W6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZWHE4DMNRRGE. You are receiving this because you were mentioned.Message ID: @.***>

DeathWish808 commented 11 months ago

Neither program is connected. You should be able to click on any window in any monitor and unpause the script and it'll jump to BlueStacks because it's solely going by pointer positions recorded during the start of the script.

I'm not at my computer, but check the settings in BlueStacks. There's some for the pointer. I'll look when I get a chance but I've tested on multiple PCs and default settings have always been fine. Maybe if @@.***> is around he can help.

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: dmx-77 @.> Sent: Friday, December 1, 2023 8:45:17 PM To: Stelath/wordscapes-bot @.> Cc: Steven M. @.>; Mention @.> Subject: Re: [Stelath/wordscapes-bot] Basic functionality (Issue #2)

Yes, and after I click the close button the script doesn't move on to the next step. It's like it doesn't register my mouse clicks anywhere inside of the bluestacks app.

Sent from Samsung Galaxy smartphone. Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Steven M. @.> Sent: Friday, December 1, 2023 5:30:11 PM To: Stelath/wordscapes-bot @.> Cc: dmx-77 @.>; Comment @.> Subject: Re: [Stelath/wordscapes-bot] Basic functionality (Issue #2)

Hello. I have a quick question if anyone feels like helping. If I click anywhere inside the Bluestacks app, windows powershell doesn't recognize it. So when it asks me to click on the pig it does nothing. What am I not doing right? I'm pretty new to all this. Thanks.

Are you opening the piggy bank before you start the script?

— Reply to this email directly, view it on GitHubhttps://github.com/Stelath/wordscapes-bot/issues/2#issuecomment-1836981924, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BEMXOI7FMXTUYPLDJFADCVTYHKACHAVCNFSM6AAAAAAZTSH2W6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZWHE4DCOJSGQ. You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHubhttps://github.com/Stelath/wordscapes-bot/issues/2#issuecomment-1836986611, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQTCEBHDYTPFK4Y4OCFN2ALYHKB23AVCNFSM6AAAAAAZTSH2W6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZWHE4DMNRRGE. You are receiving this because you were mentioned.Message ID: @.***>

dmx-77 commented 11 months ago

Thanks for replying. I tried the pointer settings on BlueStacks with no luck. It's just weird that I can click anywhere on my screen or other windows and it will locate the coordinates but when I click anywhere inside BlueStacks it does nothing. I'll keep messing around with it and see what happens. Maybe there is another app player that would work or maybe I'm just doing something wrong.

dmx-77 commented 11 months ago

Finally figured it out. Just had to run PowerShell as administrator. Thanks again.

DeathWish808 commented 11 months ago

Ah, yes. I set shortcuts to run everything, so forgot about that. Glad you got it straight.

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: dmx-77 @.> Sent: Friday, December 1, 2023 10:51:46 PM To: Stelath/wordscapes-bot @.> Cc: Steven M. @.>; Mention @.> Subject: Re: [Stelath/wordscapes-bot] Basic functionality (Issue #2)

Finally figured it out. Just had to run PowerShell as administrator. Thanks again.

— Reply to this email directly, view it on GitHubhttps://github.com/Stelath/wordscapes-bot/issues/2#issuecomment-1837027831, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQTCEBEKLH4GZX7LSTOUO4LYHKQVFAVCNFSM6AAAAAAZTSH2W6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZXGAZDOOBTGE. You are receiving this because you were mentioned.Message ID: @.***>

dmx-77 commented 11 months ago

It seems to be stuck in a loop. It keeps going from the start level position to the close pig position. I open the pig and then run the script, click on the X to close pig, then click the far right edge of screen right of the level start button. I've tried clicking in the spots that you mentioned and other spots. Also tried different window sizes and tried it on different levels. Is there something else I could be doing wrong?