Jump to content
UBot Underground

Randomly Clicking X/y Coordinates On A Page - Almost There...


Recommended Posts

Hi,

 

I am tying to have ubot click on a random area of a page and have tried to follow what UBotBuddy advised in the post below:

http://network.ubotstudio.com/forum/index.php/topic/5545-how-to-click-random-link/

 

I have chosen 4 different X coordinates and 4 different Y coordinates and have used $spin in the click mouse command. But it keeps coming up with an error message. I tried entering the coordinates in different ways, i.e. {903|936|973|975} and 903 936 973 975 and 903,936,973,975

 

This is my code:

 

navigate("http://www.amazon.co.uk/","Wait")
loop(5) {
    wait($rand(3,9))
    plugin command("WindowsCommands.dll", "click mouse", "Untitled Bot* - UBot Studio Stealth Standard Edition", "HwndWrapper[uBot Studio.exe;;83f15ff6-c4eb-44cb-9aec-80b1a5b674a8]", $spin("\{903|936|973|975\}"), $spin("\{177|178|180|181\}"), "Left Click")
    wait($rand(3,9))
    navigate("http://www.amazon.co.uk/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords=bluetooth+earphones","Wait")
}

 

The error code i get is attached.... any help will be much appreciated, thanks

post-27626-0-98553500-1455294154_thumb.jpg

Link to post
Share on other sites

I don't get that error, but maybe try this instead it may help (or it may not):

navigate("http://www.amazon.co.uk/","Wait")
loop(5) {
    wait($rand(3,9))
    set(#spinx,$spin("\{903|936|973|975\}"),"Global")
    set(#spiny,$spin("\{177|178|180|181\}"),"Global")
    plugin command("WindowsCommands.dll", "click mouse", "Untitled Bot* - UBot Studio Stealth Standard Edition", "HwndWrapper[UBot Studio.exe;;83f15ff6-c4eb-44cb-9aec-80b1a5b674a8]", #spinx, #spiny, "Left Click")
    wait($rand(3,9))
    navigate("http://www.amazon.co.uk/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords=bluetooth+earphones","Wait")
}

And if you want it to be more randomized you can do this (you can edit the rand values here to be whatever you want I just took the highest and lowest numbers from each coordinate you had):

navigate("http://www.amazon.co.uk/","Wait")
loop(5) {
    wait($rand(3,9))
    set(#spinx,$rand(903,975),"Global")
    set(#spiny,$rand(177,181),"Global")
    plugin command("WindowsCommands.dll", "click mouse", "Untitled Bot* - UBot Studio Stealth Standard Edition", "HwndWrapper[UBot Studio.exe;;83f15ff6-c4eb-44cb-9aec-80b1a5b674a8]", #spinx, #spiny, "Left Click")
    wait($rand(3,9))
    navigate("http://www.amazon.co.uk/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords=bluetooth+earphones","Wait")
}
Link to post
Share on other sites

hi,

you are right there is no error. but its not doing doing what i want it to do. sorry didnt explain. I want ubot to go to the page search for the keyword and then on click on one of the products on the page and once product page opens, wait for random time, then navigate back to search page and click on another product, and so on and on... but because these products would never appear in the same position i have to use XY rather than click link. If you see the code below, it is doing this fine for just once clicking on a XY coordinates and going back to search page. but if I add $spin and add lots of X and Y coordinates (so to acheive random clicking on each loop) it just by passes the whole code inside the loop.

 

so this one works eith just one X and one Y coordinate, (but how do I add more?):

navigate("http://www.amazon.co.uk/","Wait")
type text(<name="field-keywords">,"bluetooth earphones","Standard")
wait($rand(5,10))
click(<value="Go">,"Left Click","No")
loop(5) {
    wait($rand(3,9))
    plugin command("WindowsCommands.dll", "click mouse", "loop no spin* - UBot Studio Stealth Standard Edition", "HwndWrapper[uBot Studio.exe;;29730409-983e-4695-996b-6555bacd8e29]", 1079, 608, "Left Click")
    wait($rand(3,9))
    navigate("http://www.amazon.co.uk/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords=bluetooth+earphones","Wait")
}
 

Link to post
Share on other sites

What you want to do is perform a search, add all results to a list (just to get the count) then you can click on a random result based on the element offset. I would show you the code for that but the problem is that there are sponsored results and I don't know if those are always on top or sometimes on the bottom. There is no easy way to filter them that I can see. It's possible to do but kind of messy. If you can map those out into a table then randomly choose a non sponsored result and then click on the element offset it would do what you want. But it will take some work.

Link to post
Share on other sites

thanks again, doesnt matter even if it clicks on the sponsored items. so long as it clicks anywhere that opens a new page then after a random few seonds it goes back to the search results page and starts again. even if the positions change and where it clicks has no link, its still ok because few seconds later it will refresh that page and click on another random element. i would be grateful if you could show me the code. then i have something to work with.

Link to post
Share on other sites

thanks again, doesnt matter even if it clicks on the sponsored items. so long as it clicks anywhere that opens a new page then after a random few seonds it goes back to the search results page and starts again. even if the positions change and where it clicks has no link, its still ok because few seconds later it will refresh that page and click on another random element. i would be grateful if you could show me the code. then i have something to work with.

 

It matters to me though, those clicks cost money and clicking them with a bot would be click fraud. I advertise myself on many sites and I wouldn't want bots clicking on my links.

Link to post
Share on other sites

Sorry didnt think of that...

 

No worries, I know ;) didn't mean to come off harsh. I know from looking at the site that there is a class that you can target to get all of those links into a list. You can probably also target the div containers that the entire listing (for each) is in. If you can all those all to a list as well you will be able to look inside of each for the word "sponsored" or maybe a piece of code that creates that sponsored. If you can do that and map it all out into a table you will be able to know which table rows are sponsored or which are not. Then click on the element offset for the link you want.

 

Or go look at a bunch of listings, if you find that the first two listings are always sponsored and it never changes (they never show up on the bottom) then it will make things easier as you can just omit the first two and only click on the element offset starting at the 3rd listing (which would be 2) and I can help with the code for that if that is the case.

 

I suppose even if there are sponsored listings at the bottom sometimes you can always omit the first 2 and last 2 in which case all you would need to check for is that the sponsored listings never show up randomly in the search results but are only ever on the top and or bottom.

Link to post
Share on other sites

Im glad you said that because i also pay for sponsored links and it never crossed my mind! I think it will be impossible to do it that way so i was wondering is it possible ubot does the search for lets say headphones, then grabs the slide bar to slide down to the bottom and click next page. I couldnt find this function any where so far. And i wanted to randomize the amount of time it takes to reach the bottom of the page. can i use the "if" command so as it goes through pages when it reaches a page containing a specific product (link will always be the same and not sponsored) it clicks on it. The product could be on the 17th page once and 15th next time, will never be the same page so i just need ubot looking for it by keyword and going through pages until it gets there. Thanks

Link to post
Share on other sites

Hi.. i did a lot of testing now (kept running searches) and the one that appears in the middle is actualy amazons own that says click here to search by catagory and just opens another search result page. So there is no sponsored link in the middle. Also sponsored links will only ever appear on the top 2 and bottom 2 rows as you said.

 

So can you please help me with that? So the bot always ignores those rows..

 

Thanks helloinsomnia

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