Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New to macro and kind of confused.
#2
Create function SendKeysToWindow. Its code is here:
pasting to notepad (when notepad is in background)

Then try this macro with Notepad:
Macro Macro2207
Code:
Copy      Help
int w1=act(win("Untitled - Notepad" "Notepad")) ;;to test
int c1=child ;;the focused control
rep
,SendKeysToWindow c1 key(a)
,1
;You can activate some other window, this macro will still work.

Macro for your window would be like this:
Macro Macro2206
Code:
Copy      Help
int w1=act(win("EverQuest" "_EverQuestwndclass"))
int c1=child ;;the focused control
rep
,SendKeysToWindow c1 key(E)
,wait 5.2


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)