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 

Any examples about filling in a IE form field and submit

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






PostPosted: Tue May 06, 2008 7:36 am    Post subject: Any examples about filling in a IE form field and submit Reply with quote

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

PostPosted: Tue May 06, 2008 2:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
Guest






PostPosted: Wed May 07, 2008 3:25 am    Post subject: Reply with quote

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.
Exclamation Razz
Back to top
poetbox



Joined: 07 Jan 2007
Posts: 59

PostPosted: Wed May 07, 2008 11:20 am    Post subject: Reply with quote

It's an expecting example.
Use COM can do something about it ,but not a best way.
Back to top
View user's profile Send private message
Guest






PostPosted: Thu May 08, 2008 3:58 am    Post subject: Reply with quote

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? Question Confused Question
Back to top
Hasso



Joined: 23 Mar 2005
Posts: 136
Location: Germany

PostPosted: Thu May 08, 2008 4:54 am    Post subject: Reply with quote

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. Embarassed
_________________
Hasso

Programmers don't die, they GOSUB without RETURN
Back to top
View user's profile Send private message
Guest






PostPosted: Thu May 08, 2008 5:18 am    Post subject: Reply with quote

Code:
SetTitleMatchMode, 2
Run, http://www.autohotkey.com/forum/login.php
WinWaitActive, Internet Explorer
Sleep 5000
Send, Username {Tab} Password {Enter}


Very Happy
Back to top
Guest






PostPosted: Thu May 08, 2008 6:06 am    Post subject: Reply with quote

Anonymous wrote:
Code:
SetTitleMatchMode, 2
Run, http://www.autohotkey.com/forum/login.php
WinWaitActive, Internet Explorer
Sleep 5000
Send, Username {Tab} Password {Enter}


Very Happy

Smile
Not so good here.
Back to top
Hasso



Joined: 23 Mar 2005
Posts: 136
Location: Germany

PostPosted: Thu May 08, 2008 8:06 am    Post subject: Reply with quote

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
View user's profile Send private message
Guest






PostPosted: Thu May 08, 2008 9:12 am    Post subject: Reply with quote

Thx.Very very good idea. Laughing 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. Razz
Back to top
Display posts from previous:   
Post new topic   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