AutoHotkey Community

It is currently May 27th, 2012, 12:54 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: August 18th, 2011, 12:08 pm 
Hello,

I have written a script to automaticlly log in to Gmail.
But sometimes the cursor is not fucussed on the "E-mail" field after launching the browser and website.

Is there some code to put the cursor in a form field?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 18th, 2011, 12:54 pm 
Offline

Joined: October 11th, 2010, 6:15 pm
Posts: 1211
Location: Right behind you
First you need to post your code.

Unless your using COM there isn't a way I know of to make sure the 'email field has focus.

_________________
COM Tutorial for Webpages
COM Tutorial for Excel


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 22nd, 2011, 12:07 pm 
Offline

Joined: March 23rd, 2005, 7:53 am
Posts: 321
Location: Germany
Try
Code:
Send, {F6}           ;activate the browsers address field
Send, javascript:void(document.getElementById('FirstName').focus()){ENTER}             ;paste the javascript command and press Enter

_________________
Hasso

Programmers don't die, they GOSUB without RETURN


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], BrandonHotkey, chaosad, MSN [Bot] and 21 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