AutoHotkey Community

It is currently May 27th, 2012, 2:57 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Password too quick !
PostPosted: March 18th, 2010, 5:43 pm 
Hi Guys,

I use the following script to type my password in different web applications :

#a::Send username{tab}password{tab}

Although this always works fine if I use it in a text editor, when I actually use it on a login window, the password field most of the time doesn't display the correct number of characters. My username is always typed properly, some characters are sent to the password field (I can't see which ones, they are replaced by dots or stars) but most of the times 1 or 2 are left out.

It seems that the characters are sent too quickly for the form to accept them... Any ideas ?

Thanks
Alex


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 18th, 2010, 5:46 pm 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
Please refer AHK Doc for SetKeyDelay Command.

Quote:
SetKeyDelay
...
A short delay (sleep) is done automatically after every keystroke sent by Send or ControlSend. This is done to improve the reliability of scripts because a window sometimes can't keep up with a rapid flood of keystrokes.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 18th, 2010, 6:50 pm 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
SendInput should work better :!:

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Works, thanks !
PostPosted: March 19th, 2010, 11:18 am 
HotKeyIt wrote:
SendInput should work better :!:


Works perfectly well now.
Many thanks for your help.

Alex


Report this post
Top
  
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: rbrtryn and 28 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