AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Download games(hockey) from Work.

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
SpiderGames



Joined: 09 Jun 2008
Posts: 936
Location: Canada

PostPosted: Wed Dec 02, 2009 4:04 am    Post subject: Download games(hockey) from Work. Reply with quote

Code:

Username := "ROFLNINJAS"
Password := "ThisIsntAPassword"

COM_Init()
pwb := COM_CreateObject("InternetExplorer.Application")
sink := COM_ConnectObject(pwb, "IE_"), loading = 1
COM_Invoke(pwb, "Navigate", "http://www.arbitersports.com/")
While, loading
   Sleep, -1
COM_Invoke(pwb, "document.all.ctl00_EmailTextbox.value", Username)
COM_Invoke(pwb, "document.all.ctl00_PasswordWatermarkTextbox.value", Password)
Com_Invoke(pwb, "document.all.ctl00_SignInButton.click"), loading = 1
While, loading
   Sleep, -1
COM_Invoke(pwb, "Visible", "True")
COM_Release(pwb), COM_DisconnectObject(sink), COM_Term()
Return


IE_DocumentComplete() {
   SetTimer, OnComplete, -10
}
OnComplete:
loading = 0
Return



I got a new job and it requires me to get games from the internet. I set this COM thingy up to sign in to it. Problem is under the password section when the ".Value" is set to "password" the literal value (displayed) is set to "password". Instead of the submited value.

Do i change;
Code:
COM_Invoke(pwb, "document.all.ctl00_PasswordWatermarkTextbox.value", Password)

.vaule to something else?
_________________

I know i have 6 legs. It's cuz I'm special.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
BoffinbraiN



Joined: 16 Nov 2009
Posts: 114

PostPosted: Wed Dec 02, 2009 6:06 pm    Post subject: Reply with quote

As far as I can see, what you want is a way to automatically log into a website. Why not use a browser with a Password Manager? Most of them do this.
Back to top
View user's profile Send private message Visit poster's website
SpiderGames



Joined: 09 Jun 2008
Posts: 936
Location: Canada

PostPosted: Thu Dec 03, 2009 9:19 pm    Post subject: Reply with quote

Yes but after ill be usin git to download a list of games (times/dates) to MS outlook, compare it to my calander and if im free accept the game. I know how to do it i just hit a snag.


The .value is setting the overright text similar to the "google" in a google toolbar. You can see the word but when you click on it, it dispears. I was hoping it would be like .ToSendValue or someting similare.

It already auto signs me in =). Im just lazy XD.

I already have a similar script operating my lifeguard Shifts =P.
_________________

I know i have 6 legs. It's cuz I'm special.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
BoffinbraiN



Joined: 16 Nov 2009
Posts: 114

PostPosted: Thu Dec 03, 2009 9:22 pm    Post subject: Reply with quote

It might be IE trying to be secure so passwords can't be tampered with in web forms.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group