12-14-2012, 04:55 AM
Need to create function with this name and copy/paste code from forum. Read here: Tips: QM code in the forum (colors, functions, dialogs, etc)
Your macro is possibly correct, but make sure that the child window is correct. It must be the same child window that is focused when the window is active. Can use this macro to capture focused child window.
Macro CaptureFocusedControl
Trigger CSAj
SendKeysToWindow works with most windows, but not with all. May not work with many games because often they use some nonstandard method to get pressed keys.
At first try this: Make the target window active and the child window focused. Run this macro. If it does not work, SendKeysToWindow cannot be used.
Your macro is possibly correct, but make sure that the child window is correct. It must be the same child window that is focused when the window is active. Can use this macro to capture focused child window.
Macro CaptureFocusedControl
Trigger CSAj

;Make the target window active and the child window focused. Then run this macro (Ctrl+Alt+Shift+J).
;It creates code to find the focused child window. Copy it from QM output and paste in macro where need.
RecGetWindowName child &_s
out F"int hwnd={_s}"
SendKeysToWindow works with most windows, but not with all. May not work with many games because often they use some nonstandard method to get pressed keys.
At first try this: Make the target window active and the child window focused. Run this macro. If it does not work, SendKeysToWindow cannot be used.