| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Tue May 06, 2008 7:36 am Post subject: Any examples about filling in a IE form field and submit |
|
|
I'd like to use AHK Login my hotmail,I cannot get the focus of the IE element.What can I do now?
Thank you! |
|
| Back to top |
|
 |
Hasso
Joined: 23 Mar 2005 Posts: 136 Location: Germany
|
Posted: Tue May 06, 2008 2:40 pm Post subject: |
|
|
That can surely be done with AHK and JavaScript. Tell me the URL of your LogIn screen and I'll tell you how to manage this. _________________ Hasso
Programmers don't die, they GOSUB without RETURN |
|
| Back to top |
|
 |
Guest
|
Posted: Wed May 07, 2008 3:25 am Post subject: |
|
|
| Hasso wrote: | | That can surely be done with AHK and JavaScript. Tell me the URL of your LogIn screen and I'll tell you how to manage this. |
Thx.
For example:http://www.autohotkey.com/forum/login.php
fill in the username and password,click the option,click submit.
anyother URL like http://login.live.com/ is welcome,too.
 |
|
| Back to top |
|
 |
poetbox
Joined: 07 Jan 2007 Posts: 59
|
Posted: Wed May 07, 2008 11:20 am Post subject: |
|
|
It's an expecting example.
Use COM can do something about it ,but not a best way. |
|
| Back to top |
|
 |
Guest
|
Posted: Thu May 08, 2008 3:58 am Post subject: |
|
|
| Hasso wrote: | | That can surely be done with AHK and JavaScript. Tell me the URL of your LogIn screen and I'll tell you how to manage this. |
Where's Hasso?  |
|
| Back to top |
|
 |
Hasso
Joined: 23 Mar 2005 Posts: 136 Location: Germany
|
Posted: Thu May 08, 2008 4:54 am Post subject: |
|
|
Sorry, but I to do some urgent tasks in my office. But I hope I'll find the time to look at your problem again today.  _________________ Hasso
Programmers don't die, they GOSUB without RETURN |
|
| Back to top |
|
 |
Guest
|
Posted: Thu May 08, 2008 5:18 am Post subject: |
|
|
| Code: | SetTitleMatchMode, 2
Run, http://www.autohotkey.com/forum/login.php
WinWaitActive, Internet Explorer
Sleep 5000
Send, Username {Tab} Password {Enter} |
 |
|
| Back to top |
|
 |
Guest
|
Posted: Thu May 08, 2008 6:06 am Post subject: |
|
|
| Anonymous wrote: | | Code: | SetTitleMatchMode, 2
Run, http://www.autohotkey.com/forum/login.php
WinWaitActive, Internet Explorer
Sleep 5000
Send, Username {Tab} Password {Enter} |
 |
Not so good here. |
|
| Back to top |
|
 |
Hasso
Joined: 23 Mar 2005 Posts: 136 Location: Germany
|
Posted: Thu May 08, 2008 8:06 am Post subject: |
|
|
Hello, I finally found the time to compose the script:
First bring up the login website in your browser, then use this hotkey | Code: | SetTitleMatchMode, 2
#IfWinActive, Anmelden ;The title of the login website http://login.live.com/
#z::
clipboard=javascript:document.getElementById("i0116").focus() ;focusses the input field for your login eMail
send, !s^v{ENTER} ;activate the browser's address field (in FF it's Alt+s) and paste the JavaScript code
sleep, 300
send, MyeMail ;put in your login eMail here
clipboard=javascript:document.getElementById("i0118").focus() ;focusses the input field for your login password
send, !s^v{ENTER}
sleep, 300
send, MyPassword ;put in your login password here
sleep, 300
send, {ENTER}
#IfWinActive
return
|
Tested with Firefox. _________________ Hasso
Programmers don't die, they GOSUB without RETURN
Last edited by Hasso on Thu May 08, 2008 9:25 am; edited 1 time in total |
|
| Back to top |
|
 |
Guest
|
Posted: Thu May 08, 2008 9:12 am Post subject: |
|
|
Thx.Very very good idea. Strong!
IE address bar is "!d" instead of "!s",and we always use "F6" to go IE(&Maxthon...)'s address bar.
Need to clear Form content first,then input the content,that's a very good example that many people would like to learn,it can be goto Scripts & Functions board.  |
|
| Back to top |
|
 |
|