Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > Client Side Scripting
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 09-21-2005, 01:42 PM
  #1
steverz
Soldier (Level 11)
 
Join Date: Aug 2005
Posts: 111
iTrader: (0)
steverz is an unknown quantity at this point
Login Script

Im trying to write a login script that will launch a page and send the login information without me typing it. I dont know if this would work because i need to send the text to a form....
So far I have:

Code:
strMonth = Month(Date)
strDay = Day(Date)
If Len(strDay) = 1 Then strDay = "0" & strDay
strYear = Right(Year(Date), 2)
curDate = strMonth & "/" & strDay & "/" & strYear

set WshShell = CreateObject("WScript.Shell")
WScript.Sleep(100)

WshShell.Run "http://loginsite.com/index.html"
WScript.Sleep(100)

WshShell.SendKeys "username" & "{TAB}" & "{ENTER}"
This does not send the text at all, any ideas or help or lead me in the right direction?
steverz is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-21-2005, 01:49 PM
  #2
TrojanWarBlade
Soldier (Level 11)
 
Join Date: Jul 2005
Location: UK, about 70 miles outside London
Posts: 124
iTrader: (0)
TrojanWarBlade is on a distinguished road
Why bother with all that hassle when you can just cut and paste the login page, drop in the values and add a one line of javascript to send the values?
e.g.
Code:
<head> 
<script> 
function send(){ 
document.forms['Form'].submit(); 
} 
</script> 
</head> 
<body onload="send();"> 
</body>
And just put your form and it's data straight in there.
TrojanWarBlade is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote

Reply
KEEP TABS
SPONSORS
 
Boxedart
 
 


 
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
  
 
 
 



 
  POSTING RULES
 
 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 05:25 PM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.