Opening a list of URLs in separate windows/tabs
I am trying to automate getting free bonuses within a Facebook game. I have a list of URL addresses which I want to open one by one, leave the window open for 7 seconds to allow the page to load and get the bonus then automatically close the window and open the next url on the list.
I have some code written which is doing most of what I want but the page doesn't seem to be uploading. Would someone who is more knowledgeable than me in JAVA please take a look and tell me where I am going wrong? This is my first attempt at writing in JAVA so apologies if I'm not sticking strictly to proper coding conventions :)
Thanks for your time
Gary
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript">
function open_win()
{
myWindow=window.open("http://[removed by moderator]")//;pausecomp(7000);closeWin();
myWindow=window.open("http://[removed by moderator]")//;pausecomp(7000);closeWin();
myWindow=window.open("http://[removed by moderator]")//;pausecomp(7000);closeWin();
myWindow=window.open("http://[removed by moderator]");pausecomp(7000);closeWin();
myWindow=window.open("http://[removed by moderator]");pausecomp(7000);closeWin();
myWindow=window.open("http://[removed by moderator]l");pausecomp(7000);closeWin();
}
function closeWin()
{
mywindow.close();
}
function pausecomp(ms) {
ms += new Date().getTime();
while (new Date() < ms){}
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
</head>
<body>
<form>
<input type="button" value="Open Windows" onclick="open_win()">
</form>
</body>
</html>
1 Attachment(s)
Re: Opening a list of URLs in separate windows/tabs
Attachment 3941
This is a Java forum.
db
Re: Opening a list of URLs in separate windows/tabs
Well what a friendly forum this is. I apologies for making a mistake (that apparently when looking on google even top industry people make) but I do not feel that there is need for the sarcastic cartoon. It seems to me Mr Burke, you are one of these moderators that gets off on the power trip and belittling less experienced members, always glad to make someone feel small for making an error. Im glad there was no one that could help as this is not the kind of forum I would enjoy contributing to if that is the level of moderation taken here.
Re: Opening a list of URLs in separate windows/tabs
Another inflated ego; closing this thread.
Jos