China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-12 07:38
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Wanted: auto-login on a webpage, auto-refresh, switch to the next account after 2 hours View 1,011 Replies 2
Original Poster Posted 2010-05-22 22:57 ·  中国 浙江 杭州 网易云BGP数据中心
初级用户
★★
Credits 182
Posts 88
Joined 2005-11-29 05:52
20-year member
UID 46146
Status Offline
I want to idle for some points on www.5tu.cn. You need points there before you can download images (the images inside are pretty good, oh).

What I want is for the computer to log in automatically every day, then refresh the webpage once every 60 seconds, and after two hours I'll switch to the next account to idle there (http://www.5tu.cn/logging.php?action=login when I manually switch users it never seems to let me switch, like maybe it's locking the cokiee or something).

I've read a related post, see: http://www.cn-dos.net/forum/viewthread.php?tid=42554
But I don't really understand it, can't get the hang of it, and I also have some additional functions I specifically want, so I just can't get it done. Hope someone can help me modify it.

Already registered account: the123456 Pass: the123456

Example post below
--------------------------------------
Set ie = CreateObject("InternetExplorer.Application")
ie.Navigate "http://www.netyi.net/quit.aspx?returnUrl=%2fjsLoginStatus.aspx"

ie.Visible = True 'Set here whether this IE object is visible.

While ie.Busy or ie.ReadyState <> 4:Wend

ie.Document.form2.UserName.value = "slore"
ie.Document.form2.Password.value = "slorelee"
ie.Document.form2.Submit

While ie.Busy or ie.ReadyState <> 4:Wend

WSH.Sleep 1000 'This line is so you can see that the login succeeded. Without this, it will directly exit with the line below.
ie.Navigate "http://www.netyi.net/quit.aspx?returnUrl=%2fjsLoginStatus.aspx"

While ie.Busy or ie.ReadyState <> 4:Wend
ie.Quit 'See for yourself whether you want this or not. Figure out what it means yourself.
-------------------------------
Floor 2 Posted 2010-05-23 10:34 ·  中国 浙江 杭州 网易云BGP数据中心
初级用户
★★
Credits 182
Posts 88
Joined 2005-11-29 05:52
20-year member
UID 46146
Status Offline
'Clear cookies
on error resume next
Dim fso
Set fso = CreateObject("Scripting.FileSystemObject")
fso.DeleteFile("C:\Documents and Settings\Administrator\Local Settings\History\*.*"),True
'fso.DeleteFile("C:\Documents and Settings\Administrator\Local Settings\Temp\*.*"),True
fso.DeleteFile("C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files\*.*"),True
fso.DeleteFile("C:\WINDOWS\Temp\Cookies\*.*"),True
fso.DeleteFile("C:\WINDOWS\Temp\History\*.*"),True
fso.DeleteFile("C:\Documents and Settings\Administrator\cookies\*.*"),True
fso.DeleteFile("C:\WINDOWS\Temp\Temporary Internet Files\*.*"),True



'Log in
do
Set ie=WScript.CreateObject("InternetExplorer.Application")
ie.visible=true
ie.navigate "http://www.5tu.cn/logging.php?action=login"
Do
Wscript.Sleep 5000
loop Until ie.ReadyState=4
ie.document.getElementById("username").value="the123456"
ie.document.getElementById("password").value="the123456"
ie.document.getElementById("loginsubmit").click


'Refresh
DIM IE
SET IE = CREATEOBJECT("INTERNETEXPLORER.APPLICATION")

IE.NAVIGATE("http://www.5tu.cn")
IE.VISIBLE=1
'1 shows the IE window, 0 does not show it

SET IE = NOTHING

loop

........................
After two hours, log in with another account
Floor 3 Posted 2010-05-24 01:21 ·  中国 浙江 杭州 网易云BGP数据中心
初级用户
★★
Credits 182
Posts 88
Joined 2005-11-29 05:52
20-year member
UID 46146
Status Offline
Bro: it doesn't work. Did you try it? It has to refresh on the same webpage in the same tab~
Forum Jump: