Needahand 1 Posted June 29, 2015 Report Share Posted June 29, 2015 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 Quote Link to post Share on other sites
Needahand 1 Posted July 3, 2015 Author Report Share Posted July 3, 2015 As this has had 100 views and no replies, I guess there is no way to wildcard the "set active window" command. Quote Link to post Share on other sites
mithcd 4 Posted July 4, 2015 Report Share Posted July 4, 2015 I think so too. Maybe if you have the budget, hire a coder for it. Quote Link to post Share on other sites
Needahand 1 Posted July 6, 2015 Author Report Share Posted July 6, 2015 I have no problem paying someone to do it, any offers? Quote Link to post Share on other sites
Edward_2 85 Posted July 7, 2015 Report Share Posted July 7, 2015 "windows automation" ? The few commands in Ubot for windows automation or the Actual App "windows automation"? You need to be clear... Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted July 7, 2015 Report Share Posted July 7, 2015 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 Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted July 7, 2015 Report Share Posted July 7, 2015 I forgot to mention, if you open a command prompt windows key and type cmd then type in command prompt tasklist /vyou will see real quick kinda what I mean Quote Link to post Share on other sites
Needahand 1 Posted July 7, 2015 Author Report Share Posted July 7, 2015 "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. Quote Link to post Share on other sites
Needahand 1 Posted July 7, 2015 Author Report Share Posted July 7, 2015 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". CDThanks CD, I will take a look at this though I think it is maybe a little beyond my limited abilities. Needahand 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.