SLaYaH Posted December 30, 2005 Share Posted December 30, 2005 Is there a way to make it type faster? ex: Send("long story goes here") and it types at a certain speed but can i make it type faster ? Link to comment Share on other sites More sharing options...
LxP Posted December 30, 2005 Share Posted December 30, 2005 Welcome to the forums! Opt('SendKeyDelay', 1) Send('Text') Alternatively: ClipPut('Text') Send('+{INS}') Link to comment Share on other sites More sharing options...
SLaYaH Posted December 30, 2005 Author Share Posted December 30, 2005 (edited) Erm I dont think its working out what i want it to do, i want it to tap two buttons quickly because in the game but it doesnt really work out ... suggestions ? is there a way to make it faster than Opt('SendKeyDelay', 1) ? Edited December 30, 2005 by SLaYaH Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted December 30, 2005 Moderators Share Posted December 30, 2005 'Tap' two buttons isn't using "Send", LxP answered your specific 'Send' question. MouseClick() or ControlClick() would be used to 'Click/Tap' a 'Button'. If your using MouseClick(), then the help file would show you: MouseClick("Which Button On Mouse 'Left or Right'", X-Coordinate To Click, Y-Coordinate To Click, Number Of Times To Click, Speed To Click) With this in mind, let's say my primary mouse button is the Left one, my x-coord is 100, and my y-coord is 110, and I only want 1 click, but I want it really fast. MouseClick('Left', 100, 110, 1, 1) would be how I would write that. You could even use Opt("MouseClickDelay", 1) if you wanted. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
SLaYaH Posted December 30, 2005 Author Share Posted December 30, 2005 I dont mean with the mouse, i just need it to tap zx quickly Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted December 30, 2005 Moderators Share Posted December 30, 2005 (edited) I have no idea what you mean by 'tap', do you mean send text to the window interface 'zx'? Or are there buttons labeled 'z' and 'x'? Edit: The more I think about... Why don't you post your code... you may have a sleep() or something that is delaying the sending aspect too. You're asking for a solution on something, but not providing any references. If we catch the tail, let me know . Edited December 30, 2005 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
seandisanti Posted December 30, 2005 Share Posted December 30, 2005 I have no idea what you mean by 'tap', do you mean send text to the window interface 'zx'? Or are there buttons labeled 'z' and 'x'? Edit: The more I think about... Why don't you post your code... you may have a sleep() or something that is delaying the sending aspect too. You're asking for a solution on something, but not providing any references. If we catch the tail, let me know .@Smoke: duuuuude. wake up man. he means tap keys quickly. alternating the z and x keys. @slaya: try this, it may speed things a little. While 1 Send("x") Send("z") WEnd Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted December 30, 2005 Moderators Share Posted December 30, 2005 @Smoke: duuuuude. wake up man. he means tap keys quickly. alternating the z and x keys. @slaya: try this, it may speed things a little. While 1 Send("x") Send("z") WEnd Errr... Send Repetitively = Tap ... sorry, I didn't have the lingo down . Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
seandisanti Posted December 30, 2005 Share Posted December 30, 2005 Errr... Send Repetitively = Tap ... sorry, I didn't have the lingo down .no worries man, i think you were too sleepy this morning to catch the curve when he said 'buttons' instead of 'keys' Link to comment Share on other sites More sharing options...
herewasplato Posted December 30, 2005 Share Posted December 30, 2005 While 1 Send("x") Send("z") WEndTap faster. Faster! Faster!! Opt('SendKeyDelay', 1) While 1 Send("xz") WEndAll tapped out...... postcount + 1 [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
seandisanti Posted December 30, 2005 Share Posted December 30, 2005 Tap faster. Faster! Faster!! Opt('SendKeyDelay', 1) While 1 Send("xz") WEndAll tapped out...... postcount + 1that does almost the same thing as mine, just differently. the default keydowndelay is 1 ms, so 2 send()'s takes 2ms, as you'd think Send("xz") should , BUT when you pass multiple keys with 1 send, you are actually waiting on the keydowndelay and the delay between keys, about 1 ms each with options set right. so while mine should take 1 ms per send or 2 ms total, i think yours would actually take 3 ms... Link to comment Share on other sites More sharing options...
LxP Posted December 30, 2005 Share Posted December 30, 2005 Testing that theory with this code:Opt('SendKeyDelay', 250) Opt('SendKeyDownDelay', 250) Send(1) Send(2) Send(12) Send(1) Send(2) Send(12)I don't see a difference in running time. While your ideas makes sense, I imagine that it's programmed this way so that consecutive Send() calls still get the gap. Link to comment Share on other sites More sharing options...
seandisanti Posted December 30, 2005 Share Posted December 30, 2005 Testing that theory with this code: Opt('SendKeyDelay', 250) Opt('SendKeyDownDelay', 250) Send(1) Send(2) Send(12) Send(1) Send(2) Send(12) I don't see a difference in running time. While your ideas makes sense, I imagine that it's programmed this way so that consecutive Send() calls still get the gap.thanks for checking into that! i was assuming that each successive call to run would be handled independantly, making the multi line approach faster... Link to comment Share on other sites More sharing options...
herewasplato Posted December 31, 2005 Share Posted December 31, 2005 (edited) ...takes 2ms, as you'd think Send("xz") should...That is so funny. That was not where I was going at all. I was just too lazy to type "send" twice. When I quoted your code, it had tabs in it instead of spaces (or so I thought), so I retyped the loop and left the quote as credit/blame for the code I posted - which put the Opt that LxP posted in with your loop and my lazy send.The whole post was an attempt at humor dealing with...the miscues involving the word "tap/click/send",the "Faster" in the post title andthe back and forth btwn the OP and others:make go fasttry thisno - make go fasttry thisno - make go fastI had better stick to my day job - I'll never make it as a comedian. :-( Edited January 1, 2006 by herewasplato [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
w0uter Posted December 31, 2005 Share Posted December 31, 2005 (edited) Opt('SendKeyDownDelay', 0) opt('SendKeyDelay', 0) while 1 Send("xz") WEnd Edited December 31, 2005 by w0uter My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
herewasplato Posted December 31, 2005 Share Posted December 31, 2005 (edited) @w0uter,Do you how "does not work" manifests itself?From the help file under SendKeyDelay:Sometimes a value of 0 does not work; use 1 instead.I've never had a problem with a 0 setting. Edited December 31, 2005 by herewasplato [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
seandisanti Posted January 3, 2006 Share Posted January 3, 2006 That is so funny. That was not where I was going at all. I was just too lazy to type "send" twice. When I quoted your code, it had tabs in it instead of spaces (or so I thought), so I retyped the loop and left the quote as credit/blame for the code I posted - which put the Opt that LxP posted in with your loop and my lazy send.The whole post was an attempt at humor dealing with...the miscues involving the word "tap/click/send",the "Faster" in the post title andthe back and forth btwn the OP and others:make go fasttry thisno - make go fasttry thisno - make go fastI had better stick to my day job - I'll never make it as a comedian. :-(well if it makes you feel any better, i laughed after the explanation.. Link to comment Share on other sites More sharing options...
herewasplato Posted January 3, 2006 Share Posted January 3, 2006 well if it makes you feel any better, i laughed after the explanation..Thanks.Off topic - but related.Quite some time back, I went to the trouble of setting SciTE/Tidy up to change tabs to 4 spaces for posting code to the forum. It now seems that such spacing gets changed back to tabs within a post. Oh well. [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now