Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Send the space bar to window but keep it inactive
#4
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     Help - how to add the trigger to the macro
Code:
Copy      Help
;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.
Code:
Copy      Help
int hwnd=child ;;the focused child window
SendKeysToWindow hwnd key(V)


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)