AutoHotkey Community

It is currently May 27th, 2012, 12:20 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: December 2nd, 2009, 5:04 am 
Offline

Joined: June 9th, 2008, 2:32 am
Posts: 936
Location: Canada
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?

_________________
Image
I know i have 6 legs. It's cuz I'm special.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 2nd, 2009, 7:06 pm 
Offline

Joined: November 16th, 2009, 9:24 am
Posts: 114
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 3rd, 2009, 10:19 pm 
Offline

Joined: June 9th, 2008, 2:32 am
Posts: 936
Location: Canada
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.

_________________
Image
I know i have 6 legs. It's cuz I'm special.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 3rd, 2009, 10:22 pm 
Offline

Joined: November 16th, 2009, 9:24 am
Posts: 114
It might be IE trying to be secure so passwords can't be tampered with in web forms.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot], Leef_me, Pulover, rjgatito, XstatyK, Yahoo [Bot] and 23 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group