Infinite Keystoke / Application Problem

Ask gaming related questions (AHK v1.1 and older)
kuletchy
Posts: 2
Joined: 26 Sep 2017, 05:30

Infinite Keystoke / Application Problem

26 Sep 2017, 14:45

Hi ~ Im I'm trying to send an infinite keystoke on inactive window, but it only works on notepad. I tried to change the wintitle but it doesnt work on other application. Please help me.
Thanks in advance
~~~~~~~~~~~~~~~~~~~~

wintitle = Notepad
SetTitleMatchMode, 2
SetKeyDelay, 200
#SingleInstance Force
WinGet, winList, List, ahk_class %wintitle%
{
{
loop
Loop % winList
{
ControlSend,, 1,% "ahk_id " winList%a_index%
}
}
}
Return
User avatar
Exaskryz
Posts: 2882
Joined: 17 Oct 2015, 20:28

Re: Infinite Keystoke / Application Problem

26 Sep 2017, 15:00

Since you're in gaming, maybe you need to do some typical gaming troubleshooting. Most commonly run as administrator, but check out this thread: https://autohotkey.com/boards/viewtopic.php?t=11084

As it is, I'm curious if you have the correct WinTitle. The ahk_class of Firefox for example is MozillaWindowClass. So using wintitle = Firefox and WinGet, winList, List, ahk_class %wintitle% would fail to identify the Firefox windows because that is not the proper WinTitle.

Additionally, I'm curious about your purpose here. Do you mean to target only one instance of your window, or every instance? The code you have set up would try to work on multiple windows that match the specified wintitle.
kuletchy
Posts: 2
Joined: 26 Sep 2017, 05:30

Re: Infinite Keystoke / Application Problem

26 Sep 2017, 15:33

Yes Im trying to target multiple windows. Is there other way to correct my script on the wintitle.

Here are the windows title, class and process:
Ran Online Since 2002
ahk_class Afx:00400000:8:00010005:01900011:001800B9
ahk_exe
User avatar
Exaskryz
Posts: 2882
Joined: 17 Oct 2015, 20:28

Re: Infinite Keystoke / Application Problem

27 Sep 2017, 12:23

Try using WinGet, winList, List, %wintitle% and have specified your wintitle variable as wintitle:="Ran Online Since 2002". Notice that we have dropped the ahk_class period.

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 80 guests