Asentrix 17 Posted June 13, 2015 Report Share Posted June 13, 2015 I was wondering if it were possible to check if something exists outside of the browser?I play a game on my PC and I want to check if something exists in the game window. Is this possible at all?If so , could someone please give me a rough Idea of how to do it? I've tried setting the active window and checking if it exists but it didn't seem to work. Thanks for any help! Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted June 13, 2015 Report Share Posted June 13, 2015 What is it you wish to detect? Text or an image of some sort? If it is text it may be possible with windows commands. An example would be opening notepad and scraping the text. If it is an image of text or something like a character it would be extremely challenging. Quote Link to post Share on other sites
Asentrix 17 Posted June 13, 2015 Author Report Share Posted June 13, 2015 What is it you wish to detect? Text or an image of some sort? If it is text it may be possible with windows commands. An example would be opening notepad and scraping the text. If it is an image of text or something like a character it would be extremely challenging.Well , lets say in the game I want the bot to click a menu icon , so it would need to check if it exists first.I would have a picture of the in-game menu icon saved to my pc All I want it to do is check the game window to see if the image exists , just like in the browser Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted June 14, 2015 Report Share Posted June 14, 2015 You can use some type of screen capture like windows snippet tool. Use windows commands to get the image and save it. x and y's of where image should be. open image in ubot browser by navigating to image file path. use $exist to see if that image you want is there. use the lil camera button on the real image and capture the inside of the image. it would be easier with pash's video plugin to capture that image then check if it is there/not there with $exist but very possible with Snippit tool or Snaggit. This is all theory but I can see it at least leading you to the right place and this may only work on the computer you set it up on as screen dimensions are not the same. However, ubot uses the application x,y. I am unsure what pash's plugin uses. TJ has an get x,y plugin that uses the screen.s CD Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.