Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Send command to unfocused window
#3
Thanks for the reply. I seems to work just once after that nothing happens. I remember something about ending a function once ran...

Actually it could be something else. Because I noticed that the key I want to send "V" for Spacebar is only sending a pause not a play. In Premiere it should send both. So maybe it is working. I am testing right now. Thanks

However...
Code:
Copy      Help
Macro
int w=win("" "Premiere Pro")

int isActive=w=win
if(!isActive) SendMessage w WM_ACTIVATE WA_ACTIVE w

SendKeysToWindow2 w key(V)
works like a charm! Smile

Great info @Kevin, @tanhy, @macrobear, and  @Gintaras Thanks so much!


Messages In This Thread
Send command to unfocused window - by pctechtv - 10-16-2019, 07:03 PM
RE: Send command to unfocused window - by Kevin - 10-16-2019, 07:25 PM
RE: Send command to unfocused window - by pctechtv - 10-16-2019, 07:44 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)