I KNOW its possible with other software, but I like AHK. Though if you think I'm better off with software, then by all means, do link/suggest me one!
So, objectives : to send keystrokes to other (probably hidden/occluded/minimized) game window, to mirror the actions on main/maximized window.
What I THINK is needed :
1. [DONE] some way to ID what window is what. we can rename windows and give them unique (temporary) names for this.
2. [IN PROGRESS] some way of sending keystrokes/mouse clicks to other screen. i know you can send keystrokes but I dont know how to send mouseclicks.
Anyhow thanks for reading, your tips/suggestions/insults/comments are appreciated.
Current code :
Code: Select all
Launch_App1::
WinGet, hwnd1, ID, A
msgbox %hwnd1%
return
Browser_Home::
WinGet, hwnd2, ID, A
msgbox %hwnd2%
return
w::
ControlSend, , w, % "ahk_id " hwnd1
ControlSend, , w, % "ahk_id " hwnd2
Return
s::
ControlSend, , s, % "ahk_id " hwnd1
ControlSend, , s, % "ahk_id " hwnd2
Return
a::
ControlSend, , a, % "ahk_id " hwnd1
ControlSend, , a, % "ahk_id " hwnd2
Return
d::
ControlSend, , d, % "ahk_id " hwnd1
ControlSend, , d, % "ahk_id " hwnd2
Return
How do i make the movment smoother, or better yet, keep moving forward/sending W while W is pressed and so forth?
Also, I have absolutely NO idea how to send mouse clicks/movement.