I know this is way off topic but I am hoping that someone may be able to help.
I have a list of 1000 url addresses that add free bonuses into a facebook game im playing and each url needs to be clicked in turn to add the bonus. Now I know you can get Java to use window.open to automatically open a new window/tab for each url but I cant think how to automate it in with php to open a text file, read in the first line, open the url, wait 5 seconds, close the window and then grab the next url and so on. Has anyone done anything similar or know how I can do it?
I did wonder if GLB could do it with its web commands but as you need to be logged onto facebook to get the bonus it needs to be opened in a proper browser window so I discounted a quick GLB project
Hope someone has some ideas that might work
Gary
the code I have tried so far that should work is
<!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://tinyurl.com/cfz4lmz");pausecomp(7000);closeWin();
myWindow=window.open("http://tinyurl.com/7cbpamn");pausecomp(7000);closeWin();
myWindow=window.open("http://bit.ly/KPz0Nd");pausecomp(7000);closeWin();
myWindow=window.open("http://tinyurl.com/bl4ck9y");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>
Which creates a button, you click on it and then it opens a new window/tab but doesnt seem to actually load the content :([/code]
Quote from: Gary on 2012-Jul-06
I discounted a quick GLB project
Good thinking, GLBasic isnt really geared towards webbrowsing, though not impossible.
Coolo has a project based on javascript, somewhere here in the forums.