 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
SpiderGames
Joined: 09 Jun 2008 Posts: 936 Location: Canada
|
Posted: Wed Dec 02, 2009 4:04 am Post subject: Download games(hockey) from Work. |
|
|
| 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 |
|
 |
BoffinbraiN
Joined: 16 Nov 2009 Posts: 114
|
Posted: Wed Dec 02, 2009 6:06 pm Post subject: |
|
|
| 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 |
|
 |
SpiderGames
Joined: 09 Jun 2008 Posts: 936 Location: Canada
|
Posted: Thu Dec 03, 2009 9:19 pm Post subject: |
|
|
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 |
|
 |
BoffinbraiN
Joined: 16 Nov 2009 Posts: 114
|
Posted: Thu Dec 03, 2009 9:22 pm Post subject: |
|
|
| It might be IE trying to be secure so passwords can't be tampered with in web forms. |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|