please anyone can edit my code to be working on this windows only not any windows i open in front of me it work on it here my code and picture to see title which one i use
please
F2::
Loop,
{
Send w
Sleep 100
Send x
Sleep 100
}
return
Pause::Pause
F5::exitapp
please need code for this windows
-
- Posts: 216
- Joined: 30 Jun 2016, 06:01
Re: please need code for this windows
You need the IfWinActive function. Read this: https://autohotkey.com/docs/commands/WinActive.htm
Re: please need code for this windows
but how to use give me code and which title i write
-
- Posts: 216
- Joined: 30 Jun 2016, 06:01
Re: please need code for this windows
I can't tell what the title of the window is from the screenshot you posted, it's pretty grainy, but try this. Put it at the very top of your script.
You can also use the title of the game's executable like this:
Code: Select all
SetTitleMatchMode, 2
#IfWinActive, 2.9.6
Code: Select all
#IfWinActive, ahk_exe program.exe
Re: please need code for this windows
windows title is Memu 2.9.6 - MEmu
so how to use which one please answer me i tried many ways but it never works in inactive windows it only does when i select it the memu windows and it send lot of keys not only w x it send shift ?
so how to use which one please answer me i tried many ways but it never works in inactive windows it only does when i select it the memu windows and it send lot of keys not only w x it send shift ?
-
- Posts: 216
- Joined: 30 Jun 2016, 06:01
Re: please need code for this windows
Code: Select all
SetTitleMatchMode, 2
#IfWinActive, Memu
Re: please need code for this windows
you mean i start code like that
SetTitleMatchMode, 2
#IfWinActive, Memu
F2::
Loop,
{
Send w
Sleep 100
Send x
Sleep 100
}
return
Pause::Pause
F5::exitapp
its correct?
SetTitleMatchMode, 2
#IfWinActive, Memu
F2::
Loop,
{
Send w
Sleep 100
Send x
Sleep 100
}
return
Pause::Pause
F5::exitapp
its correct?
-
- Posts: 216
- Joined: 30 Jun 2016, 06:01
Re: please need code for this windows
Yes that's right.
Who is online
Users browsing this forum: Descolada, mmflume, windfancy3 and 129 guests