hi! i'd like to launch a scene in Ableton Live 11 and a video in VLC Player at the same time.
i thought maybe i can press the keys º & 1 and have it trigger a series of events:
Enter (to start a scene in Ableton Live),
AltTab (to switch to VLC player window), or maybe it needs to be AltTabAndMenu and then AltTab ?
n (for Next track),
and then switch back to Ableton Live.
How would that be scripted?
i wrote this but it gives an error:
º & 1::Enter, AltTabAndMenu, AltTab, n, AltTabAndMenu, ShiftAltTab
return
Thanks!
launch tracks in 2 programs at about the same time
Re: launch tracks in 2 programs at about the same time
OK. You are writing some other language but need to use AHK instead!
Example:
I was testing with "x" because I do not have the other key.
Instead of the "n", you may simply be able to Run a VLC command line to play a video. It might also be possible to ControlSend to VLC, but I did not try it.
Example:
Code: Select all
x::x
x & 1::
Send {Enter}
WinActivate, VLC media player ahk_class Qt5QWindowIcon ahk_exe vlc.exe
Send n
WinActivate, Ableton
Return
Instead of the "n", you may simply be able to Run a VLC command line to play a video. It might also be possible to ControlSend to VLC, but I did not try it.