I'm trying to filling a text box with the number 1, then hit enter.
I have:
[hotkey]::
click
Send, 1{enter}
It is WAY too fast. I usually end up with 111, or 1111 before it registers an enter.
Have tried SetKeyDelay, 10, 10 as line 2, and as line 3.
Have tried Sleep 100 and 100000000000, above send, but with no real results.
This is my first attempt at making a script, and I feel I am close, and have looked for the answer to this, but my frustration is getting the better of me.
Thank you.
Just want to click, 1, enter, repeat
Started by
Shawncav
, Mar 19 2010 02:28 AM
7 replies to this topic
#1
-
Posted 19 March 2010 - 02:28 AM
The only way I can see for this to be a problem is if your Hotkey is Enter
Or there is more code after and you need a Return
Or there is more code after and you need a Return
$[hotkey]:: ;try adding the $ modifier click Send, 1{enter} ReturnWhy keep the Hotkey secret by putting in [hotkey] instead of your actual key :?:
#2
-
Posted 19 March 2010 - 02:40 AM
Show your code. Also, what program are you dealing with?
#3
-
Posted 19 March 2010 - 02:42 AM
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Antonio França -- git.io -- github.com -- ahk4.net -- sites.google.com -- ahkscript.org
Member of the AHK community since 08/Apr/2009. Moderator since mid-2012.
no reason. I just didn't want it getting lost in the mix, I guess. I was using \. haha I just hit it, and it did the macro. It works well, just repeats too fast. =)
This is to fill a box in a game online. You can use as many "turns" as you want at once, but I've seen there are no negative results when you go 1 at a time. there are when you do more. at times, you could have 3500 turns, so automation would be really nice.
Thanks for the quick initial response.
This is to fill a box in a game online. You can use as many "turns" as you want at once, but I've seen there are no negative results when you go 1 at a time. there are when you do more. at times, you could have 3500 turns, so automation would be really nice.
Thanks for the quick initial response.
#4
-
Posted 19 March 2010 - 02:42 AM
I have turned the repeat rate in the windows keyboard option all the way down. This will function for now, but I'm still going to try to find a way to script it. Thanks for looking.
#5
-
Posted 19 March 2010 - 03:00 AM
Are you holding the key or just pressing it?
If you do it this way
If you do it this way
\:: KeyWait \ Click Send, 1{enter} Returnyou only get one per press no matter how long you hold the key.
#6
-
Posted 19 March 2010 - 03:02 AM
Looked again and thought maybe you do want the hold down
\:: Loop { If !GetKeyState("\") ;if you are not holding \ break the loop Break Click Send, 1{enter} Sleep 200 ;This is the time between presses } Return
#7
-
Posted 19 March 2010 - 03:12 AM
I am holding it down. The box moves from time to time. I suppose to stop people from scripting to click in it. I want to just aim and shoot.
I'll try your ideas when I get more turns. Man, goofing off is hard work.
Thanks.
I'll try your ideas when I get more turns. Man, goofing off is hard work.
Thanks.
#8
-
Posted 19 March 2010 - 03:32 AM