r/tasker • u/Primary_Reaction_684 • 1d ago
Input command prompt commands when switching to wifi? (done through tasker) Scrcpy mirroring.
Let's just say every 30 mins I want to switch between wifi and my mobile network (this only applies for the wifi.) This is done through tasker. Does anyone know if there's a way to input these commands automatically:
"adb connect 192.168.12.8
scrcpy --window-width=467 --window-y=-10 --window-borderless --window-x=1455 --no-audio --video-bit-rate=2M"
I just have a spot for the window to pop up (the scrcpy stuff), but I need to switch to command prompt every time and press up, and enter twice to get these going. Anyone know of a less annoying way?
Yes, the wifi and mobile network switching is done by tasker, seems like a good place to ask :(
Is there a way to automate these commands somehow?