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
Infinite Keystoke / Application Problem
Re: Infinite Keystoke / Application Problem
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.
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.
Re: Infinite Keystoke / Application Problem
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
Here are the windows title, class and process:
Ran Online Since 2002
ahk_class Afx:00400000:8:00010005:01900011:001800B9
ahk_exe
Re: Infinite Keystoke / Application Problem
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.
Who is online
Users browsing this forum: No registered users and 80 guests