Jump to content
UBot Underground

Recommended Posts

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!

Link to post
Share on other sites

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.

Link to post
Share on other sites

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 :P

Link to post
Share on other sites

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

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...