Search found 6 matches

by TickTok
17 Apr 2024, 00:35
Forum: Ask for Help (v2)
Topic: AHK script to repeatedly type in a certain window?
Replies: 3
Views: 139

Re: AHK script to repeatedly type in a certain window?

Hello, Ideas are below. This forum also has hundreds or thousands of other scripts that use ControlSend , in case you need more examples. #Requires AutoHotkey v2.0 winTitle := 'ahk_exe Notepad.exe' ctl := 'RichEditD2DPT1' ; Win 11 #HotIf WinExist(wintitle) F3:: { ToolTip SetTimer(go, 60000), go() S...
by TickTok
14 Apr 2024, 17:50
Forum: Ask for Help (v2)
Topic: AHK script to repeatedly type in a certain window?
Replies: 3
Views: 139

AHK script to repeatedly type in a certain window?

Hi all. I need to create a script that will automatically type/press a key for me at a specific interval regardless of whether or not it's focused. I tried to take a stab at it but I got hopelessly lost because I haven't fiddled with AHK in months and have no prior coding knowledge. All I need it to...
by TickTok
25 Nov 2023, 21:14
Forum: Ask for Help (v2)
Topic: Making AHK press a random selection of keys Topic is solved
Replies: 6
Views: 453

Re: Making AHK press a random selection of keys Topic is solved

Ah, I missed where you said you were scripting for a game or I would have used SendEvent . Games can be finicky like that. SendInput is often too fast for the game to pick up all keystrokes so SendEvent is a pretty safe option to use for games with the ability to add more delay betweeen keystrokes ...
by TickTok
25 Nov 2023, 17:45
Forum: Ask for Help (v2)
Topic: Making AHK press a random selection of keys Topic is solved
Replies: 6
Views: 453

Re: Making AHK press a random selection of keys Topic is solved

F1 toggles the timer that sends a random message from the list every 60 seconds. F1:: { static toggle := false ; initialize toggle to false if toggle := !toggle { ; inverse the toggle value and if true SendRandomMessage() ; call function and SetTimer(SendRandomMessage, 60000) ; call it again every ...
by TickTok
25 Nov 2023, 12:25
Forum: Ask for Help (v2)
Topic: Making AHK press a random selection of keys Topic is solved
Replies: 6
Views: 453

Re: Making AHK press a random selection of keys Topic is solved

mikeyww Thank you for your quick reply and your warm welcome! I discovered while experimenting with your script that I've apparently written and learned the little I extrapolated from other posts in v1 syntax so trying to make it automatically loop every x amount of seconds to send a message within...
by TickTok
25 Nov 2023, 10:06
Forum: Ask for Help (v2)
Topic: Making AHK press a random selection of keys Topic is solved
Replies: 6
Views: 453

Making AHK press a random selection of keys Topic is solved

Hi everyone. I'm currently looking for help creating a script which will allow me to send a random message from a selection of pre-written messages with a short cooldown. I managed to write up a rudimentary script that would just sequentially send messages from top to bottom and then loop back to th...

Go to advanced search