Sending Keystrokes to Multiple Windows
Posted: 23 Jan 2022, 02:31
I apologize if I'm asking something super obvious, I'm very new to this scripting. I found this code that someone else posted and was hoping I could change it to where it wouldn't look for alpha character but instead look for arrow directions only? (Up, Down, Left, Right)
I'm just not sure what to put in place of the alphabetized list? Or would I need to declare those keystrokes different?
Thanks!
I'm just not sure what to put in place of the alphabetized list? Or would I need to declare those keystrokes different?
Thanks!
Code: Select all
SetTitleMatchMode, 2
WinGet, Hwnd_List, List , Notepad
Loop, Parse, % "abcdefghijklmnopqrstuvwxyz"
Hotkey, %A_LoopField%, LoopSend
return
LoopSend:
Loop, %Hwnd_List%
{
Hwnd := Hwnd_List%A_Index%
ControlSend,, %A_ThisHotkey%, ahk_id %Hwnd%
}
return
Esc::ExitApp