tnfezda Posted June 21, 2008 Share Posted June 21, 2008 i am trying to create a script that will automatically goto "http://www.utherverse.com/login.aspx" and will login. after that it will navigate to "http://www.utherverse.com/net/ratepage.aspx" and automatically rate x amount of profiles.i think i have an understanding of how i want the script, but i am not sure.check for x_setup.ini is installedif so read username and password and pass it to the scriptif not installed create it and ask for the username and password via gui and save it to x_setup.iniask what type of rating you wish it to do (profile, blog, pictures)ask how many items to rateask if i want to sound a beep when doneopen up internet explorer and navigate to "http://www.utherverse.com/login.aspx"login using the details from the ini fileupon logging in, navigate to "http://www.utherverse.com/net/ratepage.aspx" and start auto-rating the x amount of timesif done sound beep if set to yesthe problem i am having mainly is that the rating page throws up 2 different types of rating methods randomly. 1 as a drop down and 1 as radio buttons. i want it to check to see which method is being used for that rate.i have several different starter scripts that i have been working on but nothing working 100%.can someone please help me put this together?i have enclosed several files which include: my script; the "http://www.utherverse.com/login.aspx" source code file; "http://www.utherverse.com/net/ratepage.aspx" source code fileutherverse_files.zip Link to comment Share on other sites More sharing options...
tnfezda Posted June 23, 2008 Author Share Posted June 23, 2008 Any help on this or can point me in the right direction.... Thanks JJ Link to comment Share on other sites More sharing options...
Triblade Posted June 23, 2008 Share Posted June 23, 2008 Use this instead of you default 'GetLogin()' Dim $guser, $gpass, $btn, $msg ; Instead of your Local. (Local works, but I need the vars here as well) $inifile = @TempDir & "\x_setup.ini" If FileExists($inifile) Then $guser = IniRead($inifile, "Username", "key", "-0-") $gpass = IniRead($inifile, "Password", "key", "-0-") If $guser = "-0-" Or $gpass = "-0-" Then GetLogin() Else GetLogin() EndIf Seeing the rest of you code, I don't think I need to explain things. For the site rating part, I would remake the webpage in a local html file without the spam images... I wont test your script with some unknown (to me) website with for all I know, virusses. But you could use: _IEDocReadHTML to get the source of your found webpage and search with StringRegExp if there is a checkbox, radiobutton or dropdown menu thing on the page. My active project(s): A-maze-ing generator (generates a maze) My archived project(s): Pong3 (Multi-pinger) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now