Jump to content
UBot Underground

Recommended Posts

Hi all, just a quick question if maybe any of you have come across this. I am trying to do something with windows automation and trying to scrape from google maps (I need to use features which are not in the Lite version available in the internal browser), the problem is that as you search for something the name of the active window changes, and sometimes to something that you cannot predict. Is there any way to do a wildcard or something similar for the "set active window" command? I have tried several ways, but not found anything that will work.

 

For example I am searching for a map of "apsley-end, bedfordshire" but the active window name changes to "Shillington - Google Maps". In most cases the name stays the same as the search term (list item) so I can predict and allow for it, occasionally I get a case like above and the bot comes to a standstill.

 

Help!!!!

 

Needahand

Link to post
Share on other sites

"windows automation" ? The few commands in Ubot for windows automation or the Actual App "windows automation"? You need to be clear...

Link to post
Share on other sites

you can probably do it by PID

 

that browser you use is a parent PID and spawns a child PID and you can get the name of that child window that has been spawned.

 

to do this programmatically, you do it from the command line. Using some various commands you can determine the window name.

 

Here is how I have done it to get the children of browser.exe's from a ubot bot (parent) and the threaded (children/grand children).

http://www.ubotstudio.com/forum/index.php?/topic/16895-open-source-browserexe-monitor-anylise-bot-specific-browserexes-and-kill-them-if-they-exceed-your-limits/

 

from that code you can learn to get that in which you need.

 

make a variable or function to place in as "active window".

 

:)

 

CD

Link to post
Share on other sites

"windows automation" ? The few commands in Ubot for windows automation or the Actual App "windows automation"? You need to be clear...

Sorry if I wasn't clear. I mean the windows automation commands within Ubot Studio, specifically the "Set Active Window" command.

Link to post
Share on other sites

you can probably do it by PID

 

that browser you use is a parent PID and spawns a child PID and you can get the name of that child window that has been spawned.

 

to do this programmatically, you do it from the command line. Using some various commands you can determine the window name.

 

Here is how I have done it to get the children of browser.exe's from a ubot bot (parent) and the threaded (children/grand children).

http://www.ubotstudio.com/forum/index.php?/topic/16895-open-source-browserexe-monitor-anylise-bot-specific-browserexes-and-kill-them-if-they-exceed-your-limits/

 

from that code you can learn to get that in which you need.

 

make a variable or function to place in as "active window".

 

:)

 

CD

Thanks CD, I will take a look at this though I think it is maybe a little beyond my limited abilities.

 

Needahand

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...