Jump to content
UBot Underground

AMF popup window - work around


Recommended Posts

Hey Guys

 

I see a few Ubotters have made a bots for addmefast, Does anyone know how these guys are getting past the popup window that doesn't load fully to be able to click the fb like button?

Link to post
Share on other sites

I would say if your trying to do this and the pop doesn't fully load try something like this. It will make the pop load in a new window and it should load the page all the way. I have seen this work for other sites where the pop didn't load.

allow popups("In New Window")
in popup {
}

Link to post
Share on other sites

thx,
But it doesn't work, the exchange site doesn't register that there has been a click

also there seems to be a bug, i must click another tab and then go back before the new window works.

Link to post
Share on other sites

No it does work. You just have to get a little tricky with it.

 

Here i added target=_blank to the onclick to allow it to pop in a new window.

set(#get_onclick, $scrape attribute(<class="single_like_button btn3-wrap">, "onclick"), "Global")
change attribute(<onclick=#get_onclick>, "onclick", "{#get_onclick} \"target=_blank\"")
allow popups("In New Window")
click(<class="single_like_button btn3-wrap">, "Left Click", "No")
wait for browser event("Everything Loaded", "")
in popup {
    comment("Do something here and close...")
    wait(5)
    close page
}

Link to post
Share on other sites

Thanks for you help, Gogetta

 

I see you must have seen the sites page in question as you have used "single_like_button btn3-wrap" in your script.

Do you have this fully working so that you gain a point? because the new window opens the correct link and i'm able to click within the new window, however when the new window closes the AMF page doen't ackknowledge that the new window has closed?

so no points are given

cheers

 

wait for element(<innertext="Skip">"""Appear")
set(#get_onclick$scrape attribute(<class="single_like_button btn3-wrap">"onclick"), "Global")
change attribute(<onclick=#get_onclick>"onclick""{#get_onclick} \"target=_blank\"")
allow popups("In New Window")
click(<class="single_like_button btn3-wrap">"Left Click""No")
wait for browser event("Everything Loaded""")
in popup {
    click(<image="xxxxxx">"Left Click""No")
    wait(5)
    close page
}

Link to post
Share on other sites

Here this works.

navigate("http://addmefast.com/free_points/facebook_likes.html", "Wait")
wait for element(<innertext="Like">, "", "Appear")
set(#fb url, $scrape attribute(<class="freepts_row">, "title"), "Global")
allow popups("Yes")
click(<innertext="Like">, "Left Click", "No")
in shared browser {
    navigate(#fb url, "Wait")
    wait for browser event("Everything Loaded", "")
    click(<id="timelineHeadlineLikeButton">, "Left Click", "No")
    wait for browser event("Everything Loaded", "")
    wait(2)
    close page
}
click(<id="uscript-close-button">, "Left Click", "No")
wait for browser event("Everything Loaded", "")

  • Like 4
Link to post
Share on other sites
  • 4 weeks later...

 

Here this works.

navigate("http://addmefast.com/free_points/facebook_likes.html", "Wait")
wait for element(<innertext="Like">, "", "Appear")
set(#fb url, $scrape attribute(<class="freepts_row">, "title"), "Global")
allow popups("Yes")
click(<innertext="Like">, "Left Click", "No")
in shared browser {
    navigate(#fb url, "Wait")
    wait for browser event("Everything Loaded", "")
    click(<id="timelineHeadlineLikeButton">, "Left Click", "No")
    wait for browser event("Everything Loaded", "")
    wait(2)
    close page
}
click(<id="uscript-close-button">, "Left Click", "No")
wait for browser event("Everything Loaded", "")

 

Thanks very much for this code, I really appreciate it!  :D

Edited by xeroic
Link to post
Share on other sites
  • 1 month later...

Thanks very much for this code, I really appreciate it!  :D

 

I got a little further with this bot but the popup box is opening in it's own Window (even if I don't set allow popups("In New Window"). The page does not close so no points are awarded.

 

ui text box("AddMeFast Email"#emailaddress)

ui text box("AddMeFast Password"#password)

ui text box("StumbleUpon Username"#suname)

ui text box("StumbleUpon Password"#supassword)

set user agent("Firefox 6")

clear cookies

navigate("http://addmefast.com/en/login""Wait")

wait for element(<href="/terms.html">"""Appear")

type text(<email field>#emailaddress"Standard")

type text(<password field>#password"Standard")

click(<login button>"Left Click""No")

wait for element(<href="/terms.html">"""Appear")

click(<innertext="StumbleUpon

">"Left Click""No")

wait(5)

allow popups("In New Window")

click(<class="single_like_button btn3-wrap">"Left Click""No")

wait(15)

click($element offset(<login link>, 0), "Left Click""No")

wait for element(<login button>"""Appear")

type text(<username field>#suname"Standard")

type text(<password field>#supassword"Standard")

click(<login button>"Left Click""No")

wait(5)

click(<class="button-follow follow small  bg-light">"Left Click""No")

close page

Edited by flexfanatic
Link to post
Share on other sites

 

Here this works.

navigate("http://addmefast.com/free_points/facebook_likes.html", "Wait")
wait for element(<innertext="Like">, "", "Appear")
set(#fb url, $scrape attribute(<class="freepts_row">, "title"), "Global")
allow popups("Yes")
click(<innertext="Like">, "Left Click", "No")
in shared browser {
    navigate(#fb url, "Wait")
    wait for browser event("Everything Loaded", "")
    click(<id="timelineHeadlineLikeButton">, "Left Click", "No")
    wait for browser event("Everything Loaded", "")
    wait(2)
    close page
}
click(<id="uscript-close-button">, "Left Click", "No")
wait for browser event("Everything Loaded", "")

It worked! hahaha!

Thanks a lot!

Link to post
Share on other sites
  • 2 months later...
  • 1 year later...

Hey guys,

 

Is there anyone who has AddMeFast popup windows loading correctly in UBot Studio 5?

I have tried the above codes, and I get a transparent window that opens, loads NO content, and then timesout and closes.

 

Any Ideas?

 

Cheers

 

Tom

Link to post
Share on other sites

Good luck with that...all the ubot pro's still use version 4 because all the cool plugins only run on 4 :angry:

It's properly about time for all plugin makers to update their scripts...lifetime updates rings a bell

Link to post
Share on other sites

Hey Smileybot,

 

It seems that Ubot 5 implementation of popups loads in an iFrame and sites like Facebook block their sites from loading in an iFrame.

 

Does new browser and shared browser implement the iframe as well do you know?

I think it must, as I have tried all 3 options and they all display a blank transparent window.

 

Damn - back to iMacros again!!!

 

Cheers,

 

Thomas

Link to post
Share on other sites
  • 2 weeks later...

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