launch tracks in 2 programs at about the same time

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
bicialta
Posts: 1
Joined: 23 Jun 2021, 20:06

launch tracks in 2 programs at about the same time

23 Jun 2021, 20:50

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!
User avatar
mikeyww
Posts: 26947
Joined: 09 Sep 2014, 18:38

Re: launch tracks in 2 programs at about the same time

23 Jun 2021, 21:02

OK. You are writing some other language but need to use AHK instead! :)

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
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.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: kingina and 219 guests